Guest User

Untitled

a guest
Jun 16th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.13 KB | None | 0 0
  1. % -- Encoding UTF-8 without BOM
  2.  
  3. ProvidesClass{cv-style}[2015/02/27 CV class]
  4. NeedsTeXFormat{LaTeX2e}
  5.  
  6.  
  7. usepackage{lipsum}
  8. DeclareOption{espanol}{def@cv@espanol{}}
  9. DeclareOption{print}{def@cv@print{}}
  10. DeclareOption*{%
  11. PassOptionsToClass{CurrentOption}{article}%
  12. }
  13. ProcessOptionsrelax
  14. LoadClass{article}
  15.  
  16. %----------------------------------------------------------------------------------------
  17. % Colors %
  18. %----------------------------------------------------------------------------------------
  19.  
  20. RequirePackage{xcolor}
  21. RequirePackage[left=5.6cm,top=1cm,right=1cm,bottom=1cm,nohead,nofoot]{geometry}
  22.  
  23. definecolor{white}{RGB}{255,255,255}
  24.  
  25. definecolor{darkgray}{HTML}{333333}
  26. definecolor{gray}{HTML}{4D4D4D}
  27. definecolor{lightgray}{HTML}{999999}
  28.  
  29. definecolor{blue}{HTML}{66D9EE}
  30. definecolor{red}{HTML}{FA2772}
  31. definecolor{orange}{HTML}{FE9720}
  32. definecolor{green}{HTML}{A7E22E}
  33. definecolor{purple}{HTML}{9358FE}
  34. definecolor{aquamarine}{HTML}{36AF90}
  35.  
  36. definecolor{date}{HTML}{A4A4A4}
  37.  
  38. ifdefined@cv@print
  39. colorlet{blue}{gray}
  40. colorlet{red}{gray}
  41. colorlet{orange}{gray}
  42. colorlet{green}{gray}
  43. colorlet{purple}{gray}
  44. colorlet{aquamarine}{gray}
  45. colorlet{fillheader}{white}
  46. colorlet{header}{gray}
  47. else
  48. colorlet{fillheader}{gray}
  49. colorlet{header}{white}
  50. fi
  51. colorlet{textcolor}{gray}
  52. colorlet{headercolor}{gray}
  53.  
  54. %----------------------------------------------------------------------------------------
  55. % Fonts %
  56. %----------------------------------------------------------------------------------------
  57.  
  58. RequirePackage[quiet]{fontspec}
  59. RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math}
  60.  
  61. newfontfamilybodyfont{Roboto-Regular}[Path=fonts/]
  62. newfontfamilybodyfontit{Roboto-LightItalic}[Path=fonts/]
  63. newfontfamilythinfont{Roboto-Thin}[Path=fonts/]
  64. newfontfamilyheadingfont{RobotoCondensed-Bold}[Path=fonts/]
  65.  
  66. defaultfontfeatures{Mapping=tex-text}
  67. setmainfont[Mapping=tex-text, Color=textcolor, Path = fonts/]{Roboto-Light}
  68.  
  69. newcommand{italica}[1]{%
  70. {color{gray}bodyfontit #1}%
  71. }
  72.  
  73. %----------------------------------------------------------------------------------------
  74. % Header %
  75. %----------------------------------------------------------------------------------------
  76.  
  77. RequirePackage{tikz}
  78.  
  79. newcommand{header}[2]{%
  80. begin{tikzpicture}[remember picture,overlay]
  81. node [rectangle, fill=fillheader, anchor=north, minimum width=paperwidth, minimum height=2cm] (box) at (current page.north){};
  82. node [anchor=center] (name) at (box) {%
  83. fontsize{40pt}{65pt}color{header}%
  84. {thinfont #1}{bodyfont #2}
  85. };
  86. end{tikzpicture}
  87. vspace{1cm}
  88. vspace{-2parskip}
  89. }
  90.  
  91. %----------------------------------------------------------------------------------------
  92. % Last updated command %
  93. %----------------------------------------------------------------------------------------
  94.  
  95. RequirePackage[absolute,overlay]{textpos}
  96. RequirePackage{polyglossia}
  97.  
  98. newcommand{sethyphenation}[3][]{%
  99. sbox0{begin{otherlanguage}[#1]{#2}
  100. hyphenation{#3}end{otherlanguage}}}
  101. %sethyphenation[<options>]{<language>}{<list of words separated by spaces>}
  102.  
  103. ifdefined@cv@espanol
  104. setdefaultlanguage{spanish}
  105. deflastupdatedtext{Última Actualización el}
  106. else
  107. setdefaultlanguage[variant=british]{english}
  108. deflastupdatedtext{Last Updated on}
  109. fi
  110.  
  111. setlength{TPHorizModule}{0.01paperwidth}
  112. setlength{TPVertModule}{0.01paperwidth}
  113.  
  114. newcommand{lastupdated}{
  115. begin{textblock}{10}(11.3, 0.05)
  116. raggedleft
  117. fontsize{8pt}{10pt}color{date}thinfont
  118. lastupdatedtext{} today
  119. end{textblock}}
  120.  
  121. %----------------------------------------------------------------------------------------
  122. % Structure %
  123. %----------------------------------------------------------------------------------------
  124. RequirePackage{parskip}
  125.  
  126. newcounter{colorCounter}
  127. def@sectioncolor#1#2#3{%
  128. {%
  129. color{%
  130. ifcasevalue{colorCounter}%
  131. blueor%
  132. redor%
  133. orangeor%
  134. greenor%
  135. purpleor%
  136. aquamarineelse%
  137. headercolorfi%
  138. } #1#2#3%
  139. }%
  140. stepcounter{colorCounter}%
  141. }
  142.  
  143. renewcommand{section}[1]{
  144. {parvspace{parskip}
  145. {%
  146. LARGEheadingfontcolor{headercolor}%
  147. @sectioncolor #1%
  148. }
  149. parvspace{parskip}}
  150. }
  151.  
  152. renewcommand{subsection}[2]{
  153. parvspace{.5parskip}%
  154. Largeheadingfontcolor{headercolor} #2%
  155. parvspace{.25parskip}%
  156. }
  157.  
  158. newcommand{jobtitle}[1]{%
  159. {color{gray}bodyfontit #1}%
  160. }
  161.  
  162. pagestyle{empty}
  163.  
  164. %----------------------------------------------------------------------------------------
  165. % List environment %
  166. %----------------------------------------------------------------------------------------
  167.  
  168. setlength{tabcolsep}{0pt}
  169. newenvironment{entrylist}{%
  170. begin{tabular*}{textwidth}{@{extracolsep{fill}}ll}
  171. }{%
  172. end{tabular*}
  173. }
  174. renewcommand{bfseries}{headingfontcolor{headercolor}}
  175. newcommand{entry}[4]{%
  176. #1&parbox[t]{12.8cm}{%
  177. textbf{#2}%
  178. hfill%
  179. {footnotesizeaddfontfeature{Color=lightgray} #3}\%
  180. #4vspace{parsep}%
  181. }\}
  182.  
  183.  
  184. % newenvironment{entrylist}{%
  185. % }{%
  186. % }
  187. % renewcommand{bfseries}{headingfontcolor{headercolor}}
  188. % newcommand{entry}[4]{%
  189. % par
  190. % noindentparbox[t]{%
  191. % dimexprtextwidth-12.8cmrelax}{raggedright #1}parbox[t]{12.8cm}{%
  192. % textbf{#2}%
  193. % hfill%
  194. % {footnotesizeaddfontfeature{Color=lightgray} #3}par
  195. % #4vspace{parsep}%
  196. % }par}
  197.  
  198. %----------------------------------------------------------------------------------------
  199. % Side block %
  200. %----------------------------------------------------------------------------------------
  201.  
  202. setlength{TPHorizModule}{1cm}
  203. setlength{TPVertModule}{1cm}
  204. newenvironment{aside}{%
  205. letoldsectionsection
  206. renewcommand{section}[1]{
  207. parvspace{baselineskip}{Largeheadingfontcolor{headercolor} ##1}
  208. }
  209. begin{textblock}{3.6}(1, 1.87)
  210. begin{flushright}
  211. obeycr
  212. }{%
  213. restorecr
  214. end{flushright}
  215. end{textblock}
  216. letsectionoldsection
  217. }
  218.  
  219. %----------------------------------------------------------------------------------------
  220. % Other tweaks %
  221. %----------------------------------------------------------------------------------------
  222.  
  223. RequirePackage[left=5.6cm,top=1cm,right=1cm,bottom=1cm,nohead,nofoot]{geometry}
  224. RequirePackage{hyperref}
  225. hypersetup{
  226. pdftitle=CV/Resume textbar{} Alejandro Pérez Londoño,
  227. pdfauthor=Alejandro Pérez Londoño,
  228. pdfsubject=CV/Resume%
  229. }
  230.  
  231. % -- Encoding UTF-8 without BOM
  232. % -- XeLaTeX => PDF (BIBER)
  233.  
  234. documentclass[]{cv-style} % Add 'print' as an option into the square bracket to remove colours from this template for printing.
  235. % Add 'espanol' as an option into the square bracket to change the date format of the Last Updated Text
  236.  
  237. sethyphenation[variant=british]{english}{} % Add words between the {} to avoid them to be cut
  238.  
  239. begin{document}
  240.  
  241. header{John}{Smith} % Your name
  242. lastupdated
  243.  
  244. %----------------------------------------------------------------------------------------
  245. % SIDEBAR SECTION -- In the aside, each new line forces a line break
  246. %----------------------------------------------------------------------------------------
  247.  
  248. begin{aside}
  249. %
  250. section{contact}
  251. 123 Broadway
  252. City, State 050022
  253. Country
  254. ~
  255. +0 (000) 111 1111
  256. +0 (000) 111 1112
  257. ~
  258. %
  259. section{languages}
  260. English mother tongue
  261. Spanish fluency
  262. %
  263. section{programming}
  264. {color{red} $varheartsuit$} R
  265. VBA, SQL, Python
  266. LaTeX{}
  267. %
  268. %
  269. section{programming}
  270. {color{red} $varheartsuit$} R
  271. VBA, SQL, Python
  272. LaTeX{}
  273. %
  274. %
  275. section{programming}
  276. {color{red} $varheartsuit$} R
  277. VBA, SQL, Python
  278. LaTeX{}
  279. %
  280. %
  281. section{programming}
  282. {color{red} $varheartsuit$} R
  283. VBA, SQL, Python
  284. LaTeX{}
  285. %
  286. %
  287. section{programming}
  288. {color{red} $varheartsuit$} R
  289. VBA, SQL, Python
  290. LaTeX{}
  291. %
  292. %
  293. section{programming}
  294. {color{red} $varheartsuit$} R
  295. VBA, SQL, Python
  296. LaTeX{}
  297. %
  298. %
  299. section{programming}
  300. {color{red} $varheartsuit$} R
  301. VBA, SQL, Python
  302. LaTeX{}
  303. %
  304. %
  305. section{programming}
  306. {color{red} $varheartsuit$} R
  307. VBA, SQL, Python
  308. LaTeX{}
  309. %
  310. section{another item}
  311. {color{red} $varheartsuit$} R
  312. Once Item
  313. Another item
  314. Another item
  315. one item more
  316. other items
  317. end{aside}
  318.  
  319. %----------------------------------------------------------------------------------------
  320. % SKILLS SECTION
  321. %----------------------------------------------------------------------------------------
  322.  
  323. section{skills}
  324. vspace{-0.2cm}
  325.  
  326. Skill 1, skill 2, skill 3, skill 4, skill 5.
  327.  
  328. %----------------------------------------------------------------------------------------
  329. % WORK EXPERIENCE SECTION
  330. %----------------------------------------------------------------------------------------
  331.  
  332. section{experience}
  333.  
  334. begin{entrylist}
  335. %------------------------------------------------
  336. entry
  337. {2014--Now}
  338. {COMPANY 3}
  339. {City, Country}
  340. {jobtitle{Job Title}\
  341. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.}
  342. %------------------------------------------------
  343. entry
  344. {2011--2014}
  345. {COMPANY 2}
  346. {City, Country}
  347. {jobtitle{Job Title}\
  348. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.\
  349. Detailed achievements:
  350. begin{itemize}
  351. item Achievement 1. Achievement 1. Achievement 1.
  352. item Achievement 2. Achievement 2. Achievement 2. Achievement 2. Achievement 2. Achievement 2.
  353. item Achievement 3. Achievement 3. Achievement 3. Achievement 3.
  354. end{itemize}}
  355. %------------------------------------------------
  356. entry
  357. {2008--2011}
  358. {COMPANY 1}
  359. {City, Country}
  360. {jobtitle{Job Title}\
  361. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.\
  362. Detailed achievements:
  363. begin{itemize}
  364. item Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1.
  365. end{itemize}}
  366. %------------------------------------------------
  367. entry
  368. {2007--2008}
  369. {COMPANY 1}
  370. {City, Country}
  371. {jobtitle{Job Title}\
  372. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.\}
  373. %------------------------------------------------
  374.  
  375. end{entrylist}
  376.  
  377. %----------------------------------------------------------------------------------------
  378. % EDUCATION SECTION
  379. %----------------------------------------------------------------------------------------
  380.  
  381. section{education}
  382.  
  383. begin{entrylist}
  384. %------------------------------------------------
  385. entry
  386. {2010--2011}
  387. {M.Sc. {normalfont in Economics [Grade]}}
  388. {University}
  389. {vspace{-0.3cm}}
  390. %------------------------------------------------
  391. entry
  392. {2004--2009}
  393. {B.Eng. {normalfont in Engineering Management [Grade]}}
  394. {University}
  395. {(Emphasis in ...)}
  396. %------------------------------------------------
  397. end{entrylist}
  398.  
  399. %----------------------------------------------------------------------------------------
  400. % OTHER QUALIFICATIONS SECTION
  401. %----------------------------------------------------------------------------------------
  402.  
  403. section{other qualifications}
  404.  
  405. begin{entrylist}
  406. %------------------------------------------------
  407. entry
  408. {2013}
  409. {Qualification}
  410. {Institution}
  411. {vspace{-0.3cm}}
  412. %------------------------------------------------
  413. entry
  414. {2011}
  415. {Qualification}
  416. {Institution}
  417. {vspace{-0.3cm}}
  418. %------------------------------------------------
  419. end{entrylist}
  420.  
  421. %----------------------------------------------------------------------------------------
  422. % AWARDS SECTION
  423. %----------------------------------------------------------------------------------------
  424.  
  425. section{awards}
  426.  
  427. begin{entrylist}
  428. %------------------------------------------------
  429. entry
  430. {2014}
  431. {Award name}
  432. {Institution}
  433. {Award description. Award description. Award description. Award description. Award description. Award description. Award description. }
  434. %------------------------------------------------
  435. end{entrylist}
  436.  
  437. %----------------------------------------------------------------------------------------
  438. % INTERESTS SECTION
  439. %----------------------------------------------------------------------------------------
  440.  
  441. section{interests}
  442. vspace{-0.2cm}
  443. textbf{professional:} professional interest 1, professional interest 2 and professional interest 3.
  444. lipsum[2-4]
  445. begin{itemize}
  446. end{itemize}{}
  447.  
  448. %----------------------------------------------------------------------------------------
  449.  
  450. end{document}
Advertisement
Add Comment
Please, Sign In to add comment