SHARE
TWEET

Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. john@smith.com
  259. %
  260. section{languages}
  261. English mother tongue
  262. Spanish fluency
  263. %
  264. section{programming}
  265. {color{red} $varheartsuit$} R
  266. VBA, SQL, Python
  267. LaTeX{}
  268. %
  269. %
  270. section{programming}
  271. {color{red} $varheartsuit$} R
  272. VBA, SQL, Python
  273. LaTeX{}
  274. %
  275. %
  276. section{programming}
  277. {color{red} $varheartsuit$} R
  278. VBA, SQL, Python
  279. LaTeX{}
  280. %
  281. %
  282. section{programming}
  283. {color{red} $varheartsuit$} R
  284. VBA, SQL, Python
  285. LaTeX{}
  286. %
  287. %
  288. section{programming}
  289. {color{red} $varheartsuit$} R
  290. VBA, SQL, Python
  291. LaTeX{}
  292. %
  293. %
  294. section{programming}
  295. {color{red} $varheartsuit$} R
  296. VBA, SQL, Python
  297. LaTeX{}
  298. %
  299. %
  300. section{programming}
  301. {color{red} $varheartsuit$} R
  302. VBA, SQL, Python
  303. LaTeX{}
  304. %
  305. %
  306. section{programming}
  307. {color{red} $varheartsuit$} R
  308. VBA, SQL, Python
  309. LaTeX{}
  310. %
  311. section{another item}
  312. {color{red} $varheartsuit$} R
  313. Once Item
  314. Another item
  315. Another item
  316. one item more
  317. other items
  318. end{aside}
  319.  
  320. %----------------------------------------------------------------------------------------
  321. %   SKILLS SECTION
  322. %----------------------------------------------------------------------------------------
  323.  
  324. section{skills}
  325.   vspace{-0.2cm}
  326.  
  327. Skill 1, skill 2, skill 3, skill 4, skill 5.
  328.  
  329. %----------------------------------------------------------------------------------------
  330. %   WORK EXPERIENCE SECTION
  331. %----------------------------------------------------------------------------------------
  332.  
  333. section{experience}
  334.  
  335. begin{entrylist}
  336. %------------------------------------------------
  337. entry
  338.   {2014--Now}
  339.   {COMPANY 3}
  340.   {City, Country}
  341.   {jobtitle{Job Title}\
  342.   Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.}
  343. %------------------------------------------------
  344. entry
  345.   {2011--2014}
  346.   {COMPANY 2}
  347.   {City, Country}
  348.   {jobtitle{Job Title}\
  349.   Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.\
  350.   Detailed achievements:
  351.   begin{itemize}
  352.     item Achievement 1. Achievement 1. Achievement 1.
  353.     item Achievement 2. Achievement 2. Achievement 2. Achievement 2. Achievement 2. Achievement 2.
  354.     item Achievement 3. Achievement 3. Achievement 3. Achievement 3.  
  355.   end{itemize}}
  356. %------------------------------------------------
  357. entry
  358.   {2008--2011}
  359.   {COMPANY 1}
  360.   {City, Country}
  361.   {jobtitle{Job Title}\
  362.   Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.\
  363.   Detailed achievements:
  364.   begin{itemize}
  365.     item Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1. Achievement 1.
  366.   end{itemize}}
  367. %------------------------------------------------
  368. entry
  369.   {2007--2008}
  370.   {COMPANY 1}
  371.   {City, Country}
  372.   {jobtitle{Job Title}\
  373.   Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description. Job description.\}
  374. %------------------------------------------------
  375.  
  376. end{entrylist}
  377.  
  378. %----------------------------------------------------------------------------------------
  379. %   EDUCATION SECTION
  380. %----------------------------------------------------------------------------------------
  381.  
  382. section{education}
  383.  
  384. begin{entrylist}
  385. %------------------------------------------------
  386. entry
  387. {2010--2011}
  388. {M.Sc. {normalfont in Economics [Grade]}}
  389. {University}
  390. {vspace{-0.3cm}}
  391. %------------------------------------------------
  392. entry
  393. {2004--2009}
  394. {B.Eng. {normalfont in Engineering Management [Grade]}}
  395. {University}
  396. {(Emphasis in ...)}
  397. %------------------------------------------------
  398. end{entrylist}
  399.  
  400. %----------------------------------------------------------------------------------------
  401. %   OTHER QUALIFICATIONS SECTION
  402. %----------------------------------------------------------------------------------------
  403.  
  404. section{other qualifications}
  405.  
  406. begin{entrylist}
  407. %------------------------------------------------
  408. entry
  409. {2013}
  410. {Qualification}
  411. {Institution}
  412. {vspace{-0.3cm}}
  413. %------------------------------------------------
  414. entry
  415. {2011}
  416. {Qualification}
  417. {Institution}
  418. {vspace{-0.3cm}}
  419. %------------------------------------------------
  420. end{entrylist}
  421.  
  422. %----------------------------------------------------------------------------------------
  423. %   AWARDS SECTION
  424. %----------------------------------------------------------------------------------------
  425.  
  426. section{awards}
  427.  
  428. begin{entrylist}
  429. %------------------------------------------------
  430. entry
  431. {2014}
  432. {Award name}
  433. {Institution}
  434. {Award description. Award description. Award description. Award description. Award description. Award description. Award description. }
  435. %------------------------------------------------
  436. end{entrylist}
  437.  
  438. %----------------------------------------------------------------------------------------
  439. %   INTERESTS SECTION
  440. %----------------------------------------------------------------------------------------
  441.  
  442. section{interests}
  443.   vspace{-0.2cm}
  444. textbf{professional:} professional interest 1, professional interest 2 and professional interest 3.
  445. lipsum[2-4]
  446. begin{itemize}
  447. end{itemize}{}
  448.  
  449. %----------------------------------------------------------------------------------------
  450.  
  451. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top