Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{resume}
- usepackage{comment}
- usepackage{tabularx}
- usepackage{fontspec}
- usepackage{setspace}
- usepackage{graphicx} % Required for figures
- usepackage[export]{adjustbox}
- usepackage{changepage}
- name{My name}
- jobtitle{Student}
- born{xx.xx.xxxx}
- address{Some street, some city}
- phone{0123456789}
- email{mail@mail.com}
- newcommand{userinformation}[1]{renewcommand{userinformation}{#1}} %
- userinformation{
- begin{figure}
- hfill
- includegraphics[width=.4textwidth,right]{photo.jpg} % Your photo
- end{figure}
- }
- begin{document}
- begin{adjustwidth}{}{-8cm}
- userinformation
- end{adjustwidth}
- %----------------------------------------------------------------------------------------
- % EDUCATION SECTION
- %----------------------------------------------------------------------------------------
- begin{rSection}{Utdanning}
- {bf Some university} hfill {Year - Year} \
- University
- item Some text
- end{rSection}
- end{document}
- ProvidesClass{resume}[2010/09/17 v0.1 Resume class]
- LoadClass[11pt,letterpaper]{article} % Font size and paper type
- usepackage[left=0.5in,top=0.3in,right=0.5in,bottom=0.5in]{geometry} % Document margins
- usepackage[parfill]{parskip} % Remove paragraph indentation
- usepackage[usenames,dvipsnames]{xcolor} % Colorize
- usepackage{hyperref} % Clickable links
- usepackage{xhfill} % Customizable hrulefill
- usepackage{array} % Required for boldface (bf and bfseries) tabular columns
- usepackage{ifthen} % Required for ifthenelse statements
- usepackage{fontspec}
- pagestyle{empty} % Suppress page numbers
- definecolor{accentColor}{RGB}{72,105,24}
- definecolor{titleColor}{RGB}{132,129,129}
- definecolor{textColor}{RGB}{90,91,94}
- definecolor{linkColor}{RGB}{49,117,194}
- hypersetup{
- colorlinks=true,
- urlcolor=linkColor
- }
- % New command for the blue bullets
- newcommand{bluebullet}{textcolor{accentColor}{$circ$}~~}
- %----------------------------------------------------------------------------------------
- % HEADING
- %----------------------------------------------------------------------------------------
- newcommand{name}[1]{
- def@name{#1}
- }
- def@name{} % Sets @name to empty by default
- newcommand{jobtitle}[1] {
- def@jobtitle{#1} % Defines the jobtitle command to set name
- }
- newcommand{address}[1]{def@address{#1}}
- newcommand{phone}[1]{def@phone{#1}}
- newcommand{website}[1]{def@website{#1}}
- newcommand{email}[1]{def@email{#1}}
- newcommand{born}[1]{def@born{#1}}
- % printname is used to print the name as a page header
- newcommand{printname} {
- begingroup
- Largebftextcolor{accentColor}{@name}hfil
- smallskipbreak
- endgroup
- }
- % printjobtitle is used to print the name as a page header
- newcommand{printjobtitle} {
- begingroup
- largebftextcolor{textColor}{@jobtitle}hfil
- smallskipbreak
- endgroup
- }
- % printjobtitle is used to print the name as a page header
- letcontactsizenormalsize
- letcontactskipsmallskip
- newcommand{printcontact} {
- begin{tabular}{ l l }
- @ifundefined{@born}{}{contactsizetextcolor{accentColor}{Født:} & contactsizebftextcolor{textColor}{@born} \ noalign{contactskip}}
- @ifundefined{@phone}{}{contactsizetextcolor{accentColor}{Telefon:} & contactsizebftextcolor{textColor}{@phone} \ noalign{contactskip}}
- @ifundefined{@address}{}{contactsizetextcolor{accentColor}{Adresse:} & contactsizebftextcolor{textColor}{@address} \ noalign{contactskip}}
- @ifundefined{@website}{}{contactsizetextcolor{accentColor}{Website:} & contactsizebfhref{@website}{@website} \ noalign{contactskip}}
- @ifundefined{@email}{}{contactsizetextcolor{accentColor}{Mail:} & contactsizebfhref{mailto:@email}{@email} \}
- end{tabular}
- }
- %----------------------------------------------------------------------------------------
- % PRINT THE HEADING LINES
- %----------------------------------------------------------------------------------------
- letori@document=document
- renewcommand{document}{
- ori@document % Begin document
- printname % Print the name specified with name
- @ifundefined{@jobtitle}{}{printjobtitle}
- printcontact
- }
- %------------------------------------------------------------------------------- ---------
- % SECTION FORMATTING
- %----------------------------------------------------------------------------------------
- % Defines the rSection environment for the large sections within the CV
- newenvironment{rSection}[1]{ % 1 input argument - section name
- smallskip
- textcolor{accentColor}{rule{1cm} {.4mm}quadhbox{MakeUppercase{bf{textit{#1}}}}quadxhrulefill{accentColor} {.4mm}}
- smallskip
- begin{list}{}{ % List for each individual item in the section
- setlength{leftmargin}{1.5em} % Margin within the section
- }
- item[]
- }{
- end{list}
- }
- %----------------------------------------------------------------------------------------
- % WORK EXPERIENCE FORMATTING
- %----------------------------------------------------------------------------------------
- newenvironment{rSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
- {bf #1} hfill {#2} % Bold company name and date on the right
- ifthenelse{equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
- \
- {em #3} hfill {em #4} % Italic job title and location
- }smallskip
- begin{list}{$cdot$}{leftmargin=0em} % cdot used for bullets, no indentation
- itemsep -0.5em vspace{-0.5em} % Compress items in list together for aesthetics
- }{
- end{list}
- vspace{0.5em} % Some space after the list of bullet points
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement