rendercv/tests/testdata/test_generate_latex_file/engineeringresumes_empty.tex

156 lines
4.4 KiB
TeX
Raw Normal View History

2024-03-31 19:10:55 +00:00
\documentclass[10pt, letterpaper]{article}
% Packages:
\usepackage[
2024-04-07 17:41:52 +00:00
ignoreheadfoot, % set margins without considering header and footer
top=2 cm, % seperation between body and page edge from the top
bottom=2 cm, % seperation between body and page edge from the bottom
left=2 cm, % seperation between body and page edge from the left
right=2 cm, % seperation between body and page edge from the right
footskip=1.0 cm, % seperation between body and footer
% showframe % for debugging
]{geometry} % for adjusting page geometry
2024-03-31 19:10:55 +00:00
\usepackage{titlesec} % for customizing section titles
2024-04-07 17:41:52 +00:00
\usepackage{tabularx} % for making tables with fixed width columns
\usepackage{array} % tabularx requires this
2024-03-31 19:10:55 +00:00
\usepackage[dvipsnames]{xcolor} % for coloring text
2024-04-08 00:40:03 +00:00
\definecolor{primaryColor}{RGB}{0, 0, 0} % define primary color
2024-03-31 19:10:55 +00:00
\usepackage{enumitem} % for customizing lists
\usepackage{fontawesome5} % for using icons
\usepackage{amsmath} % for math
\usepackage[
pdftitle={None's CV},
pdfauthor={None},
colorlinks=true,
urlcolor=primaryColor
]{hyperref} % for links, metadata and bookmarks
\usepackage[pscoord]{eso-pic} % for floating text on the page
\usepackage{calc} % for calculating lengths
\usepackage{bookmark} % for bookmarks
\usepackage{lastpage} % for getting the total number of pages
2024-04-07 17:41:52 +00:00
\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
\usepackage{charter} % for using charter font
% Ensure that generate pdf is machine readable/ATS parsable:
\ifpdf
\input{glyphtounicode}
\pdfgentounicode=1
\fi
2024-03-31 19:10:55 +00:00
% Some settings:
2024-04-08 19:29:24 +00:00
\raggedright
2024-04-14 22:57:16 +00:00
\AtBeginEnvironment{adjustwidth}{\partopsep0pt} % remove space before adjustwidth environment
2024-03-31 19:10:55 +00:00
\pagestyle{empty} % no header or footer
\setcounter{secnumdepth}{0} % no section numbering
\setlength{\parindent}{0pt} % no indentation
\setlength{\topskip}{0pt} % no top skip
2024-04-08 00:40:03 +00:00
\pagenumbering{gobble} % no page numbering
2024-03-31 19:10:55 +00:00
2024-04-07 17:41:52 +00:00
\titleformat{\section}{\needspace{4\baselineskip}\bfseries\large}{}{0pt}{}[\vspace{1pt}\titlerule]
2024-03-31 19:10:55 +00:00
\titlespacing{\section}{
2024-04-07 17:41:52 +00:00
% left space:
2024-04-08 00:40:03 +00:00
-1pt
2024-04-07 17:41:52 +00:00
}{
% top space:
0.3 cm
}{
% bottom space:
0.2 cm
} % section title spacing
\renewcommand\labelitemi{$\vcenter{\hbox{\small$\bullet$}}$}
2024-03-31 19:10:55 +00:00
\newenvironment{highlights}{
2024-04-07 17:41:52 +00:00
\begin{itemize}[
topsep=0.10 cm,
parsep=0.10 cm,
partopsep=0pt,
itemsep=0pt,
leftmargin=0 cm + 10pt
]
}{
\end{itemize}
2024-04-08 00:40:03 +00:00
2024-04-14 22:57:16 +00:00
\vspace{-0.10cm}
2024-04-07 17:41:52 +00:00
} % new environment for highlights
\newenvironment{onecolentry}{
\begin{adjustwidth}{
0 cm + 0.00001 cm
2024-03-31 19:10:55 +00:00
}{
2024-04-07 17:41:52 +00:00
0 cm + 0.00001 cm
}
}{
\end{adjustwidth}
} % new environment for one column entries
\newenvironment{twocolentry}[2][]{
\onecolentry
\def\secondColumn{#2}
2024-04-14 22:57:16 +00:00
\setcolumnwidth{\fill, 4.1 cm}
2024-04-07 17:41:52 +00:00
\begin{paracol}{2}
}{
\switchcolumn \raggedleft \secondColumn
\end{paracol}
\endonecolentry
} % new environment for two column entries
\newenvironment{threecolentry}[3][]{
\onecolentry
\def\thirdColumn{#3}
2024-04-14 22:57:16 +00:00
\setcolumnwidth{, \fill, 4.1 cm}
2024-04-07 17:41:52 +00:00
\begin{paracol}{3}
\raggedright #2 \switchcolumn
}{
\switchcolumn \raggedleft \thirdColumn
\end{paracol}
\endonecolentry
} % new environment for three column entries
2024-03-31 19:10:55 +00:00
\newenvironment{header}{
2024-04-07 17:41:52 +00:00
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
}{
\par\kern\topsep
} % new environment for the header
2024-03-31 19:10:55 +00:00
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
\put(
2024-04-07 17:41:52 +00:00
\LenToUnit{\paperwidth-2 cm-0 cm+0.05cm},
2024-03-31 19:10:55 +00:00
\LenToUnit{\paperheight-1.0 cm}
){\vtop{{\null}\makebox[0pt][c]{
\small\color{gray}\textit{Last updated in January 2024}\hspace{\widthof{Last updated in January 2024}}
}}}%
}%
}%
2024-04-08 00:40:03 +00:00
% % save the original href command in a new command:
% \let\hrefWithoutArrow\href
% % new command for external links:
% \renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
2024-03-31 19:10:55 +00:00
\begin{document}
2024-04-14 22:57:16 +00:00
\newcommand{\AND}{\unskip
\cleaders\copy\ANDbox\hskip\wd\ANDbox
\ignorespaces
2024-04-08 19:29:24 +00:00
}
2024-04-14 22:57:16 +00:00
\newsavebox\ANDbox
\sbox\ANDbox{$|$}
2024-04-08 19:29:24 +00:00
2024-03-31 19:10:55 +00:00
\section{Test}
2024-04-07 17:41:52 +00:00
\begin{onecolentry}
2024-04-07 23:44:02 +00:00
test
2024-04-07 17:41:52 +00:00
\end{onecolentry}
2024-03-31 19:10:55 +00:00
\end{document}