mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
fix(cv): override moderncv banking colors and remove inter-item \vspace
Two fixes for the moderncv banking + lualatex + MiKTeX combination that
the README documents as the recommended setup:
1. **Color overrides for names and section headings.** Default banking on
modern MiKTeX renders firstname, lastname, and \section headings in
black, which clashes with the rest of the blue accent scheme (links,
bullets, contact icons). Add three \renewcommand* lines that force
firstnamestyle, lastnamestyle, and sectionstyle to use \color{color1}.
Both names render bold in matching blue, and every \section heading
renders blue with the standard horizontal underline. No effect for
users on a setup where the defaults already render blue.
2. **Remove \vspace{1pt} between \item entries in itemize lists.** This
pattern (used 21 times in the template) intermittently produces an
oversized gap before a single item: every adjacent pair has the same
separator in the source, but LaTeX renders one of them noticeably
wider because the inter-item \vspace creates a paragraph break that
interacts with the list's internal \itemsep. Removing the inter-item
\vspace lets itemize use its native uniform spacing, which renders
consistently. \vspace{1pt} immediately after \section{...} (between
header and first item) and \vspace{3pt} between top-level \cventry
blocks are kept - those are different patterns and render fine.
Also updated the file's compile-comment from "pdflatex" to "lualatex"
to match the README.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
6c23f80c03
commit
3f8d04d759
+9
-11
@@ -3,12 +3,20 @@
|
|||||||
%% Use as a master reference when tailoring role-specific CVs.
|
%% Use as a master reference when tailoring role-specific CVs.
|
||||||
%%
|
%%
|
||||||
%% SETUP: Run /setup to populate this with your actual information.
|
%% SETUP: Run /setup to populate this with your actual information.
|
||||||
%% Compile with: pdflatex main_example.tex
|
%% Compile with: lualatex main_example.tex
|
||||||
|
%% (pdflatex often fails on modern MiKTeX with fontawesome5 font-expansion errors.)
|
||||||
|
|
||||||
\documentclass[11pt,a4paper,sans]{moderncv}
|
\documentclass[11pt,a4paper,sans]{moderncv}
|
||||||
\moderncvstyle{banking}
|
\moderncvstyle{banking}
|
||||||
\moderncvcolor{blue}
|
\moderncvcolor{blue}
|
||||||
|
|
||||||
|
% Force both first and last name AND section headings to render in moderncv
|
||||||
|
% blue (color1). Default banking on lualatex+MiKTeX leaves these black, which
|
||||||
|
% looks inconsistent with the rest of the blue accent scheme.
|
||||||
|
\renewcommand*{\firstnamestyle}[1]{{\fontsize{34}{36}\bfseries\upshape\color{color1}#1}}
|
||||||
|
\renewcommand*{\lastnamestyle}[1]{{\fontsize{34}{36}\bfseries\upshape\color{color1}#1}}
|
||||||
|
\renewcommand*{\sectionstyle}[1]{{\sectionfont\color{color1}#1}}
|
||||||
|
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
@@ -49,16 +57,12 @@
|
|||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
|
||||||
\item \textbf{[Skill Category 1]}: [Specific skills, frameworks, tools. Be concrete.]
|
\item \textbf{[Skill Category 1]}: [Specific skills, frameworks, tools. Be concrete.]
|
||||||
\vspace{1pt}
|
|
||||||
|
|
||||||
\item \textbf{[Skill Category 2]}: [Specific skills, frameworks, tools.]
|
\item \textbf{[Skill Category 2]}: [Specific skills, frameworks, tools.]
|
||||||
\vspace{1pt}
|
|
||||||
|
|
||||||
\item \textbf{[Skill Category 3]}: [Specific skills, frameworks, tools.]
|
\item \textbf{[Skill Category 3]}: [Specific skills, frameworks, tools.]
|
||||||
\vspace{1pt}
|
|
||||||
|
|
||||||
\item \textbf{[Skill Category 4]}: [Domain expertise, methods, approaches.]
|
\item \textbf{[Skill Category 4]}: [Domain expertise, methods, approaches.]
|
||||||
\vspace{1pt}
|
|
||||||
|
|
||||||
\item \textbf{[Skill Category 5]}: [Tools, platforms, software.]
|
\item \textbf{[Skill Category 5]}: [Tools, platforms, software.]
|
||||||
|
|
||||||
@@ -76,11 +80,8 @@
|
|||||||
\item{\cventry{[YYYY--Present]}{[Job Title]}{[Company]}{[City, Country]}{}{\vspace{1pt}
|
\item{\cventry{[YYYY--Present]}{[Job Title]}{[Company]}{[City, Country]}{}{\vspace{1pt}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item [Achievement or responsibility 1 - be specific, use numbers where possible]
|
\item [Achievement or responsibility 1 - be specific, use numbers where possible]
|
||||||
\vspace{1pt}
|
|
||||||
\item [Achievement or responsibility 2]
|
\item [Achievement or responsibility 2]
|
||||||
\vspace{1pt}
|
|
||||||
\item [Achievement or responsibility 3]
|
\item [Achievement or responsibility 3]
|
||||||
\vspace{1pt}
|
|
||||||
\item [Achievement or responsibility 4]
|
\item [Achievement or responsibility 4]
|
||||||
\end{itemize}}}
|
\end{itemize}}}
|
||||||
|
|
||||||
@@ -90,9 +91,7 @@
|
|||||||
\item{\cventry{[YYYY--YYYY]}{[Job Title]}{[Company]}{[City, Country]}{}{\vspace{1pt}
|
\item{\cventry{[YYYY--YYYY]}{[Job Title]}{[Company]}{[City, Country]}{}{\vspace{1pt}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item [Achievement or responsibility 1]
|
\item [Achievement or responsibility 1]
|
||||||
\vspace{1pt}
|
|
||||||
\item [Achievement or responsibility 2]
|
\item [Achievement or responsibility 2]
|
||||||
\vspace{1pt}
|
|
||||||
\item [Achievement or responsibility 3]
|
\item [Achievement or responsibility 3]
|
||||||
\end{itemize}}}
|
\end{itemize}}}
|
||||||
|
|
||||||
@@ -102,7 +101,6 @@
|
|||||||
\item{\cventry{[YYYY--YYYY]}{[Job Title]}{[Company]}{[City, Country]}{}{\vspace{1pt}
|
\item{\cventry{[YYYY--YYYY]}{[Job Title]}{[Company]}{[City, Country]}{}{\vspace{1pt}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item [Achievement or responsibility 1]
|
\item [Achievement or responsibility 1]
|
||||||
\vspace{1pt}
|
|
||||||
\item [Achievement or responsibility 2]
|
\item [Achievement or responsibility 2]
|
||||||
\end{itemize}}}
|
\end{itemize}}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user