Advertisement
Guest User

Untitled

a guest
Jul 14th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. renewcommand*{makeletterfooter}{%
  2. setlength{footerwidth}{0.8textwidth}%
  3. fancypagestyle{plain}{%
  4. fancyfoot[c]{%
  5. parbox[b]{footerwidth}{%
  6. centering%
  7. addressfontcolor{color2}%
  8. vspace{baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
  9. vspace{-baselineskip}% to cancel out the extra vertical space taken by the name (below) and ensure perfect alignment of letter and cv footers
  10. strut{bfseriesupshape@firstname~@lastname}\% the strut is required to ensure the line is exactly baselineskip tall
  11. ifthenelse{isundefined{@addressstreet}}{}{addtofooter[]{addresssymbol@addressstreet}%
  12. ifthenelse{equal{@addresscity}{}}{}{addtofooter[~--~]{@addresscity}}% if addresstreet is defined, addresscity and addresscountry will always be defined but could be empty
  13. ifthenelse{equal{@addresscountry}{}}{}{addtofooter[~--~]{@addresscountry}}%
  14. flushfooter@firstfooterelementtrue\}%
  15. collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
  16. addtofooter{csnamecollectionloopkey phonesymbolendcsnamecollectionloopitem}}%
  17. ifthenelse{isundefined{@email}}{}{addtofooter{emailsymbolemaillink{@email}}}%
  18. ifthenelse{isundefined{@homepage}}{}{addtofooter{homepagesymbolhttplink{@homepage}}}%
  19. collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
  20. addtofooter{csnamecollectionloopkey socialsymbolendcsnamecollectionloopitem}}%
  21. ifthenelse{isundefined{@extrainfo}}{}{addtofooter{@extrainfo}}%
  22. ifthenelse{lengthtest{footerboxwidth=0pt}}{}{flushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \ after the address, if no other personal info is used
  23. }}}%
  24. pagestyle{plain}}
  25.  
  26. fancyfoot[c]{%
  27. parbox[b]{0.8textwidth}{%
  28. centering%
  29. vspace{baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
  30. vspace{-baselineskip}% to cancel out the extra vertical space taken by the name (below) and ensure perfect alignment of letter and cv footers
  31. strut{bfseriesupshape firstname~lastname}\% the strut is required to ensure the line is exactly baselineskip tall
  32. street number~city\
  33. phone~email~etc.
  34. }%end parbox
  35. }%end fancyfoot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement