summaryrefslogtreecommitdiff
path: root/Hallsby_Karl.tex
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2022-09-18 18:28:39 -0500
committerKarl Hallsby <karl@hallsby.com>2022-10-01 23:10:14 -0500
commit75a384d3c791c32ff7764674d8952cf0f4099cfc (patch)
tree0e3a90a398838038cfb6749004c7d2497c07f7b9 /Hallsby_Karl.tex
parentdbda389836d31ba631c716359bfef22d948d7a58 (diff)
Make all sections use all uppercase letters
The explicit flag to the titlesec package allows us to explicitly specify where certain arguments passed to the \section{} command get placed. Properly get sections to work. The reason this change is needed is because I was adding the output tot he format field of the \titleformat command. Instead, it needed to go in the before field. See the StackOverflow answer for why. https://tex.stackexchange.com/a/209723 Ensure all sectioning commands work with explicit titlesec option
Diffstat (limited to 'Hallsby_Karl.tex')
-rw-r--r--Hallsby_Karl.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Hallsby_Karl.tex b/Hallsby_Karl.tex
index 92d8c99..84d3daa 100644
--- a/Hallsby_Karl.tex
+++ b/Hallsby_Karl.tex
@@ -38,20 +38,20 @@
% Heading (section/subsection/...) manipulation functions
\usepackage{titling}
-\usepackage{titlesec}
+\usepackage[explicit]{titlesec}
% \titleformat{<command>}[<shape>]{<format>}{<label>}{<sep>}{<before>}[<after>]
% \titlespacing{<command>}{<left>}{<beforesep>}{<aftersep>}[<right>]
% Starred version kills the indentation of the paragraph following the title
-\titleformat{\section}{\LARGE\bfseries{}}{}{0em}{}[\titlerule]
+\titleformat{\section}{\Large\bfseries}{}{0em}{\MakeUppercase{#1}}[\titlerule]
% [\titlerule] places the line stretching across the page beneath the section
\titlespacing*{\section}{0pt}{3pt}{5pt}
% Make less space above the subsection or between normal and subsection
% Don't put subsection contents on same line, like \paragraph
-\titleformat{\subsection}{\large}{}{1em}{}
+\titleformat{\subsection}{\large}{}{1em}{#1}
\titlespacing*{\subsection}{-5px}{0pt}{0px}
-\titleformat{\paragraph}{\scshape}{}{0em}{}
+\titleformat{\paragraph}{\scshape}{}{0em}{#1}
\titlespacing{\paragraph}{0pt}{2pt}{0pt}
-\titleformat{\subparagraph}{\scshape}{}{}{}
+\titleformat{\subparagraph}{\scshape}{}{}{#1}
\titlespacing{\subparagraph}{5pt}{2pt}{0pt}
% Make my PDF parsable by Oracle Taleo. Taken from this Reddit comment