78 lines
2.6 KiB
INI
78 lines
2.6 KiB
INI
\usepackage{setspace, footmisc, hyperref, enumitem, fancyvrb, tikz}
|
|
\usepackage{mdframed, multicol, amsmath, bm, forest, hologo, manfnt}
|
|
\usepackage[a4paper, margin = 2.5cm]{geometry}
|
|
\usepackage[titles]{tocloft}
|
|
\usepackage[
|
|
backend = biber, style = caspervector, utf8, giveninits = true
|
|
]{biblatex}
|
|
\usetikzlibrary{calc, math, positioning}
|
|
\addbibresource{up2020.bib}
|
|
\newcommand*{\docversion}{0.1.4}
|
|
|
|
\pagestyle{plain}
|
|
\setlength{\hfuzz}{3pt}
|
|
\setlength{\cftsecnumwidth}{2em}
|
|
\setlist{nolistsep, leftmargin = 3em}
|
|
\renewcommand{\thesection}{\ifnum\value{section}<10 0\fi\arabic{section}}
|
|
\renewcommand{\footnotelayout}{\ }
|
|
\renewcommand*{\bibfont}{\small}
|
|
\appto{\bibsetup}{\setlength{\hfuzz}{6pt}}
|
|
\newcommand*{\cmc}{black!81}
|
|
\newcommand*{\cmm}{\color{\cmc}\rmfamily\itshape}
|
|
\newcommand*{\cm}[1]{\cmm{#1}}
|
|
\tikzset{x = 1pt, y = 1pt}
|
|
\newcommand*{\tikzbase}{\tikzmath{
|
|
\unity = \baselineskip; \unitx = 1.02 * \unity;
|
|
\distx = 0.9em; \disty = 0.64em;
|
|
}}
|
|
\newcommand*{\tikzproc}[3]{\node at (#1 * \unitx - \distx, -#2 * \unity)
|
|
[anchor = west] {\texttt{#3}}}
|
|
\newcommand*{\tikzcomment}[3]{\node at (#1, -#2 * \unity)
|
|
[anchor = west] {\cm{#3}}}
|
|
\newcommand*{\tikzvline}[2]{
|
|
\draw (#1 * \unitx, {-\disty - (#2 - 1) * \unity})
|
|
-- (#1 * \unitx, -#2 * \unity)
|
|
}
|
|
\newcommand*{\tikzhline}[2]{
|
|
\draw (#1 * \unitx, -#2 * \unity)
|
|
-- ({(#1 + 1) * \unitx - \distx}, -#2 * \unity)
|
|
}
|
|
|
|
\newcommand{\specialsec}[1]{%
|
|
\section*{#1}\addcontentsline{toc}{section}{#1}%
|
|
\markboth{#1}{}\phantomsection%
|
|
}
|
|
\newcommand{\newpartx}[1]{%
|
|
\addtocontents{toc}{\protect\vspace{#1\protect\baselineskip}}
|
|
\clearpage%
|
|
}
|
|
\newcommand{\newpart}{\newpartx{1}}
|
|
\newcommand*{\stress}[1]{\textbf{#1}}
|
|
\newcommand*{\cupercite}[1]{\supercite{#1}\mbox{}}
|
|
\newcommand*{\colskipc}{\vspace{-0.25\baselineskip}}
|
|
\newcommand*{\bs}{\char92}
|
|
\RecustomVerbatimEnvironment{Verbatim}{Verbatim}%
|
|
{baselinestretch = 1.2, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}}
|
|
\mdfdefinestyle{leftbar}{
|
|
rightline = false, topline = false, bottomline = false,
|
|
leftmargin = 2.45em, innerleftmargin = 0.65em,
|
|
rightmargin = 3em, innerrightmargin = 0pt,
|
|
innertopmargin = 0.36em, innerbottommargin = 0.3em,
|
|
skipabove = {0.36\baselineskip}, skipbelow = {0.1\baselineskip}
|
|
}
|
|
\newmdenv[style = leftbar]{quoting}
|
|
\newmdenv[style = leftbar, rightmargin = 0pt]{wquoting}
|
|
|
|
\makeatletter
|
|
\renewbibmacro*{eid+url+urldate}{%
|
|
\printfield{eid}\setunit*{\bbx@cecomma}%
|
|
\printfield{url}\setunit*{\bbx@cecomma}%
|
|
\iffieldundef{urlyear}{}{%
|
|
\printtext{\bbx@cetext{\bbx@cnretr}{accessed on}\addspace}%
|
|
\iffieldundef{verba}{\printurldate}%
|
|
{\href{\thefield{verba}}{\printurldate}}%
|
|
}%
|
|
}
|
|
\makeatother
|
|
|