-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
116 lines (102 loc) · 3.29 KB
/
main.tex
File metadata and controls
116 lines (102 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
\documentclass[10pt, letterpaper]{article}
% Packages:
\usepackage[
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
\usepackage{titlesec} % for customizing section titles
\usepackage{xcolor} % for coloring text
\usepackage{enumitem} % for customizing lists
\usepackage[
pdftitle={James Middleton CV},
pdfauthor={James Middleton},
pdfcreator={LaTeX},
colorlinks=true,
urlcolor=black
]{hyperref} % for links, metadata and bookmarks
\usepackage{calc} % for calculating lengths
\usepackage{bookmark} % for bookmarks
\usepackage{changepage} % for one column entries (adjustwidth environment)
% paracol removed for ATS compatibility — dates now use \hfill
\usepackage{needspace} % for avoiding page brake right after the section title
\usepackage{iftex} % check if engine is pdflatex, xetex or luatex
\usepackage{fancyhdr} % for customizing the footer
% Ensure that generate pdf is machine readable/ATS parsable:
\ifPDFTeX
\input{glyphtounicode}
\pdfgentounicode=1
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\fi
\usepackage{charter}
% Some settings:
\raggedright
\AtBeginEnvironment{adjustwidth}{\partopsep0pt} % remove space before
% adjustwidth environment
\pagestyle{fancy} % no header or footer
\fancyhead{} % clear header and footer
\renewcommand{\headrulewidth}{0pt}
\setcounter{secnumdepth}{0} % no section numbering
\setlength{\parindent}{0pt} % no indentation
\setlength{\topskip}{0pt} % no top skip
% \columnsep removed — no longer using paracol columns
\pagenumbering{arabic} % keep internal page counter incrementing for
% unique PDF anchors
\cfoot{} % hide the actual page number from output
\titleformat{\section}{\needspace{4\baselineskip}\bfseries\large}{}{0pt}{}[\vspace{1pt}\titlerule]
\titlespacing{\section}{
% left space:
-1pt
}{
% top space:
0.3 cm
}{
% bottom space:
0.2 cm
} % section title spacing
\renewcommand\labelitemi{\textbullet} % ATS-safe bullet points
\newenvironment{highlights}{
\begin{itemize}[
topsep=0.10 cm,
parsep=0.10 cm,
partopsep=0pt,
itemsep=0pt,
leftmargin=0 cm + 10pt
]
}{
\end{itemize}
} % new environment for highlights
\newenvironment{onecolentry}{
\begin{adjustwidth}{
0 cm + 0.00001 cm
}{
0 cm + 0.00001 cm
}
}{
\end{adjustwidth}
} % new environment for one column entries
\newenvironment{twocolentry}[1]{
\onecolentry
\def\secondColumn{#1}
\begin{tabular*}{\linewidth}{@{}l@{\extracolsep{\fill}}r@{}}
}{
& \mbox{\secondColumn} \\
\end{tabular*}
\endonecolentry
} % ATS-safe two column entries using tabular instead of paracol
\newenvironment{header}{
\setlength{\topsep}{0pt}\par\kern\topsep\centering\linespread{1.5}
}{
\par\kern\topsep
} % new environment for the header
% alias used in the header for links without arrow decoration:
\let\hrefWithoutArrow\href
\begin{document}
\input{body}
\end{document}