Replace secsty with titlesec
This commit is contained in:
@@ -5,5 +5,5 @@ Compile `main.tex` using either `pdflatex` with `biblatex` or `lualatex` (recomm
|
||||
You may need to install the following packages:
|
||||
|
||||
```bash
|
||||
tlmgr install adjustbox babel babel-english biber biblatex bookmark booktabs caption changes csquotes emptypage enumitem etoc etoolbox fancyhdr fontaxes fontenc graphicx hyperref iftex import inconsolata libertinus libertinus-fonts libertinus-otf libertinus-type1 makecell mathtools microtype multirow nextpage pdflscape pdfpages sectsty setspace siunitx subfig tabularx textcomp truncate todonotes ulem upquote xcolor xstring
|
||||
tlmgr install adjustbox babel babel-english biber biblatex bookmark booktabs caption changes csquotes emptypage enumitem etoc etoolbox fancyhdr fontaxes fontenc graphicx hyperref iftex import inconsolata libertinus libertinus-fonts libertinus-otf libertinus-type1 makecell mathtools microtype multirow nextpage pdflscape pdfpages setspace siunitx subfig tabularx textcomp titlesec truncate todonotes ulem upquote xcolor xstring
|
||||
```
|
||||
|
||||
@@ -22,9 +22,12 @@
|
||||
\usepackage{microtype} % Micro-typography improvements (slightly more compact, better to read)
|
||||
|
||||
% Use sans-serif font for sectionss
|
||||
\usepackage{sectsty}
|
||||
\chapterfont{\sffamily}
|
||||
\allsectionsfont{\sffamily}
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\chapter}[display]{\normalfont\Large\sffamily\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
|
||||
\titleformat{\section}{\normalfont\large\sffamily\bfseries}{\thesection}{1em}{}
|
||||
\titleformat{\subsection}{\normalfont\normalsize\sffamily\bfseries}{\thesubsection}{1em}{}
|
||||
\titleformat{\subsubsection}[runin]{\normalfont\normalsize\sffamily\mdseries}{\thesubsubsection}{1em}{}
|
||||
\titleformat{\paragraph}[runin]{\normalfont\normalsize\sffamily\bfseries}{\theparagraph}{1em}{}
|
||||
|
||||
% Headers
|
||||
\usepackage{emptypage} % Remove headers and footers on empty pages
|
||||
|
||||
Reference in New Issue
Block a user