commit c12ffe769d0568a490fe67ad4f5874801aaeff10
parent 6b1a46fa1c17392587fb0559b9a8ee2de459fd62
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Mon, 30 Sep 2024 12:10:04 -0300
update `style.tex`
Diffstat:
| M | style.tex | | | 82 | +++++++++++++++++++++++++++++++++++++++++-------------------------------------- |
1 file changed, 43 insertions(+), 39 deletions(-)
diff --git a/style.tex b/style.tex
@@ -2,11 +2,11 @@
% page setup
\usepackage[a4paper,
- top=1.5cm,
- bottom=1.5cm,
- left=1.25cm,
- right=1.25cm,
- bmargin=1.5cm]{geometry}
+ top=2.25cm,
+ bottom=2.0cm,
+ left=1.5cm,
+ right=1.5cm,
+ bmargin=1.5cm]{geometry}
\usepackage{titlesec}
\usepackage{fontspec}
@@ -20,7 +20,7 @@
\let\oldtexttt\texttt
\renewcommand{\texttt}[1]{
- \colorbox{bgcolor}{\oldtexttt{#1}}
+ \colorbox{bgcolor}{\oldtexttt{#1}}
}
% change boldfont bold to extrabold
@@ -31,15 +31,15 @@
% change regular font to light font
% \setmainfont{Inter light}
-\newfontfamily\titlefont{Inter}[
-UprightFont = *-Regular,
-BoldFont = *-ExtraBold,
-Scale = 1.0
+\newfontfamily\titlefont{Inter} [
+ UprightFont = *-Regular,
+ BoldFont = *-ExtraBold,
+ Scale = 1.0
]
-\newfontfamily\sectionsfont{Inter}[
-UprightFont = *-Regular,
-BoldFont = *-Bold,
+\newfontfamily\sectionsfont{Inter} [
+ UprightFont = *-Regular,
+ BoldFont = *-Bold,
]
\setmathfont{Fira Math}
@@ -132,23 +132,23 @@ BoldFont = *-Bold,
\usepackage{titling}
\renewcommand{\maketitle}{
- \begin{flushleft}
- {\bfseries\Huge\thetitle}
- \vspace{1mm}
- \end{flushleft}
- \thispagestyle{empty}
+ \begin{flushleft}
+ {\bfseries\huge\thetitle}
+ \vspace{1mm}
+ \end{flushleft}
+ % \thispagestyle{empty} % remove this line to show page number on first page
}
% remove the page number from all the pages that the TOC occupies
-\addtocontents{toc}{\protect\thispagestyle{empty}}
+% \addtocontents{toc}{\protect\thispagestyle{empty}}
% add page break after TOC set it to page number 1
\let\oldtableofcontents\tableofcontents % remember the definition
\renewcommand\tableofcontents{
- \oldtableofcontents % use the standard toc
- \thispagestyle{empty}
- \pagebreak
- \setcounter{page}{1}
+ \oldtableofcontents % use the standard toc
+ \thispagestyle{empty}
+ \pagebreak
+ \setcounter{page}{1}
}
% Set text color for all document
@@ -170,7 +170,6 @@ BoldFont = *-Bold,
% change style of quote, see also https://tex.stackexchange.com/a/436253/114857
\usepackage[most]{tcolorbox}
-
\definecolor{linequote}{RGB}{224,215,188}
\definecolor{bordercolor}{RGB}{221,221,221}
% \definecolor{backquote}{RGB}{249,245,233}
@@ -178,19 +177,20 @@ BoldFont = *-Bold,
% change left border: https://tex.stackexchange.com/a/475716/114857
% change left margin: https://tex.stackexchange.com/a/457936/114857
-\newtcolorbox{myquote}[1][]{%
- enhanced,
- breakable,
- size=minimal,
- left=12pt,
- top=12pt,
- bottom=12pt,
- right=12pt,
- boxrule=1pt,
- sharp corners=all,
- colback=backquote,
- colframe=black,
- #1}
+\newtcolorbox{myquote}[1][] {
+ enhanced,
+ breakable,
+ size=minimal,
+ left=12pt,
+ top=12pt,
+ bottom=12pt,
+ right=12pt,
+ boxrule=1pt,
+ sharp corners=all,
+ colback=backquote,
+ colframe=black,
+ #1
+}
% redefine quote environment to use the myquote environment, see
% https://tex.stackexchange.com/a/337587/114857
@@ -206,9 +206,13 @@ BoldFont = *-Bold,
\renewcommand*{\thempfootnote}{\ [\arabic{mpfootnote}]\ }
% space between text and footer
-\setlength\footskip{25pt}
-\setlength{\skip\footins}{12pt}
+\setlength\footskip{15pt}
+\setlength{\skip\footins}{18pt}
% align first letter of all the lines in the footnotes
\usepackage[bottomfloats,belowfloats,hang]{footmisc}
\setlength{\footnotemargin}{1em}
+
+\usepackage{helvet}
+\renewcommand\familydefault{\sfdefault}
+\usepackage[T1]{fontenc}