circular profile picture
This commit is contained in:
22
moderncv/pedro-moderncv.cls
Normal file
22
moderncv/pedro-moderncv.cls
Normal file
@@ -0,0 +1,22 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{pedro-moderncv}[2026/02/23 Custom moderncv wrapper]
|
||||
|
||||
\LoadClassWithOptions{moderncv}
|
||||
|
||||
\RequirePackage{tikz}
|
||||
\RequirePackage{etoolbox}
|
||||
|
||||
\AtBeginDocument{%
|
||||
\makeatletter
|
||||
\patchcmd{\makecvhead}
|
||||
{\includegraphics[width=\@photowidth]{\@photo}}
|
||||
{%
|
||||
\begin{tikzpicture}
|
||||
\clip (0,0) circle (\@photowidth/2);
|
||||
\node at (0,0)
|
||||
{\includegraphics[width=\@photowidth]{\@photo}};
|
||||
\end{tikzpicture}
|
||||
}
|
||||
{}{}
|
||||
\makeatother
|
||||
}
|
||||
Reference in New Issue
Block a user