mirror of https://github.com/eyhc1/rendercv.git
tests: update testdata
This commit is contained in:
parent
98280c05f3
commit
d4a5ca784d
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
% Packages:
|
% Packages:
|
||||||
\usepackage[
|
\usepackage[
|
||||||
ignoreheadfoot, % set margins without considering header and footer
|
ignoreheadfoot, % set margins without considering header and footer
|
||||||
top=2 cm, % seperation between body and page edge from the top
|
top=2 cm, % seperation between body and page edge from the top
|
||||||
bottom=2 cm, % seperation between body and page edge from the bottom
|
bottom=2 cm, % seperation between body and page edge from the bottom
|
||||||
left=2 cm, % seperation between body and page edge from the left
|
left=2 cm, % seperation between body and page edge from the left
|
||||||
right=2 cm, % seperation between body and page edge from the right
|
right=2 cm, % seperation between body and page edge from the right
|
||||||
footskip=1.0 cm, % seperation between body and footer
|
footskip=1.0 cm, % seperation between body and footer
|
||||||
% showframe % for debugging
|
% showframe % for debugging
|
||||||
]{geometry} % for adjusting page geometry
|
]{geometry} % for adjusting page geometry
|
||||||
\usepackage[explicit]{titlesec} % for customizing section titles
|
\usepackage[explicit]{titlesec} % for customizing section titles
|
||||||
\usepackage{tabularx} % for making tables with fixed width columns
|
\usepackage{tabularx} % for making tables with fixed width columns
|
||||||
\usepackage{array} % tabularx requires this
|
\usepackage{array} % tabularx requires this
|
||||||
|
@ -29,13 +29,24 @@
|
||||||
\usepackage{bookmark} % for bookmarks
|
\usepackage{bookmark} % for bookmarks
|
||||||
\usepackage{lastpage} % for getting the total number of pages
|
\usepackage{lastpage} % for getting the total number of pages
|
||||||
\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font
|
\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font
|
||||||
\usepackage{ifthen}
|
\usepackage{changepage} % for one column entries (adjustwidth environment)
|
||||||
|
\usepackage{paracol} % for two and three column entries
|
||||||
|
\usepackage{ifthen} % for conditional statements
|
||||||
|
\usepackage{needspace} % for avoiding page brake right after the section title
|
||||||
|
|
||||||
|
% Ensure that generate pdf is machine readable/ATS parsable:
|
||||||
|
\ifpdf
|
||||||
|
\input{glyphtounicode}
|
||||||
|
\pdfgentounicode=1
|
||||||
|
\fi
|
||||||
|
|
||||||
% Some settings:
|
% Some settings:
|
||||||
\pagestyle{empty} % no header or footer
|
\pagestyle{empty} % no header or footer
|
||||||
\setcounter{secnumdepth}{0} % no section numbering
|
\setcounter{secnumdepth}{0} % no section numbering
|
||||||
\setlength{\parindent}{0pt} % no indentation
|
\setlength{\parindent}{0pt} % no indentation
|
||||||
\setlength{\topskip}{0pt} % no top skip
|
\setlength{\topskip}{0pt} % no top skip
|
||||||
|
\setlength{\columnsep}{0.15cm} % set column seperation
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
||||||
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
||||||
|
@ -45,55 +56,80 @@
|
||||||
\pagestyle{customFooterStyle}
|
\pagestyle{customFooterStyle}
|
||||||
|
|
||||||
\titleformat{\section}{
|
\titleformat{\section}{
|
||||||
% make the font size of the section title large and color it with the primary color
|
% avoid page braking right after the section title
|
||||||
\Large\color{primaryColor}
|
\needspace{4\baselineskip}
|
||||||
}{
|
% make the font size of the section title large and color it with the primary color
|
||||||
}{
|
\Large\color{primaryColor}
|
||||||
}{
|
}{
|
||||||
% print bold title, give 0.15 cm space and draw a line of 0.8 pt thickness
|
}{
|
||||||
% from the end of the title to the end of the body
|
}{
|
||||||
\textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]\hspace{-0.1cm}
|
% print bold title, give 0.15 cm space and draw a line of 0.8 pt thickness
|
||||||
}[] % section title formatting
|
% from the end of the title to the end of the body
|
||||||
|
\textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]\hspace{-0.1cm}
|
||||||
|
}[] % section title formatting
|
||||||
|
|
||||||
\titlespacing{\section}{
|
\titlespacing{\section}{
|
||||||
% left space:
|
% left space:
|
||||||
0pt
|
0pt
|
||||||
}{
|
}{
|
||||||
% top space:
|
% top space:
|
||||||
0.3 cm
|
0.3 cm
|
||||||
}{
|
}{
|
||||||
% bottom space:
|
% bottom space:
|
||||||
0.2 cm
|
0.2 cm
|
||||||
} % section title spacing
|
} % section title spacing
|
||||||
|
|
||||||
\newcolumntype{L}[1]{
|
|
||||||
>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}
|
|
||||||
} % left-aligned fixed width column type
|
|
||||||
\newcolumntype{R}[1]{
|
|
||||||
>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}
|
|
||||||
} % right-aligned fixed width column type
|
|
||||||
\newcolumntype{K}[1]{
|
|
||||||
>{\let\newline\\\arraybackslash\hspace{0pt}}X
|
|
||||||
} % justified flexible width column type
|
|
||||||
\setlength\tabcolsep{-1.5pt} % no space between columns
|
|
||||||
\newenvironment{highlights}{
|
\newenvironment{highlights}{
|
||||||
\begin{itemize}[
|
\begin{itemize}[
|
||||||
topsep=0pt,
|
topsep=0.10 cm,
|
||||||
parsep=0.10 cm,
|
parsep=0.10 cm,
|
||||||
partopsep=0pt,
|
partopsep=0pt,
|
||||||
itemsep=0pt,
|
itemsep=0pt,
|
||||||
after=\vspace{-1\baselineskip},
|
leftmargin=0.4 cm + 3pt
|
||||||
leftmargin=0.4 cm + 3pt
|
]
|
||||||
]
|
}{
|
||||||
|
\end{itemize}
|
||||||
|
} % new environment for highlights
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{onecolentry}{
|
||||||
|
\begin{adjustwidth}{
|
||||||
|
0.2 cm + 0.00001 cm
|
||||||
}{
|
}{
|
||||||
\end{itemize}
|
0.2 cm + 0.00001 cm
|
||||||
} % new environment for highlights
|
}
|
||||||
|
}{
|
||||||
|
\end{adjustwidth}
|
||||||
|
} % new environment for one column entries
|
||||||
|
|
||||||
|
\newenvironment{twocolentry}[2][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\secondColumn{#2}
|
||||||
|
\setcolumnwidth{\fill, 4.2cm}
|
||||||
|
\begin{paracol}{2}
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \secondColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for two column entries
|
||||||
|
|
||||||
|
\newenvironment{threecolentry}[3][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\thirdColumn{#3}
|
||||||
|
\setcolumnwidth{1cm, \fill, 4.2cm}
|
||||||
|
\begin{paracol}{3}
|
||||||
|
\raggedright #2 \switchcolumn
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \thirdColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for three column entries
|
||||||
|
|
||||||
\newenvironment{header}{
|
\newenvironment{header}{
|
||||||
\setlength{\topsep}{0pt}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}
|
\setlength{\topsep}{0pt}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}
|
||||||
}{
|
}{
|
||||||
\par\kern\topsep
|
\par\kern\topsep
|
||||||
} % new environment for the header
|
} % new environment for the header
|
||||||
|
|
||||||
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
||||||
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
||||||
|
@ -111,31 +147,16 @@
|
||||||
% new command for external links:
|
% new command for external links:
|
||||||
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
||||||
|
|
||||||
\let\originalTabularx\tabularx
|
|
||||||
\let\originalEndTabularx\endtabularx
|
|
||||||
|
|
||||||
\renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup}
|
|
||||||
|
|
||||||
% For TextEntrys (see https://tex.stackexchange.com/a/600/287984):
|
|
||||||
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1\topsep=0pt\itemsep=0pt\parsep=0pt\parskip=0pt\labelwidth=0pt\itemindent=0pt\labelsep=0pt}\item[]}
|
|
||||||
\let\endchangemargin=\endlist
|
|
||||||
|
|
||||||
% Ensure that generate pdf is machine readable/ATS parsable
|
|
||||||
\input{glyphtounicode}
|
|
||||||
\pdfgentounicode=1
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\placelastupdatedtext
|
\placelastupdatedtext
|
||||||
|
|
||||||
|
|
||||||
\section{Test}
|
\section{Test}
|
||||||
|
|
||||||
\begingroup\leftskip=0.2 cm
|
|
||||||
\advance\csname @rightskip\endcsname 0.2 cm
|
|
||||||
\advance\rightskip 0.2 cm
|
|
||||||
|
|
||||||
test
|
\begin{onecolentry}
|
||||||
\par\endgroup
|
This is an example resume to showcase the capabilities of the open-source LaTeX CV generator, \href{https://github.com/sinaatalay/rendercv}{RenderCV}. A substantial part of the content is taken from \href{https://www.careercup.com/resume}{here}, where a \textit{clean and tidy CV} pattern is proposed by \textbf{Gayle L. McDowell}.
|
||||||
|
\end{onecolentry}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,15 +2,17 @@
|
||||||
|
|
||||||
% Packages:
|
% Packages:
|
||||||
\usepackage[
|
\usepackage[
|
||||||
ignoreheadfoot, % set margins without considering header and footer
|
ignoreheadfoot, % set margins without considering header and footer
|
||||||
top=2 cm, % seperation between body and page edge from the top
|
top=2 cm, % seperation between body and page edge from the top
|
||||||
bottom=2 cm, % seperation between body and page edge from the bottom
|
bottom=2 cm, % seperation between body and page edge from the bottom
|
||||||
left=2 cm, % seperation between body and page edge from the left
|
left=2 cm, % seperation between body and page edge from the left
|
||||||
right=2 cm, % seperation between body and page edge from the right
|
right=2 cm, % seperation between body and page edge from the right
|
||||||
footskip=1.0 cm, % seperation between body and footer
|
footskip=1.0 cm, % seperation between body and footer
|
||||||
% showframe % for debugging
|
% showframe % for debugging
|
||||||
]{geometry} % for adjusting page geometry
|
]{geometry} % for adjusting page geometry
|
||||||
\usepackage{titlesec} % for customizing section titles
|
\usepackage{titlesec} % for customizing section titles
|
||||||
|
\usepackage{tabularx} % for making tables with fixed width columns
|
||||||
|
\usepackage{array} % tabularx requires this
|
||||||
\usepackage[dvipsnames]{xcolor} % for coloring text
|
\usepackage[dvipsnames]{xcolor} % for coloring text
|
||||||
\definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color
|
\definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color
|
||||||
\usepackage{enumitem} % for customizing lists
|
\usepackage{enumitem} % for customizing lists
|
||||||
|
@ -26,14 +28,25 @@
|
||||||
\usepackage{calc} % for calculating lengths
|
\usepackage{calc} % for calculating lengths
|
||||||
\usepackage{bookmark} % for bookmarks
|
\usepackage{bookmark} % for bookmarks
|
||||||
\usepackage{lastpage} % for getting the total number of pages
|
\usepackage{lastpage} % for getting the total number of pages
|
||||||
% \usepackage{charter} % for using charter font
|
\usepackage{changepage} % for one column entries (adjustwidth environment)
|
||||||
\usepackage{ifthen}
|
\usepackage{paracol} % for two and three column entries
|
||||||
|
\usepackage{ifthen} % for conditional statements
|
||||||
|
\usepackage{needspace} % for avoiding page brake right after the section title
|
||||||
|
\usepackage{charter} % for using charter font
|
||||||
|
|
||||||
|
% Ensure that generate pdf is machine readable/ATS parsable:
|
||||||
|
\ifpdf
|
||||||
|
\input{glyphtounicode}
|
||||||
|
\pdfgentounicode=1
|
||||||
|
\fi
|
||||||
|
|
||||||
% Some settings:
|
% Some settings:
|
||||||
\pagestyle{empty} % no header or footer
|
\pagestyle{empty} % no header or footer
|
||||||
\setcounter{secnumdepth}{0} % no section numbering
|
\setcounter{secnumdepth}{0} % no section numbering
|
||||||
\setlength{\parindent}{0pt} % no indentation
|
\setlength{\parindent}{0pt} % no indentation
|
||||||
\setlength{\topskip}{0pt} % no top skip
|
\setlength{\topskip}{0pt} % no top skip
|
||||||
|
\setlength{\columnsep}{0.15cm} % set column seperation
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
||||||
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
||||||
|
@ -42,42 +55,76 @@
|
||||||
\makeatother
|
\makeatother
|
||||||
\pagestyle{customFooterStyle}
|
\pagestyle{customFooterStyle}
|
||||||
|
|
||||||
\titleformat{\section}{\bfseries\large}{}{0pt}{}[\vspace{1pt}\titlerule]
|
\titleformat{\section}{\needspace{4\baselineskip}\bfseries\large}{}{0pt}{}[\vspace{1pt}\titlerule]
|
||||||
|
|
||||||
\titlespacing{\section}{
|
\titlespacing{\section}{
|
||||||
% left space:
|
% left space:
|
||||||
0pt
|
0pt
|
||||||
}{
|
}{
|
||||||
% top space:
|
% top space:
|
||||||
0.3 cm
|
0.3 cm
|
||||||
}{
|
}{
|
||||||
% bottom space:
|
% bottom space:
|
||||||
0.2 cm
|
0.2 cm
|
||||||
} % section title spacing
|
} % section title spacing
|
||||||
|
|
||||||
\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$}
|
\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$}
|
||||||
\newenvironment{highlights}{
|
\newenvironment{highlights}{
|
||||||
\begin{itemize}[
|
\begin{itemize}[
|
||||||
topsep=0pt,
|
topsep=0.10 cm,
|
||||||
partopsep=0pt,
|
parsep=0.10 cm,
|
||||||
itemsep=0pt,
|
partopsep=0pt,
|
||||||
% after=\vspace{-1\baselineskip},
|
itemsep=0pt,
|
||||||
leftmargin=10pt
|
leftmargin=0 cm + 10pt
|
||||||
]
|
]
|
||||||
|
}{
|
||||||
|
\end{itemize}
|
||||||
|
} % new environment for highlights
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{onecolentry}{
|
||||||
|
\begin{adjustwidth}{
|
||||||
|
0 cm + 0.00001 cm
|
||||||
}{
|
}{
|
||||||
\end{itemize}
|
0 cm + 0.00001 cm
|
||||||
} % new environment for highlights
|
}
|
||||||
|
}{
|
||||||
|
\end{adjustwidth}
|
||||||
|
} % new environment for one column entries
|
||||||
|
|
||||||
|
\newenvironment{twocolentry}[2][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\secondColumn{#2}
|
||||||
|
\setcolumnwidth{\fill, 4.2cm}
|
||||||
|
\begin{paracol}{2}
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \secondColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for two column entries
|
||||||
|
|
||||||
|
\newenvironment{threecolentry}[3][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\thirdColumn{#3}
|
||||||
|
\setcolumnwidth{1cm, \fill, 4.2cm}
|
||||||
|
\begin{paracol}{3}
|
||||||
|
\raggedright #2 \switchcolumn
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \thirdColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for three column entries
|
||||||
|
|
||||||
\newenvironment{header}{
|
\newenvironment{header}{
|
||||||
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
|
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
|
||||||
}{
|
}{
|
||||||
\par\kern\topsep
|
\par\kern\topsep
|
||||||
} % new environment for the header
|
} % new environment for the header
|
||||||
|
|
||||||
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
||||||
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
||||||
\put(
|
\put(
|
||||||
\LenToUnit{\paperwidth-2 cm+0.05cm},
|
\LenToUnit{\paperwidth-2 cm-0 cm+0.05cm},
|
||||||
\LenToUnit{\paperheight-1.0 cm}
|
\LenToUnit{\paperheight-1.0 cm}
|
||||||
){\vtop{{\null}\makebox[0pt][c]{
|
){\vtop{{\null}\makebox[0pt][c]{
|
||||||
\small\color{gray}\textit{Last updated in January 2024}\hspace{\widthof{Last updated in January 2024}}
|
\small\color{gray}\textit{Last updated in January 2024}\hspace{\widthof{Last updated in January 2024}}
|
||||||
|
@ -90,10 +137,6 @@
|
||||||
% new command for external links:
|
% new command for external links:
|
||||||
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
||||||
|
|
||||||
% Ensure that generate pdf is machine readable/ATS parsable
|
|
||||||
\input{glyphtounicode}
|
|
||||||
\pdfgentounicode=1
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\placelastupdatedtext
|
\placelastupdatedtext
|
||||||
|
|
||||||
|
@ -101,8 +144,9 @@
|
||||||
\section{Test}
|
\section{Test}
|
||||||
|
|
||||||
|
|
||||||
test
|
\begin{onecolentry}
|
||||||
|
This is an example resume to showcase the capabilities of the open-source LaTeX CV generator, \href{https://github.com/sinaatalay/rendercv}{RenderCV}. A substantial part of the content is taken from \href{https://www.careercup.com/resume}{here}, where a \textit{clean and tidy CV} pattern is proposed by \textbf{Gayle L. McDowell}.
|
||||||
|
\end{onecolentry}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
% Packages:
|
% Packages:
|
||||||
\usepackage[
|
\usepackage[
|
||||||
ignoreheadfoot, % set margins without considering header and footer
|
ignoreheadfoot, % set margins without considering header and footer
|
||||||
top=2 cm, % seperation between body and page edge from the top
|
top=2 cm, % seperation between body and page edge from the top
|
||||||
bottom=2 cm, % seperation between body and page edge from the bottom
|
bottom=2 cm, % seperation between body and page edge from the bottom
|
||||||
left=2 cm, % seperation between body and page edge from the left
|
left=2 cm, % seperation between body and page edge from the left
|
||||||
right=2 cm, % seperation between body and page edge from the right
|
right=2 cm, % seperation between body and page edge from the right
|
||||||
footskip=1.0 cm, % seperation between body and footer
|
footskip=1.0 cm, % seperation between body and footer
|
||||||
% showframe % for debugging
|
% showframe % for debugging
|
||||||
]{geometry} % for adjusting page geometry
|
]{geometry} % for adjusting page geometry
|
||||||
\usepackage[explicit]{titlesec} % for customizing section titles
|
\usepackage[explicit]{titlesec} % for customizing section titles
|
||||||
\usepackage{tabularx} % for making tables with fixed width columns
|
\usepackage{tabularx} % for making tables with fixed width columns
|
||||||
\usepackage{array} % tabularx requires this
|
\usepackage{array} % tabularx requires this
|
||||||
|
@ -29,13 +29,24 @@
|
||||||
\usepackage{bookmark} % for bookmarks
|
\usepackage{bookmark} % for bookmarks
|
||||||
\usepackage{lastpage} % for getting the total number of pages
|
\usepackage{lastpage} % for getting the total number of pages
|
||||||
\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font
|
\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font
|
||||||
\usepackage{ifthen}
|
\usepackage{changepage} % for one column entries (adjustwidth environment)
|
||||||
|
\usepackage{paracol} % for two and three column entries
|
||||||
|
\usepackage{ifthen} % for conditional statements
|
||||||
|
\usepackage{needspace} % for avoiding page brake right after the section title
|
||||||
|
|
||||||
|
% Ensure that generate pdf is machine readable/ATS parsable:
|
||||||
|
\ifpdf
|
||||||
|
\input{glyphtounicode}
|
||||||
|
\pdfgentounicode=1
|
||||||
|
\fi
|
||||||
|
|
||||||
% Some settings:
|
% Some settings:
|
||||||
\pagestyle{empty} % no header or footer
|
\pagestyle{empty} % no header or footer
|
||||||
\setcounter{secnumdepth}{0} % no section numbering
|
\setcounter{secnumdepth}{0} % no section numbering
|
||||||
\setlength{\parindent}{0pt} % no indentation
|
\setlength{\parindent}{0pt} % no indentation
|
||||||
\setlength{\topskip}{0pt} % no top skip
|
\setlength{\topskip}{0pt} % no top skip
|
||||||
|
\setlength{\columnsep}{0.15cm} % set column seperation
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
||||||
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
||||||
|
@ -45,55 +56,80 @@
|
||||||
\pagestyle{customFooterStyle}
|
\pagestyle{customFooterStyle}
|
||||||
|
|
||||||
\titleformat{\section}{
|
\titleformat{\section}{
|
||||||
% make the font size of the section title large and color it with the primary color
|
% avoid page braking right after the section title
|
||||||
\Large\color{primaryColor}
|
\needspace{4\baselineskip}
|
||||||
}{
|
% make the font size of the section title large and color it with the primary color
|
||||||
}{
|
\Large\color{primaryColor}
|
||||||
}{
|
}{
|
||||||
% print bold title, give 0.15 cm space and draw a line of 0.8 pt thickness
|
}{
|
||||||
% from the end of the title to the end of the body
|
}{
|
||||||
\textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]\hspace{-0.1cm}
|
% print bold title, give 0.15 cm space and draw a line of 0.8 pt thickness
|
||||||
}[] % section title formatting
|
% from the end of the title to the end of the body
|
||||||
|
\textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]\hspace{-0.1cm}
|
||||||
|
}[] % section title formatting
|
||||||
|
|
||||||
\titlespacing{\section}{
|
\titlespacing{\section}{
|
||||||
% left space:
|
% left space:
|
||||||
0pt
|
0pt
|
||||||
}{
|
}{
|
||||||
% top space:
|
% top space:
|
||||||
0.3 cm
|
0.3 cm
|
||||||
}{
|
}{
|
||||||
% bottom space:
|
% bottom space:
|
||||||
0.2 cm
|
0.2 cm
|
||||||
} % section title spacing
|
} % section title spacing
|
||||||
|
|
||||||
\newcolumntype{L}[1]{
|
|
||||||
>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}
|
|
||||||
} % left-aligned fixed width column type
|
|
||||||
\newcolumntype{R}[1]{
|
|
||||||
>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}
|
|
||||||
} % right-aligned fixed width column type
|
|
||||||
\newcolumntype{K}[1]{
|
|
||||||
>{\let\newline\\\arraybackslash\hspace{0pt}}X
|
|
||||||
} % justified flexible width column type
|
|
||||||
\setlength\tabcolsep{-1.5pt} % no space between columns
|
|
||||||
\newenvironment{highlights}{
|
\newenvironment{highlights}{
|
||||||
\begin{itemize}[
|
\begin{itemize}[
|
||||||
topsep=0pt,
|
topsep=0.10 cm,
|
||||||
parsep=0.10 cm,
|
parsep=0.10 cm,
|
||||||
partopsep=0pt,
|
partopsep=0pt,
|
||||||
itemsep=0pt,
|
itemsep=0pt,
|
||||||
after=\vspace{-1\baselineskip},
|
leftmargin=0.4 cm + 3pt
|
||||||
leftmargin=0.4 cm + 3pt
|
]
|
||||||
]
|
}{
|
||||||
|
\end{itemize}
|
||||||
|
} % new environment for highlights
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{onecolentry}{
|
||||||
|
\begin{adjustwidth}{
|
||||||
|
0.2 cm + 0.00001 cm
|
||||||
}{
|
}{
|
||||||
\end{itemize}
|
0.2 cm + 0.00001 cm
|
||||||
} % new environment for highlights
|
}
|
||||||
|
}{
|
||||||
|
\end{adjustwidth}
|
||||||
|
} % new environment for one column entries
|
||||||
|
|
||||||
|
\newenvironment{twocolentry}[2][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\secondColumn{#2}
|
||||||
|
\setcolumnwidth{\fill, 4.2cm}
|
||||||
|
\begin{paracol}{2}
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \secondColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for two column entries
|
||||||
|
|
||||||
|
\newenvironment{threecolentry}[3][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\thirdColumn{#3}
|
||||||
|
\setcolumnwidth{1cm, \fill, 4.2cm}
|
||||||
|
\begin{paracol}{3}
|
||||||
|
\raggedright #2 \switchcolumn
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \thirdColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for three column entries
|
||||||
|
|
||||||
\newenvironment{header}{
|
\newenvironment{header}{
|
||||||
\setlength{\topsep}{0pt}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}
|
\setlength{\topsep}{0pt}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}
|
||||||
}{
|
}{
|
||||||
\par\kern\topsep
|
\par\kern\topsep
|
||||||
} % new environment for the header
|
} % new environment for the header
|
||||||
|
|
||||||
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
||||||
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
||||||
|
@ -111,31 +147,16 @@
|
||||||
% new command for external links:
|
% new command for external links:
|
||||||
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
||||||
|
|
||||||
\let\originalTabularx\tabularx
|
|
||||||
\let\originalEndTabularx\endtabularx
|
|
||||||
|
|
||||||
\renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup}
|
|
||||||
|
|
||||||
% For TextEntrys (see https://tex.stackexchange.com/a/600/287984):
|
|
||||||
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1\topsep=0pt\itemsep=0pt\parsep=0pt\parskip=0pt\labelwidth=0pt\itemindent=0pt\labelsep=0pt}\item[]}
|
|
||||||
\let\endchangemargin=\endlist
|
|
||||||
|
|
||||||
% Ensure that generate pdf is machine readable/ATS parsable
|
|
||||||
\input{glyphtounicode}
|
|
||||||
\pdfgentounicode=1
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\placelastupdatedtext
|
\placelastupdatedtext
|
||||||
|
|
||||||
|
|
||||||
\section{Test}
|
\section{Test}
|
||||||
|
|
||||||
\begingroup\leftskip=0.2 cm
|
|
||||||
\advance\csname @rightskip\endcsname 0.2 cm
|
|
||||||
\advance\rightskip 0.2 cm
|
|
||||||
|
|
||||||
test
|
\begin{onecolentry}
|
||||||
\par\endgroup
|
This is an example resume to showcase the capabilities of the open-source LaTeX CV generator, \href{https://github.com/sinaatalay/rendercv}{RenderCV}. A substantial part of the content is taken from \href{https://www.careercup.com/resume}{here}, where a \textit{clean and tidy CV} pattern is proposed by \textbf{Gayle L. McDowell}.
|
||||||
|
\end{onecolentry}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,15 +2,17 @@
|
||||||
|
|
||||||
% Packages:
|
% Packages:
|
||||||
\usepackage[
|
\usepackage[
|
||||||
ignoreheadfoot, % set margins without considering header and footer
|
ignoreheadfoot, % set margins without considering header and footer
|
||||||
top=2 cm, % seperation between body and page edge from the top
|
top=2 cm, % seperation between body and page edge from the top
|
||||||
bottom=2 cm, % seperation between body and page edge from the bottom
|
bottom=2 cm, % seperation between body and page edge from the bottom
|
||||||
left=2 cm, % seperation between body and page edge from the left
|
left=2 cm, % seperation between body and page edge from the left
|
||||||
right=2 cm, % seperation between body and page edge from the right
|
right=2 cm, % seperation between body and page edge from the right
|
||||||
footskip=1.0 cm, % seperation between body and footer
|
footskip=1.0 cm, % seperation between body and footer
|
||||||
% showframe % for debugging
|
% showframe % for debugging
|
||||||
]{geometry} % for adjusting page geometry
|
]{geometry} % for adjusting page geometry
|
||||||
\usepackage{titlesec} % for customizing section titles
|
\usepackage{titlesec} % for customizing section titles
|
||||||
|
\usepackage{tabularx} % for making tables with fixed width columns
|
||||||
|
\usepackage{array} % tabularx requires this
|
||||||
\usepackage[dvipsnames]{xcolor} % for coloring text
|
\usepackage[dvipsnames]{xcolor} % for coloring text
|
||||||
\definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color
|
\definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color
|
||||||
\usepackage{enumitem} % for customizing lists
|
\usepackage{enumitem} % for customizing lists
|
||||||
|
@ -26,14 +28,25 @@
|
||||||
\usepackage{calc} % for calculating lengths
|
\usepackage{calc} % for calculating lengths
|
||||||
\usepackage{bookmark} % for bookmarks
|
\usepackage{bookmark} % for bookmarks
|
||||||
\usepackage{lastpage} % for getting the total number of pages
|
\usepackage{lastpage} % for getting the total number of pages
|
||||||
% \usepackage{charter} % for using charter font
|
\usepackage{changepage} % for one column entries (adjustwidth environment)
|
||||||
\usepackage{ifthen}
|
\usepackage{paracol} % for two and three column entries
|
||||||
|
\usepackage{ifthen} % for conditional statements
|
||||||
|
\usepackage{needspace} % for avoiding page brake right after the section title
|
||||||
|
\usepackage{charter} % for using charter font
|
||||||
|
|
||||||
|
% Ensure that generate pdf is machine readable/ATS parsable:
|
||||||
|
\ifpdf
|
||||||
|
\input{glyphtounicode}
|
||||||
|
\pdfgentounicode=1
|
||||||
|
\fi
|
||||||
|
|
||||||
% Some settings:
|
% Some settings:
|
||||||
\pagestyle{empty} % no header or footer
|
\pagestyle{empty} % no header or footer
|
||||||
\setcounter{secnumdepth}{0} % no section numbering
|
\setcounter{secnumdepth}{0} % no section numbering
|
||||||
\setlength{\parindent}{0pt} % no indentation
|
\setlength{\parindent}{0pt} % no indentation
|
||||||
\setlength{\topskip}{0pt} % no top skip
|
\setlength{\topskip}{0pt} % no top skip
|
||||||
|
\setlength{\columnsep}{0.15cm} % set column seperation
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
\let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle
|
||||||
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
\patchcmd{\ps@customFooterStyle}{\thepage}{
|
||||||
|
@ -42,42 +55,76 @@
|
||||||
\makeatother
|
\makeatother
|
||||||
\pagestyle{customFooterStyle}
|
\pagestyle{customFooterStyle}
|
||||||
|
|
||||||
\titleformat{\section}{\bfseries\large}{}{0pt}{}[\vspace{1pt}\titlerule]
|
\titleformat{\section}{\needspace{4\baselineskip}\bfseries\large}{}{0pt}{}[\vspace{1pt}\titlerule]
|
||||||
|
|
||||||
\titlespacing{\section}{
|
\titlespacing{\section}{
|
||||||
% left space:
|
% left space:
|
||||||
0pt
|
0pt
|
||||||
}{
|
}{
|
||||||
% top space:
|
% top space:
|
||||||
0.3 cm
|
0.3 cm
|
||||||
}{
|
}{
|
||||||
% bottom space:
|
% bottom space:
|
||||||
0.2 cm
|
0.2 cm
|
||||||
} % section title spacing
|
} % section title spacing
|
||||||
|
|
||||||
\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$}
|
\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$}
|
||||||
\newenvironment{highlights}{
|
\newenvironment{highlights}{
|
||||||
\begin{itemize}[
|
\begin{itemize}[
|
||||||
topsep=0pt,
|
topsep=0.10 cm,
|
||||||
partopsep=0pt,
|
parsep=0.10 cm,
|
||||||
itemsep=0pt,
|
partopsep=0pt,
|
||||||
% after=\vspace{-1\baselineskip},
|
itemsep=0pt,
|
||||||
leftmargin=10pt
|
leftmargin=0 cm + 10pt
|
||||||
]
|
]
|
||||||
|
}{
|
||||||
|
\end{itemize}
|
||||||
|
} % new environment for highlights
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{onecolentry}{
|
||||||
|
\begin{adjustwidth}{
|
||||||
|
0 cm + 0.00001 cm
|
||||||
}{
|
}{
|
||||||
\end{itemize}
|
0 cm + 0.00001 cm
|
||||||
} % new environment for highlights
|
}
|
||||||
|
}{
|
||||||
|
\end{adjustwidth}
|
||||||
|
} % new environment for one column entries
|
||||||
|
|
||||||
|
\newenvironment{twocolentry}[2][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\secondColumn{#2}
|
||||||
|
\setcolumnwidth{\fill, 4.2cm}
|
||||||
|
\begin{paracol}{2}
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \secondColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for two column entries
|
||||||
|
|
||||||
|
\newenvironment{threecolentry}[3][]{
|
||||||
|
\onecolentry
|
||||||
|
\def\thirdColumn{#3}
|
||||||
|
\setcolumnwidth{1cm, \fill, 4.2cm}
|
||||||
|
\begin{paracol}{3}
|
||||||
|
\raggedright #2 \switchcolumn
|
||||||
|
}{
|
||||||
|
\switchcolumn \raggedleft \thirdColumn
|
||||||
|
\end{paracol}
|
||||||
|
\endonecolentry
|
||||||
|
} % new environment for three column entries
|
||||||
|
|
||||||
\newenvironment{header}{
|
\newenvironment{header}{
|
||||||
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
|
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
|
||||||
}{
|
}{
|
||||||
\par\kern\topsep
|
\par\kern\topsep
|
||||||
} % new environment for the header
|
} % new environment for the header
|
||||||
|
|
||||||
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
||||||
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
||||||
\put(
|
\put(
|
||||||
\LenToUnit{\paperwidth-2 cm+0.05cm},
|
\LenToUnit{\paperwidth-2 cm-0 cm+0.05cm},
|
||||||
\LenToUnit{\paperheight-1.0 cm}
|
\LenToUnit{\paperheight-1.0 cm}
|
||||||
){\vtop{{\null}\makebox[0pt][c]{
|
){\vtop{{\null}\makebox[0pt][c]{
|
||||||
\small\color{gray}\textit{Last updated in January 2024}\hspace{\widthof{Last updated in January 2024}}
|
\small\color{gray}\textit{Last updated in January 2024}\hspace{\widthof{Last updated in January 2024}}
|
||||||
|
@ -90,10 +137,6 @@
|
||||||
% new command for external links:
|
% new command for external links:
|
||||||
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
|
||||||
|
|
||||||
% Ensure that generate pdf is machine readable/ATS parsable
|
|
||||||
\input{glyphtounicode}
|
|
||||||
\pdfgentounicode=1
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\placelastupdatedtext
|
\placelastupdatedtext
|
||||||
|
|
||||||
|
@ -101,8 +144,9 @@
|
||||||
\section{Test}
|
\section{Test}
|
||||||
|
|
||||||
|
|
||||||
test
|
\begin{onecolentry}
|
||||||
|
This is an example resume to showcase the capabilities of the open-source LaTeX CV generator, \href{https://github.com/sinaatalay/rendercv}{RenderCV}. A substantial part of the content is taken from \href{https://www.careercup.com/resume}{here}, where a \textit{clean and tidy CV} pattern is proposed by \textbf{Gayle L. McDowell}.
|
||||||
|
\end{onecolentry}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue