| 1 |
% moderncv.4ht (2024-08-19-13:32), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2024 TeX Users Group |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either |
| 6 |
% version 1.3c of this license or (at your option) any |
| 7 |
% later version. The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3c or later is part of all distributions |
| 10 |
% of LaTeX version 2005/12/01 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status "maintained". |
| 13 |
% |
| 14 |
% The Current Maintainer of this work |
| 15 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 16 |
% |
| 17 |
% If you modify this program, changing the |
| 18 |
% version identification would be appreciated. |
| 19 |
\immediate\write-1{version 2024-08-19-13:32} |
| 20 |
|
| 21 |
\NewConfigure{section}{2} |
| 22 |
\RenewDocumentCommand\section{sm}{\a:section #2\b:section} |
| 23 |
|
| 24 |
\NewConfigure{subsection}{2} |
| 25 |
\RenewDocumentCommand\subsection{sm}{\a:subsection #2\b:subsection} |
| 26 |
|
| 27 |
|
| 28 |
\NewConfigure{cvitem}{3} |
| 29 |
\renewcommand*{\cvitem}[3][.25em]{ |
| 30 |
\a:cvitem #2\b:cvitem #3\c:cvitem |
| 31 |
} |
| 32 |
|
| 33 |
\NewConfigure{cvdoubleitem}{2} |
| 34 |
\renewcommand*{\cvdoubleitem}[5][.25em]{% |
| 35 |
\a:cvdoubleitem |
| 36 |
\cvitem{#2}{#3} |
| 37 |
\cvitem{#4}{#5} |
| 38 |
\b:cvdoubleitem |
| 39 |
} |
| 40 |
|
| 41 |
\NewConfigure{cvlistitem}{2} |
| 42 |
\renewcommand*{\cvlistitem}[2][.25em]{% |
| 43 |
\a:cvlistitem\cvitem[#1]{\listitemsymbol}{#2}\b:cvlistitem |
| 44 |
} |
| 45 |
|
| 46 |
\NewConfigure{cvlistdoubleitem}{2} |
| 47 |
\renewcommand*{\cvlistdoubleitem}[3][.25em]{% |
| 48 |
\a:cvlistdoubleitem% |
| 49 |
\cvitem[#1]{\listitemsymbol}{#2}% |
| 50 |
\cvitem[#1]{\listitemsymbol}{#3}% |
| 51 |
\b:cvlistdoubleitem% |
| 52 |
} |
| 53 |
|
| 54 |
\NewConfigure{cvhead}{2} |
| 55 |
\NewConfigure{cvphoto}{2} |
| 56 |
|
| 57 |
|
| 58 |
\renewcommand*{\makecvhead}{% |
| 59 |
\a:cvhead |
| 60 |
% recompute lengths (in case we are switching from letter to resume, or vice versa) |
| 61 |
\recomputecvlengths% |
| 62 |
% optional detailed information (pre-rendering) |
| 63 |
\@initializebox{\makecvheaddetailsbox}% |
| 64 |
\if@details% |
| 65 |
\def\phonesdetails{}% |
| 66 |
\collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number |
| 67 |
\protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}% |
| 68 |
\def\socialsdetails{}% |
| 69 |
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link |
| 70 |
\protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}% |
| 71 |
\savebox{\makecvheaddetailsbox}{% |
| 72 |
\addressfont\color{color2}% |
| 73 |
\if@left\begin{tabular}[b]{@{}r@{}}\fi% |
| 74 |
\if@right\begin{tabular}[b]{@{}l@{}}\fi% |
| 75 |
\ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet% |
| 76 |
\ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty |
| 77 |
\ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}% |
| 78 |
\ifthenelse{\isundefined{\@born}}{}{\makenewline\bornsymbol\@born}% |
| 79 |
\phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict |
| 80 |
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}% |
| 81 |
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}% |
| 82 |
\socialsdetails% needs to be pre-rendered as loops and tabulars seem to conflict |
| 83 |
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}% |
| 84 |
\end{tabular} |
| 85 |
}\fi% |
| 86 |
% optional photo (pre-rendering) |
| 87 |
\@initializebox{\makecvheadpicturebox}% |
| 88 |
\savebox{\makecvheadpicturebox}{% |
| 89 |
\ifthenelse{\isundefined{\@photo}}% |
| 90 |
{}% |
| 91 |
{% |
| 92 |
\a:cvphoto\includegraphics[]{\@photo}\b:cvphoto}% |
| 93 |
}% |
| 94 |
% name and title (pre-rendering) |
| 95 |
\@initializelength{\makecvheaddetailswidth}\settowidth{\makecvheaddetailswidth}{\usebox{\makecvheaddetailsbox}}% |
| 96 |
\@initializelength{\makecvheadpicturewidth}\settowidth{\makecvheadpicturewidth}{\usebox{\makecvheadpicturebox}}% |
| 97 |
\ifthenelse{\lengthtest{\makecvheadnamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvheadnamewidth=0pt) |
| 98 |
{\setlength{\makecvheadnamewidth}{\textwidth-\makecvheaddetailswidth-\makecvheadpicturewidth}}% |
| 99 |
{}% |
| 100 |
\@initializebox{\makecvheadnamebox}% |
| 101 |
\savebox{\makecvheadnamebox}{% |
| 102 |
\begin{minipage}[b]{\makecvheadnamewidth}% |
| 103 |
\if@left\raggedright\fi% |
| 104 |
\if@right\raggedleft\fi% |
| 105 |
\namestyle{\@firstname\ \@lastname}% |
| 106 |
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}% |
| 107 |
\end{minipage}}% |
| 108 |
% rendering |
| 109 |
\if@left% |
| 110 |
\usebox{\makecvheadnamebox}% |
| 111 |
\hfill% |
| 112 |
\llap{\usebox{\makecvheaddetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced |
| 113 |
\usebox{\makecvheadpicturebox}\fi% |
| 114 |
\if@right% |
| 115 |
\usebox{\makecvheadpicturebox}% |
| 116 |
\rlap{\usebox{\makecvheaddetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvheadnamewidth is forced |
| 117 |
\hfill% |
| 118 |
\usebox{\makecvheadnamebox}\fi% |
| 119 |
\\[2.5em]% |
| 120 |
% optional quote |
| 121 |
\ifthenelse{\isundefined{\@quote}}% |
| 122 |
{}% |
| 123 |
{{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}% |
| 124 |
\b:cvhead\par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvhead |
| 125 |
|
| 126 |
|
| 127 |
\RenewDocumentCommand\cvskilllegend{s +O{.25em} +O{\skillLegend@defaultLevelOne} +O{\skillLegend@defaultLevelTwo} +O{\skillLegend@defaultLevelThree} +O{\skillLegend@defaultLevelFour} +O{\skillLegend@defaultLevelFive} +m}{% |
| 128 |
\begin{tabular}{l l l l l l} |
| 129 |
\raggedleft\hintstyle{#8} & \cvskill{1}\, & \,{\skillLegend@FontSize #3} & \cvskill{3}\, &\,{\skillLegend@FontSize #5 } \\% |
| 130 |
% |
| 131 |
& \cvskill{2}\, & \,\multirow{2}{\cvskilllegend@leftdescriptorwidth}{{\skillLegend@FontSize #4}} & \cvskill{4}\, &\,{\skillLegend@FontSize #6 } \\% |
| 132 |
% |
| 133 |
& & & \cvskill{5}\, &\,{\skillLegend@FontSize #7 }% |
| 134 |
\end{tabular}% |
| 135 |
}% |
| 136 |
|
| 137 |
|
| 138 |
\NewConfigure{cvskill}{2} |
| 139 |
\def\:tempa#1{\def\:cvskillamount{#1}\a:cvskill\o:cvskill:{#1}\b:cvskill} |
| 140 |
\HLet\cvskill\:tempa |
| 141 |
|
| 142 |
\NewConfigure{cvskillhead}{2} |
| 143 |
\NewConfigure{cvskillentry}{2} |
| 144 |
\RenewDocumentCommand\cvskillhead{O{.25em} +O{\skillMatrix@HeaderDefaultOne} +O{\skillMatrix@HeaderDefaultTwo} +O{\skillMatrix@HeaderDefaultThree} +O{\skillMatrix@HeaderDefaultFour}}{% |
| 145 |
\begingroup |
| 146 |
\a:cvskillhead |
| 147 |
\begin{tabular}{ p{6em} p{12em} p{4em} p{20em}}% |
| 148 |
{ #2} & { #3} & { #4} & { #5} |
| 149 |
\end{tabular}% |
| 150 |
\b:cvskillhead |
| 151 |
\endgroup |
| 152 |
\par\addvspace{#1} |
| 153 |
} |
| 154 |
|
| 155 |
\RenewDocumentCommand\cvskillentry{s +O{.25em} +m +m +m +m +m}{% |
| 156 |
\a:cvskillentry |
| 157 |
\cvitem{#3}{ |
| 158 |
\begin{tabular}{ p{6em} p{12em} p{4em} p{20em}} |
| 159 |
\centering \cvskill{#4} &\centering {#5} & \centering {#6} &{\itshape#7}% |
| 160 |
\end{tabular}}% |
| 161 |
\b:cvskillentry |
| 162 |
\par\addvspace{#2} |
| 163 |
} |
| 164 |
|
| 165 |
|
| 166 |
\Hinput{moderncv} |
| 167 |
\endinput |
| 168 |
|