forked from Night-Traders-Dev/Bramble
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.tex
More file actions
83 lines (66 loc) · 2.07 KB
/
Copy pathtemplate.tex
File metadata and controls
83 lines (66 loc) · 2.07 KB
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
\documentclass[11pt,oneside,titlepage,numbers=noenddot,chapterprefix=true]{scrreprt}
% --- Essential Pandoc Table & Layout Packages ---
\usepackage{array} % Required for table column alignment
\usepackage{calc} % Required for table width calculations (\real)
\usepackage{longtable} % Required for multi-page tables
\usepackage{booktabs} % Required for professional table lines
\usepackage{graphicx} % Required for images
\usepackage{xcolor}
\usepackage{geometry}
\geometry{letterpaper, margin=1in, bindingoffset=0.25in}
% --- Force tables to respect text width ---
\usepackage{tabularx}
\renewcommand{\arraystretch}{1.3} % More vertical space in table rows
% --- Core Typography ---
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{fontspec}
\setmainfont{TeX Gyre Pagella}
\setmonofont[Scale=0.85]{DejaVu Sans Mono}
% --- Allow line breaks in code within tables ---
\usepackage{upquote}
% --- Missing Pandoc Macros ---
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% --- Colors ---
\definecolor{primary}{HTML}{2E4053}
\definecolor{secondary}{HTML}{1A5276}
% --- KOMA-Script Styling ---
\setkomafont{chapter}{\color{primary}\sffamily\bfseries\Huge}
\setkomafont{chapterprefix}{\color{primary}\sffamily\bfseries\Large}
\setkomafont{section}{\color{secondary}\sffamily\bfseries\LARGE}
\setkomafont{subsection}{\color{secondary}\sffamily\bfseries\Large}
\RedeclareSectionCommand[
beforeskip=-1sp,
afterskip=2\baselineskip
]{chapter}
% --- Header/Footer ---
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearpairofpagestyles
\ohead{\headmark}
\ofoot{\pagemark}
\setkomafont{pageheadfoot}{\small\sffamily\color{gray}}
% --- Syntax Highlighting ---
$if(highlighting-macros)$
$highlighting-macros$
$endif$
% --- Hyperlinks ---
\usepackage[colorlinks=true, linkcolor=secondary, urlcolor=secondary]{hyperref}
\title{$title$}
\author{$author$}
\date{$date$}
\begin{document}
$if(title)$
\maketitle
$endif$
$if(toc)$
{
\hypersetup{linkcolor=black}
\tableofcontents
\newpage
}
$endif$
$body$
\end{document}