mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
[contemporary] Properly support qr and noqr options
This commit is contained in:
parent
1ac6c08efa
commit
b5d6a6e79f
2 changed files with 7 additions and 4 deletions
|
|
@ -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}}%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue