Skip to content

Commit 6765ab7

Browse files
MaxDatenclaude
andcommitted
style: Optimize LaTeX template with design principles
Apply Precision & Density design direction for PDF output: Typography hierarchy: - Larger, bolder name in header (LARGE) - Muted gray subtitle and "Technologies" labels - Consistent section/subsection sizing Brand consistency: - Orange accent (#D97706) for links and bullets - Matches HTML styling Layout refinements: - Balanced margins (1.5cm sides, 1.2cm top/bottom) - Thinner gray section rules (0.4pt) - Tighter list spacing with accent bullets - microtype for better character spacing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0fbaac3 commit 6765ab7

1 file changed

Lines changed: 110 additions & 78 deletions

File tree

src/templates/template.tex

Lines changed: 110 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,160 @@
11
%-------------------------
2-
% CV for Northeastern University Faculty in Latex
3-
% Author : Zoe Kearney
4-
% Based off of: https://www.overleaf.com/latex/templates/coles-resume-template/qhpynjcvjpcj
5-
% Follows: https://theprofessorisin.com/2016/08/19/dr-karens-rules-of-the-academic-cv/
6-
% License : MIT
2+
% Professional CV Template
3+
% Design: Precision & Density - information-forward, scannable
4+
% Based on design principles: 4px grid, typography hierarchy, color for meaning
75
%------------------------
86

97
% Document class and font size
108
\documentclass[a4paper,9pt]{extarticle}
119

1210
% Packages
13-
% \usepackage{textcomp} % provide euro and other symbols
14-
% \usepackage{helvet} % For font
11+
\usepackage[T1]{fontenc}
12+
\usepackage{geometry}
13+
\usepackage{titlesec}
14+
\usepackage{enumitem}
15+
\usepackage{hyperref}
16+
\usepackage{parskip}
17+
\usepackage{xcolor}
18+
\usepackage{microtype} % Better typography
19+
20+
% --------------------------------------------------------------------------
21+
% Colors - Brand accent (orange) for links and highlights
22+
% --------------------------------------------------------------------------
23+
\definecolor{accent}{HTML}{D97706} % Brand orange for links
24+
\definecolor{muted}{gray}{0.45} % Muted text (dates, secondary info)
25+
\definecolor{tagbg}{gray}{0.92} % Technology tag background
26+
\definecolor{rule}{gray}{0.75} % Section rule color
27+
28+
% --------------------------------------------------------------------------
29+
% Page geometry - Balanced margins (not too tight)
30+
% --------------------------------------------------------------------------
31+
\geometry{
32+
a4paper,
33+
top=1.2cm,
34+
bottom=1.2cm,
35+
left=1.5cm,
36+
right=1.5cm
37+
}
38+
39+
% --------------------------------------------------------------------------
40+
% Typography - XCharter for readability
41+
% --------------------------------------------------------------------------
1542
\usepackage{XCharter}
16-
\usepackage[T1]{fontenc} % For font encoding
17-
% \usepackage[utf8]{inputenc} % For input encoding
18-
\usepackage{geometry} % For page margins
19-
\geometry{a4paper, margin=1.0cm} % Set paper size and margins
20-
\usepackage{titlesec} % For section title formatting
21-
\usepackage{enumitem} % For itemized list formatting
22-
\usepackage{hyperref} % For hyperlinks
23-
\usepackage{parskip} % For paragraph spacing
24-
\usepackage{xcolor} % For colors
25-
26-
% Technology tags styling - light gray background boxes
27-
\definecolor{tagbg}{gray}{0.92}
43+
44+
% --------------------------------------------------------------------------
45+
% Technology tags - Light gray background boxes
46+
% --------------------------------------------------------------------------
2847
\let\oldtexttt\texttt
2948
\renewcommand{\texttt}[1]{%
3049
\colorbox{tagbg}{\oldtexttt{\small #1}}%
3150
}
3251

33-
% Formatting
34-
\setlist{noitemsep} % Removes item separation
35-
\setlist[itemize]{leftmargin=*} % Remove indention for itemized lists
52+
% --------------------------------------------------------------------------
53+
% Lists - Tight spacing, accent-colored bullets
54+
% --------------------------------------------------------------------------
55+
\setlist{noitemsep, topsep=2pt}
56+
\setlist[itemize]{
57+
leftmargin=1.2em,
58+
label={\textcolor{accent}{\textbullet}}
59+
}
3660

37-
% Formatting section titles
61+
% --------------------------------------------------------------------------
62+
% Section titles (h1) - Bold with subtle underline
63+
% --------------------------------------------------------------------------
3864
\titleformat{\section}
39-
{\large\bfseries}
40-
{\thesection}
41-
{1em}
42-
{}
43-
[\titlerule] % after-code
44-
\titlespacing*{\section}{0pt}{\baselineskip}{\baselineskip} % Section title spacing
65+
{\large\bfseries}
66+
{}
67+
{0pt}
68+
{}
69+
[\vspace{2pt}{\color{rule}\hrule height 0.4pt}]
70+
\titlespacing*{\section}{0pt}{16pt}{8pt}
71+
72+
% --------------------------------------------------------------------------
73+
% Subsection titles (h2) - Company names, prominent
74+
% --------------------------------------------------------------------------
4575
\titleformat{\subsection}
46-
{\normalfont\Large\bfseries}
47-
{\thesubsection}
48-
{1em}
49-
{\vspace{0.3em}} % before-code
50-
[\vspace{-0.5em}] % after-code
76+
{\normalsize\bfseries}
77+
{}
78+
{0pt}
79+
{}
80+
\titlespacing*{\subsection}{0pt}{12pt}{2pt}
81+
82+
% --------------------------------------------------------------------------
83+
% Subsubsection titles (h3) - "Technologies" label, subtle
84+
% --------------------------------------------------------------------------
5185
\titleformat{\subsubsection}
52-
{\normalfont\normalsize\bfseries}
53-
{\thesubsubsection}
54-
{1em}
55-
{\vspace{-0.5em}} % before-code
56-
[\vspace{-0.5em}] % after-code
86+
{\small\bfseries\color{muted}}
87+
{}
88+
{0pt}
89+
{}
90+
\titlespacing*{\subsubsection}{0pt}{8pt}{2pt}
91+
92+
% --------------------------------------------------------------------------
93+
% Hyperlinks - Brand accent color
94+
% --------------------------------------------------------------------------
95+
\hypersetup{
96+
colorlinks=true,
97+
linkcolor=accent,
98+
filecolor=accent,
99+
citecolor=accent,
100+
urlcolor=accent,
101+
pdfcreator={LaTeX via pandoc}
102+
}
57103

104+
% --------------------------------------------------------------------------
105+
% Graphics (conditional)
106+
% --------------------------------------------------------------------------
58107
$if(graphics)$
59108
\usepackage{graphicx}
60109
\makeatletter
61110
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
62111
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
63112
\makeatother
64-
% Scale images if necessary, so that they will not overflow the page
65-
% margins by default, and it is still possible to overwrite the defaults
66-
% using explicit options in \includegraphics[width, height, ...]{}
67113
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
68-
% Set default figure placement to htbp
69114
\makeatletter
70115
\def\fps@figure{htbp}
71116
\makeatother
72117
$endif$
73118

74-
\setlength{\emergencystretch}{3em} % prevent overfull lines
119+
% --------------------------------------------------------------------------
120+
% Misc settings
121+
% --------------------------------------------------------------------------
122+
\setlength{\emergencystretch}{3em}
75123
\providecommand{\tightlist}{%
76124
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
125+
\setcounter{secnumdepth}{-\maxdimen}
77126

78-
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
79-
80-
% Begin document
127+
% --------------------------------------------------------------------------
128+
% Begin Document
129+
% --------------------------------------------------------------------------
81130
\begin{document}
82-
83-
% Disable page numbers
84131
\pagestyle{empty}
85132

86-
\hypersetup{
133+
% PDF metadata
87134
$if(title-meta)$
88-
pdftitle={$title-meta$},
135+
\hypersetup{pdftitle={$title-meta$}}
89136
$endif$
90137
$if(author-meta)$
91-
pdfauthor={$author-meta$},
138+
\hypersetup{pdfauthor={$author-meta$}}
92139
$endif$
93140
$if(lang)$
94-
pdflang={$lang$},
95-
$endif$
96-
$if(subject)$
97-
pdfsubject={$subject$},
98-
$endif$
99-
$if(keywords)$
100-
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
101-
$endif$
102-
$if(colorlinks)$
103-
colorlinks=true,
104-
linkcolor={$if(linkcolor)$$linkcolor$$else$Maroon$endif$},
105-
filecolor={$if(filecolor)$$filecolor$$else$Maroon$endif$},
106-
citecolor={$if(citecolor)$$citecolor$$else$Blue$endif$},
107-
urlcolor={$if(urlcolor)$$urlcolor$$else$Blue$endif$},
108-
$else$
109-
hidelinks,
141+
\hypersetup{pdflang={$lang$}}
110142
$endif$
111-
pdfcreator={LaTeX via pandoc}
112-
}
113143

114-
115-
% Header
144+
% --------------------------------------------------------------------------
145+
% Header - Strong name hierarchy
146+
% --------------------------------------------------------------------------
116147
\begin{center}
117-
\textbf{$title-meta$}\\ % Name
118-
\textbf{\small $subtitle$}\\ % Title
119-
% \textbf{Curriculum Vitae}\\[1pt] % CV
120-
$contact$
148+
{\LARGE\bfseries $title-meta$}\\[4pt]
149+
{\normalsize\color{muted} $subtitle$}\\[6pt]
150+
{\small $contact$}
121151
\end{center}
122152

123-
%------------------------
153+
\vspace{4pt}
124154

155+
% --------------------------------------------------------------------------
156+
% Body
157+
% --------------------------------------------------------------------------
125158
$body$
126159

127-
% End document
128160
\end{document}

0 commit comments

Comments
 (0)