[contemporary] Properly support qr and noqr options

This commit is contained in:
Javier Lopez-Gomez 2024-05-01 13:47:23 +02:00
commit b5d6a6e79f
2 changed files with 7 additions and 4 deletions

View file

@ -120,9 +120,10 @@
\hspace*{\separatorcolumnwidth}\fi}%
% optional QR for homepage (pre-rendering)
\@initializebox{\makecvheadqrbox}%
\savebox{\makecvheadqrbox}{%
\ifthenelse{\isundefined{\@homepage}}{}{\tikz\node[inner sep=1ex,fill=white]{\qrcode[height=1.5cm]{\@homepage}};}%
}%
\if@headqr%
\savebox{\makecvheadqrbox}{%
\ifthenelse{\isundefined{\@homepage}}{}{\tikz\node[inner sep=1ex,fill=white]{\qrcode[height=1.5cm]{\@homepage}};}%
}\fi%
% name and title (pre-rendering)
\@initializelength{\makecvheaddetailswidth}\settowidth{\makecvheaddetailswidth}{\usebox{\makecvheaddetailsbox}}%
\@initializelength{\makecvheadpicturewidth}\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}%