Advertisement
sesquiipedalian

Untitled

Jun 23rd, 2023
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 4.82 KB | None | 0 0
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % Medium Length Professional CV - RESUME CLASS FILE
  3. %
  4. % This template has been downloaded from:
  5. % http://www.LaTeXTemplates.com
  6. %
  7. % This class file defines the structure and design of the template.
  8. %
  9. % Original header:
  10. % Copyright (C) 2010 by Trey Hunner
  11. %
  12. % Copying and distribution of this file, with or without modification,
  13. % are permitted in any medium without royalty provided the copyright
  14. % notice and this notice are preserved. This file is offered as-is,
  15. % without any warranty.
  16. %
  17. % Created by Trey Hunner and modified by www.LaTeXTemplates.com
  18. %
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20.  
  21. \ProvidesClass{resume}[2010/07/10 v0.9 Resume class]
  22.  
  23. \LoadClass[11pt,letterpaper]{article} % Font size and paper type
  24.  
  25. \usepackage[parfill]{parskip} % Remove paragraph indentation
  26. \usepackage{array} % Required for boldface (\bf and \bfseries) tabular columns
  27. \usepackage{ifthen} % Required for ifthenelse statements
  28.  
  29. \pagestyle{empty} % Suppress page numbers
  30.  
  31. %----------------------------------------------------------------------------------------
  32. %   HEADINGS COMMANDS: Commands for printing name and address
  33. %----------------------------------------------------------------------------------------
  34.  
  35. \def \name#1{\def\@name{#1}} % Defines the \name command to set name
  36. \def \@name {} % Sets \@name to empty by default
  37.  
  38. \def \addressSep {$\diamond$} % Set default address separator to a diamond
  39.  
  40. % One, two or three address lines can be specified
  41. \let \@addressone \relax
  42. \let \@addresstwo \relax
  43. \let \@addressthree \relax
  44.  
  45. % \address command can be used to set the first, second, and third address (last 2 optional)
  46. \def \address #1{
  47.  \@ifundefined{@addresstwo}{
  48.    \def \@addresstwo {#1}
  49.  }{
  50.  \@ifundefined{@addressthree}{
  51.  \def \@addressthree {#1}
  52.  }{
  53.     \def \@addressone {#1}
  54.  }}
  55. }
  56.  
  57. % \printaddress is used to style an address line (given as input)
  58. \def \printaddress #1{
  59.  \begingroup
  60.    \def \\ {\addressSep\ }
  61.    \centerline{#1}
  62.  \endgroup
  63.  \par
  64.  \addressskip
  65. }
  66.  
  67. % \printname is used to print the name as a page header
  68. \def \printname {
  69.  \begingroup
  70.    \hfil{\MakeUppercase{\namesize\bf \@name}}\hfil
  71.    \nameskip\break
  72.  \endgroup
  73. }
  74.  
  75. %----------------------------------------------------------------------------------------
  76. %   PRINT THE HEADING LINES
  77. %----------------------------------------------------------------------------------------
  78.  
  79. \let\ori@document=\document
  80. \renewcommand{\document}{
  81.   \ori@document  % Begin document
  82.   \printname % Print the name specified with \name
  83.   \@ifundefined{@addressone}{}{ % Print the first address if specified
  84.     \printaddress{\@addressone}}
  85.  \@ifundefined{@addresstwo}{}{ % Print the second address if specified
  86.     \printaddress{\@addresstwo}}
  87.     \@ifundefined{@addressthree}{}{ % Print the third address if specified
  88.     \printaddress{\@addressthree}}
  89. }
  90.  
  91. %----------------------------------------------------------------------------------------
  92. %   SECTION FORMATTING
  93. %----------------------------------------------------------------------------------------
  94.  
  95. % Defines the rSection environment for the large sections within the CV
  96. \newenvironment{rSection}[1]{ % 1 input argument - section name
  97.   \sectionskip
  98.   \MakeUppercase{\bf #1} % Section title
  99.   \sectionlineskip
  100.   \hrule % Horizontal line
  101.   \begin{list}{}{ % List for each individual item in the section
  102.     \setlength{\leftmargin}{1.5em} % Margin within the section
  103.   }
  104.   \item[]
  105. }{
  106.  \end{list}
  107. }
  108.  
  109. %----------------------------------------------------------------------------------------
  110. %   WORK EXPERIENCE FORMATTING
  111. %----------------------------------------------------------------------------------------
  112.  
  113. \newenvironment{rSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
  114.  {\bf #1} \hfill {#2} % Bold company name and date on the right
  115.  \ifthenelse{\equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
  116.   \\
  117.   {\em #3} \hfill {\em #4} % Italic job title and location
  118.   }\smallskip
  119.   \begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
  120.    \itemsep -0.5em \vspace{-0.5em} % Compress items in list together for aesthetics
  121.   }{
  122.  \end{list}
  123.  \vspace{0.5em} % Some space after the list of bullet points
  124. }
  125.  
  126. % The below commands define the whitespace after certain things in the document - they can be \smallskip, \medskip or \bigskip
  127. \def\namesize{\huge} % Size of the name at the top of the document
  128. \def\addressskip{\smallskip} % The space between the two address (or phone/email) lines
  129. \def\sectionlineskip{\medskip} % The space above the horizontal line for each section
  130. \def\nameskip{\bigskip} % The space after your name at the top
  131. \def\sectionskip{\smallskip} % The space after the heading section
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement