Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.40 KB | None | 0 0
  1. %% start of file `template.tex'.
  2. %% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
  3. %
  4. % This work may be distributed and/or modified under the
  5. % conditions of the LaTeX Project Public License version 1.3c,
  6. % available at http://www.latex-project.org/lppl/.
  7.  
  8.  
  9. documentclass[11pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
  10. usepackage{tabularx}
  11.  
  12. % moderncv themes
  13. moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
  14. moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
  15. %renewcommand{familydefault}{sfdefault} % to set the default font; use 'sfdefault' for the default sans serif font, 'rmdefault' for the default roman one, or any tex font name
  16. %nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
  17.  
  18.  
  19. newcommand*{mycventry}[7][.25em]{%
  20. cvitem[#1]{#2}{%
  21. {bfseries#3 newline}%
  22. % ifthenelse{equal{#4}{}}{}{newline {#4}}%sth to describe
  23. % ifthenelse{equal{#5}{}}{}{hspace{1cm} #5}%description
  24. begin{tabularx}{textwidth}{l X}
  25. #4 & #5
  26. end{tabularx}
  27. ifthenelse{equal{#6}{}}{}{newline #6}%
  28. strut%
  29. ifx&#7&%
  30. else{newline{}begin{minipage}[t]{linewidth}small#7end{minipage}}fi}}
  31.  
  32.  
  33.  
  34.  
  35.  
  36. % character encoding
  37. %usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding you are using
  38. %usepackage{CJKutf8} % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean
  39.  
  40. % adjust the page margins
  41. usepackage[scale=0.75]{geometry}
  42. %setlength{hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
  43. %setlength{makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...
  44.  
  45. % personal data
  46. name{John}{Doe}
  47. title{Resumé title} % optional, remove / comment the line if not wanted
  48. address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
  49. phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
  50. phone[fixed]{+2~(345)~678~901}
  51. phone[fax]{+3~(456)~789~012}
  52. email{john@doe.org} % optional, remove / comment the line if not wanted
  53. homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
  54. social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
  55. social[xing]{john_doe} % optional, remove / comment the line if not wanted
  56. social[twitter]{jdoe} % optional, remove / comment the line if not wanted
  57. social[github]{jdoe} % optional, remove / comment the line if not wanted
  58. social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
  59. social[skype]{jdoe} % optional, remove / comment the line if not wanted
  60. extrainfo{additional information} % optional, remove / comment the line if not wanted
  61. photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
  62. quote{Some quote} % optional, remove / comment the line if not wanted
  63.  
  64. % bibliography adjustements (only useful if you make citations in your resume, or print a list of publications using BibTeX)
  65. % to show numerical labels in the bibliography (default is to show no labels)
  66. %makeatletterrenewcommand*{bibliographyitemlabel}{@biblabel{arabic{enumiv}}}makeatother
  67. renewcommand*{bibliographyitemlabel}{[arabic{enumiv}]}
  68. % to redefine the bibliography heading string ("Publications")
  69. %renewcommand{refname}{Articles}
  70.  
  71. % bibliography with mutiple entries
  72. %usepackage{multibib}
  73. %newcites{book,misc}{{Books},{Others}}
  74. %----------------------------------------------------------------------------------
  75. % content
  76. %----------------------------------------------------------------------------------
  77. begin{document}
  78. %begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
  79. %----- resume ---------------------------------------------------------
  80. makecvtitle
  81.  
  82. %moderncvstyle{fancy}
  83. section{Education}
  84. mycventry{year--year}{Degree}{sth-todescribe:}{Description starts here. This text needs automatic linebreak due to it's length. This text needs automatic linebreak due to it's length. This text needs automatic linebreak due to it's length. But it should stop before the end of the page.}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
  85.  
  86.  
  87.  
  88. end{document}
  89.  
  90.  
  91. %% end of file `template.tex'.
  92.  
  93. documentclass[11pt,a4paper,sans]{moderncv}
  94.  
  95. % moderncv themes
  96. moderncvstyle{classic}
  97. moderncvcolor{blue}
  98.  
  99. %renewcommand{familydefault}{sfdefault}
  100. %nopagenumbers{}
  101.  
  102. usepackage{tabularx}
  103.  
  104. newcommand*{mycventry}[7][.25em]{%
  105. cvitem[#1]{#2}{%
  106. {bfseries#3 newline}%
  107. % ifthenelse{equal{#4}{}}{}{newline {#4}}%sth to describe
  108. % ifthenelse{equal{#5}{}}{}{hspace{1cm} #5}%description
  109. begin{tabularx}{linewidth}{l X} % <===========================
  110. #4 & #5
  111. end{tabularx}
  112. ifthenelse{equal{#6}{}}{}{newline #6}%
  113. strut%
  114. ifx&#7&%
  115. else{newline{}begin{minipage}[t]{linewidth}small#7end{minipage}}fi%
  116. }%
  117. }
  118.  
  119. usepackage[utf8]{inputenc}
  120. % adjust the page margins
  121. usepackage[%
  122. scale=0.75,
  123. showframe, % <==================== to visualize typing area and margins
  124. ]{geometry}
  125.  
  126. %setlength{hintscolumnwidth}{3cm}
  127. %setlength{makecvheadnamewidth}{10cm}
  128.  
  129. % personal data
  130. name{John}{Doe}
  131. title{Resumé title}
  132. address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
  133. phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
  134. phone[fixed]{+2~(345)~678~901}
  135. phone[fax]{+3~(456)~789~012}
  136. email{john@doe.org} % optional, remove / comment the line if not wanted
  137. homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
  138. social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
  139. social[xing]{john_doe} % optional, remove / comment the line if not wanted
  140. social[twitter]{jdoe} % optional, remove / comment the line if not wanted
  141. social[github]{jdoe} % optional, remove / comment the line if not wanted
  142. social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
  143. social[skype]{jdoe} % optional, remove / comment the line if not wanted
  144. extrainfo{additional information} % optional, remove / comment the line if not wanted
  145. photo[64pt][0.4pt]{example-image}
  146. quote{Some quote}
  147.  
  148.  
  149. begin{document}
  150.  
  151. makecvtitle
  152.  
  153. %moderncvstyle{fancy}
  154. section{Education}
  155. mycventry%
  156. {year--year-2}%
  157. {Degree-3}%
  158. {sth-todescribe:-4}%
  159. {Description starts here. This text needs automatic linebreak due to it's length. This text needs automatic linebreak due to it's length. This text needs automatic linebreak due to it's length. But it should stop before the end of the page.-5}%
  160. {textit{Grade}-6}%
  161. {Description-7} % arguments 3 to 6 can be left empty
  162.  
  163.  
  164.  
  165. end{document}
  166.  
  167. begin{tabularx}{linewidth}{l p{1em} X} % <====================
  168. #4 & & #5 % <===============================================
  169. end{tabularx}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement