-
Notifications
You must be signed in to change notification settings - Fork 1
/
preamble-basic.tex
executable file
·92 lines (79 loc) · 2.85 KB
/
preamble-basic.tex
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
\RequirePackage{pdfmanagement-testphase}
%\DeclareDocumentMetadata{testphase=tagpdf,activate=tagging}
\DeclareDocumentMetadata{testphase=tagpdf,activate=tagging,uncompress}
\documentclass[12pt]{article}
% colors
\input{colorsettings}
\usepackage[breaklinks=true,colorlinks=true,urlcolor=linklabelcolor,linkcolor=linklabelcolor,bookmarks=true]{hyperref}
% titles, sections, toc,
% geometry
\input{titlessectionstoc.tex}
% graphics
\usepackage{graphicx}
% lists
\input{listsettings.tex}
% figures
\input{figuresettings.tex}
% listings
\input{listingssettings.tex}
% tikz pgf settings
\input{tikzsettings.tex}
% tables
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{colortbl}
% fontsettings
%\input{fontsettings.tex}
%\input{fontsettings-baskf.tex}
%\input{fontsettings-caslonpro.tex}
%\input{fontsettings-erewhon.tex}
\input{fontsettings-fbb.tex}
%\input{fontsettings-fell.tex}
% misc
\input{dbnotation.tex}
\input{widths.tex}
\input{miscsettings.tex}
\usepackage{calc}
\usepackage{framed}
% figures-only display
\usepackage[floats,tightpage]{preview}
\setlength\PreviewBorder{12pt}
% macro defined by
% pandoc
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% pandoc syntax
% highlighting
\input{pandocSyntax}
\newcommand{\titletag}[1]{\tagpdfparaOff\tagstructbegin{tag=Title}\tagmcbegin{tag=Title}%
#1\tagmcend\tagstructend\tagpdfparaOn}
\makeatletter
\newcommand{\mysection}[1]{%
\@ifstar{%
\tagpdfparaOff\tagstructbegin{tag=H1}\tagmcbegin{tag=H1}%
\section*{#1}\tagmcend\tagstructend\tagpdfparaOn%
}{%
\tagpdfparaOff\tagstructbegin{tag=H1}\tagmcbegin{tag=H1}%
\section{#1}\tagmcend\tagstructend\tagpdfparaOn%
}%
}%
\makeatother
\newcommand{\mysubsection}[1]{\tagpdfparaOff\tagstructbegin{tag=H2}\tagmcbegin{tag=H2}%
\subsection{#1}\tagmcend\tagstructend\tagpdfparaOn}
\lstset{language=SQL,upquote=true}
\newcommand{\qq}{\symbol{34}} % 34 is the decimal ascii code for "
\LetLtxMacro{\OldIncludegraphics}{\includegraphics}
\renewcommand{\includegraphics}[2][]{\OldIncludegraphics[%
height=6cm,%
#1]{#2}}
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
{\setlength{\parindent}{0pt}%
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces}%
{\par}
% document
\begin{document}
\input{\jobname.tex}
\end{document}