Guest User

Untitled

a guest
Jun 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Here is a part of the moderncvstylecasual.sty
  2. \renewcommand*{\maketitle}{%
  3. \makefooter{}%
  4. \newbox{\maketitlepicturebox}%
  5. \savebox{\maketitlepicturebox}{%
  6. \ifthenelse{\isundefined{\@photo}}%
  7. {}%
  8. {%
  9. \setlength\fboxrule{\@photoframewidth}%
  10. \ifdim\@photoframewidth=0pt%
  11. \setlength{\fboxsep}{0pt}\fi%
  12. {\color{color1}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}}%
  13. \usebox{\maketitlepicturebox}%
  14. \newlength{\maketitlepicturewidth}\settowidth{\maketitlepicturewidth}{\usebox{\maketitlepicturebox}}%
  15. \parbox[b]{\textwidth-\maketitlepicturewidth}{%
  16. \raggedleft\namefont{\color{color2!50}\@firstname} {\color{color2}\@familyname}}\\[-.35em]% alternate design: \MakeLowercase and no space
  17. {\color{color2!50}\rule{\textwidth}{.25ex}}%
  18. % optional title
  19. \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\raggedleft\titlestyle{\@title}}\\[2.5em]%
  20. % optional quote
  21. \ifthenelse{\isundefined{\@quote}}%
  22. {}%
  23. {{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
  24. \par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle
Add Comment
Please, Sign In to add comment