Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.78 KB | None | 0 0
  1. \makeatletter
  2. \renewcommand{\makehead}{%\@initializecommand
  3.   \setlength{\makeheaddetailswidth}{0.8\textwidth}%
  4.   \hfil%
  5.   \parbox{\makeheaddetailswidth}{%
  6.     \centering%
  7.     % name and title
  8.     \namestyle{\@firstname~\@lastname}%
  9.     \ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title)
  10.     % optional detailed information
  11.     \if@details{%
  12.       \addressfont\color{color2}%
  13.       \ifthenelse{\isundefined{\@addressstreet}}{}{\addtomakeheaddetails{\addresssymbol\@addressstreet}%
  14.         \ifthenelse{\equal{\@addresscity}{}}{}{\addtomakeheaddetails[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty
  15.         \ifthenelse{\equal{\@addresscountry}{}}{}{\addtomakeheaddetails[~--~]{\@addresscountry}}%
  16.         \flushmakeheaddetails\@firstmakeheaddetailselementtrue\par\vspace{-\baselineskip}\null}% <========================
  17.       \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
  18.         \addtomakeheaddetails{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
  19.       \ifthenelse{\isundefined{\@email}}{}{\addtomakeheaddetails{\emailsymbol\emaillink{\@email}}}%
  20.       \ifthenelse{\isundefined{\@homepage}}{}{\addtomakeheaddetails{\homepagesymbol\httplink{\@homepage}}}%
  21.       \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
  22.         \addtomakeheaddetails{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
  23.       \ifthenelse{\isundefined{\@extrainfo}}{}{\addtomakeheaddetails{\@extrainfo}}%
  24.     \flushmakeheaddetails}\fi}\\[2.5em]}
  25. \makeatother
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement