-
Notifications
You must be signed in to change notification settings - Fork 0
/
_quarto.yml
146 lines (135 loc) · 4.46 KB
/
_quarto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
date: today
date-format: YYYY-MM-DD
author:
- Bilal Zafar
- Alexander Göransson
- Oskar Sundberg
reference-location: margin
citation-location: document
tbl-cap-location: margin
cap-location: margin
lang: sv
notes-after-punctuation: true
pdf-engine: xelatex
latex-auto-mk: true
latex-max-runs: 4
latex-clean: true
keep-tex: false
highlight-style: kate
format:
pdf:
documentclass: scrartcl
template-partials:
- before-body.tex
papersize: a4
geometry:
# - showframe
- left=20.0mm
- textwidth=97.0mm
- marginparsep=7.7mm
- marginparwidth=70.3mm
- top=20mm
- bottom=20mm
- footskip=10mm
#
# textwithmarginpar should be
# 97.0 + 7.7 + 70.3 = 175mm
number-sections: false
colorlinks: false
mainfont: "ETbb"
mainfontoptions:
- Path=fonts/
- Extension=.otf
- UprightFont=*-Regular
- BoldFont=*-Bold
- ItalicFont=*-Italic
- BoldItalicFont=*-BoldItalic
monofont: "SourceCodePro"
monofontoptions:
- Path=fonts/
- Extension=.ttf
- UprightFont=*-Medium
- BoldFont=*-Bold
- ItalicFont=*-MediumItalic
- BoldItalicFont=*-BoldItalic
sansfont: "cabin"
sansfontoptions:
- Path=fonts/
- Extension=.ttf
- UprightFont=*.medium
- BoldFont=*.bold
- ItalicFont=*.italic
- BoldItalicFont=*.bold-italic
include-in-header:
- text: |
%
\usepackage{sourcecodepro}
% COLUMNS (probably no longer used)
\newcommand{\hideFromPandoc}[1]{#1}
\hideFromPandoc{
\let\Begin\begin
\let\End\end
}
\usepackage{multicol}
\setlength{\columnsep}{10mm}
%
% TABLES
% \usepackage{booktabs}
\usepackage[thinlines]{easytable}
%
% DRAW CIRUITS
\usepackage[
americancurrents,
europeanvoltages, % bent lines
europeanresistors,
cuteinductors,
% straightvoltages,
% americanvoltages,
siunitx,
]{circuitikz}
\usetikzlibrary{positioning} % need diz
\usetikzlibrary{calc}
%
% TIMING DIAGRAMS
\usepackage{tikz-timing}
%
% INVERT MARKER, SIMPLE INDEX AND OTHER CUSTOM COMMANDS
\usepackage{amsfonts}
\newcommand{\inv}[1]{$\overline{\textnormal{#1}}$}
\newcommand{\ix}[2]{$\textnormal{#1}_{\textnormal{#2}}$} % indexed vars
\newcommand{\ixx}[3]{$\textnormal{#1}_{\textnormal{#2}_\textnormal{#3}}$}
\newcommand{\parallelsum}{\mathbin{\!/\mkern-5mu/\!}}
%
% EMPTY LINES FOR NOTES/ANSWERS
% https://texblog.org/2012/06/25/adding-lines-for-taking-handwritten-notes-in-latex/
\usepackage{pgffor, ifthen}
%
% args=[extra_vspace=16pt]{number_of_lines}{line_width}
% [ #1 ]{ #2 }{ #3 }
\newcommand{\notes}[3][16pt]{
\foreach \n in {1,...,#2}
{
\ifthenelse{\equal{\n}{#2}}% on last line?
{
\noindent\rule{#3}{0.5pt}\par
}
{
\noindent\rule{#3}{0.5pt}\vspace{#1}\newline
}
}
}
\newcommand{\ansline}[1]{%
\makebox[#1]{\hrulefill}}
\usepackage{tabto}
%
% FONT SETTING OVERRIDES
% Reversing quartos config. See scrguide-en.pdf, ch 4.9
% \setkomafont{title}{\normalfont\bfseries\huge}
% \setkomafont{subtitle}{\normalfont\bfseries\itshape\Large}
% \setkomafont{section}{\normalfont\bfseries\itshape\Large}
% \setkomafont{subsection}{\normalfont\bfseries\itshape\large}
\setkomafont{descriptionlabel}{\normalfont\bfseries}
%
% PAGE NUMBER PLACEMENT
\usepackage[ilines]{scrlayer-scrpage}
\setfootwidth{textwithmarginpar} % found in scrpage2 docs (obsolete)