Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. documentclass[11pt,a4paper,sans]{moderncv}
  2.  
  3. % moderncv themes
  4. moderncvstyle{casual}
  5. moderncvcolor{blue}
  6. moderncvicons{awesome}
  7.  
  8. %Other packages
  9. usepackage{verbatim} %allows for blocks of comments
  10. %usepackage{amssymb}
  11. %usepackage[english]{babel}
  12. usepackage{stackengine} %allows for signiture to be added to letter.
  13.  
  14.  
  15. % Code for a second address in the info block:
  16. makeatletter
  17.  
  18. RenewDocumentCommand{address}{mG{}G{}G{}}{def@addressstreet{#1}def@addresscity{#2}def@addresscountry{#3}def@addressmobilephone{#4}}
  19.  
  20. newcommand*{addresstwo}[4]{def@addressstreettwo{#1}def@addresscitytwo{#2}def@addresscountrytwo{#3}def@addressmobilephonetwo{#4}}
  21. renewcommand*{makecvfoot}{%
  22. recomputecvfootlengths{}%
  23. fancypagestyle{plain}{%
  24. fancyfoot[c]{%
  25. parbox[b]{footwidth}{%
  26. centering%
  27. color{color2}addressfont%
  28. vspace{baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
  29. ifthenelse{isundefined{@addressstreet}}{}{addtofoot[]{addresssymbol@addressstreet}%
  30. ifthenelse{equal{@addresscity}{}}{}{addtofoot[~--~]{@addresscity}}% if addresstreet is defined, addresscity and addresscountry will always be defined but could be empty
  31. ifthenelse{equal{@addresscountry}{}}{}{addtofoot[~--~]{@addresscountry}}%
  32. ifthenelse{equal{@addressmobilephone}{}}{}{addtofoot[~--~]{@addressmobilephone}}%
  33. %ifthenelse{isundefined{@addressstreettwo}}{}{addtofoot[]{addresssymbol@addressstreettwo}%
  34. ifthenelse{isundefined{@addressstreettwo}}{flushfoot@firstfootelementtrue\}{flushfoot\addtofoot[]{addresssymbol@addressstreettwo}%
  35. ifthenelse{equal{@addresscitytwo}{}}{}{addtofoot[~--~]{@addresscitytwo}}%
  36. ifthenelse{equal{@addresscountrytwo}{}}{}{addtofoot[~--~]{@addresscountrytwo}}%
  37. ifthenelse{equal{@addressmobilephonetwo}{}}{}{addtofoot[~--~]{@addressmobilephonetwo}}%
  38. flushfoot@firstfootelementtrue\}}%
  39. collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
  40. addtofoot{csnamecollectionloopkey phonesymbolendcsnamecollectionloopitem}}%
  41. ifthenelse{isundefined{@email}}{}{addtofoot{emailsymbolemaillink{@email}}}%
  42. ifthenelse{isundefined{@homepage}}{}{addtofoot{homepagesymbolhttplink{@homepage}}}%
  43. collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
  44. addtofoot{csnamecollectionloopkey socialsymbolendcsnamecollectionloopitem}}%
  45. ifthenelse{isundefined{@extrainfo}}{}{addtofoot{@extrainfo}}%
  46. ifthenelse{lengthtest{footboxwidth=0pt}}{}{flushfoot}% 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
  47. }}}%
  48. pagestyle{plain}}
  49.  
  50.  
  51. % Code for a skype symbol in the info block:
  52. newcommand*{skypesocialsymbol}{{color{cyan!65!white}faSkype}}
  53. newcommand*{tangerinesocialsymbol}{{includegraphics[height=.7baselineskip]{tangerine}}}
  54. collectionadd[skype]{socials}{ SkypeAddress}
  55.  
  56.  
  57. renewcommand*{recomputefootlengths}{%
  58. setlength{footwidth}{1.0textwidth}}
  59.  
  60. renewcommand*{makeletterclosing}{
  61. @closing\[1em]%
  62. {bfseries @firstname~@lastname}%
  63. ifthenelse{isundefined{@enclosure}}{}{%
  64. \[3em]%
  65. {color{color2}itshapeenclname: @enclosure}}}
  66.  
  67. makeatother
  68.  
  69. % Code to change the symbols used in the info block:
  70. makeatletter
  71. renewcommand*{mobilephonesymbol} {{Large{faMobile}}~normalsize}
  72. renewcommand*{emailsymbol} {{color{red!85!black}{smallfaEnvelopeO}~}} % alternative: faInbox
  73. renewcommand*{linkedinsocialsymbol}{{color{cyan!55!black}smallfaLinkedin}~} % alternative: faLinkedinSquare
  74. renewcommand*{twittersocialsymbol} {{color{cyan!75!white}smallfaTwitter}~} % alternative: faTwitterSquare
  75. renewcommand*{githubsocialsymbol} {{color{black}faGithubSquare}~}
  76. makeatother
  77.  
  78. definecolor{color1}{rgb}{0.22,0.45,0.70}% light blue
  79.  
  80. % adjust the page margins
  81. usepackage[scale=0.8, left=1.6cm, right=1.7cm]{geometry}
  82. % personal data
  83. name{First}{Last Name}
  84. title{Job Title}
  85. address{Street Address 1}{Zip}{Country}{{ Large{faMobile}}~+00~(0)~000~00~0000}
  86. addresstwo{Street Address 1}{Zip}{Country}{{ Large{faMobile}} {color{green!60!black}faWhatsapp } ~+0~(000)~000~0000}
  87. %addresstwo{Street Address 1}{Zip}{Country}{{ Large{faMobile}} {color{green!60!black}faTelegram } ~+0~(000)~000~0000}
  88.  
  89. email{MyEmail@email.com}
  90. social[linkedin]{My Name} % optional, remove / comment the line if not wanted
  91. social[twitter]{My Name} % optional, remove / comment the line if not wanted
  92. social[github]{My Name} % optional, remove / comment the line if not wanted
  93.  
  94. % bibliography adjustements (only useful if you make citations in your resume, or print a list of publications using BibTeX)
  95. % to show numerical labels in the bibliography (default is to show no labels)
  96. makeatletterrenewcommand*{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}makeatother
  97. % to redefine the bibliography heading string ("Publications")
  98. %renewcommand{refname}{Articles}
  99.  
  100. % bibliography with mutiple entries
  101. %usepackage{multibib}
  102. %newcites{book,misc}{{Books},{Others}}
  103.  
  104.  
  105. %----------------------------------------------------------------------------------
  106. % content
  107. %----------------------------------------------------------------------------------
  108. begin{document}
  109.  
  110. %----- resume ---------------------------------------------------------
  111. makecvtitle
  112.  
  113. %newpage
  114. section{Resume Section}
  115. cventry{2000--present}{Job Title}{}{City, Country}{}{
  116. Project details:%
  117. begin{itemize}%
  118. item Responsibilities
  119. end{itemize}%
  120. }
  121. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement