feature/update-cv #3

Merged
pcabral merged 19 commits from feature/update-cv into main 2026-03-17 22:11:11 +01:00
4 changed files with 64 additions and 19 deletions
Showing only changes of commit 753ac09b04 - Show all commits

View File

@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{pedro-moderncv}[2026/02/23 Custom moderncv wrapper] \ProvidesClass{pedro-moderncv}[2026/02/24 Custom moderncv wrapper]
\LoadClassWithOptions{moderncv} \LoadClassWithOptions{moderncv}
@@ -8,13 +8,23 @@
\AtBeginDocument{% \AtBeginDocument{%
\makeatletter \makeatletter
% Safe scaled length
\newlength{\@photowidthscaled}
\patchcmd{\makecvhead} \patchcmd{\makecvhead}
{\includegraphics[width=\@photowidth]{\@photo}} {\includegraphics[width=\@photowidth]{\@photo}}
{% {%
% Copy original width
\setlength{\@photowidthscaled}{\@photowidth}
% Scale safely (no calc/dimexpr/TikZ parser issues)
\setlength{\@photowidthscaled}{1.2\@photowidthscaled}
\begin{tikzpicture} \begin{tikzpicture}
\clip (0, 0) circle (\@photowidth/2); \clip (0, 0) circle (\@photowidth/2);
\node at (0,0) \node at (-0.2cm, -0.3cm) {
{\includegraphics[width=\@photowidth]{\@photo}}; \includegraphics[width=\@photowidthscaled]{\@photo}
};
\end{tikzpicture} \end{tikzpicture}
} }
{}{} {}{}