-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
140 lines (115 loc) · 3.09 KB
/
template.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
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
\nonstopmode
%\RequirePackage{unicode-math}
%\RequirePackage{latex/agda} %xkeyval does not want to be loaded here
\documentclass[a4paper]{scrartcl}
% \usepackage{amsmath}
% \usepackage{cleveref}
% \usepackage{xspace}
% \usepackage{stmaryrd}
% \usepackage{dsfont} % mathds
% \usepackage{enumitem} %% not allowed, but would be needed for leftmargin
% \usepackage[hang,flushmargin]{footmisc}
% % https://texblog.org/2012/03/21/cross-referencing-list-items/
% \makeatletter
% \def\namedlabel#1#2{\begingroup
% #2%
% \def\@currentlabel{#2}%
% \phantomsection\label{#1}\endgroup
% }
% \makeatother
\usepackage{ifthen}
\usepackage{iftex}
\usepackage{natbib}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{cleveref}
\usepackage{textgreek}
%% Copied from agda.sty
% https://tex.stackexchange.com/questions/47576/combining-ifxetex-and-ifluatex-with-the-logical-or-operation
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\ifxetexorluatex
\usepackage{unicode-math}
% \setmainfont{XITS}
% \setmathfont{XITS Math}
%% tectonic needs filenames:
\setmainfont{XITS-Regular.otf}
\setmathfont{XITSMath-Regular.otf}
\fi
%% NO AGDA CODE
% \usepackage{latex/agda}
% \ifxetexorluatex
% \renewcommand{\AgdaFontStyle}[1]{\ensuremath{\mathsf{#1}}}
% \ifthenelse{\equal{\AgdaColourScheme}{bw}}{
% \renewcommand{\AgdaKeywordFontStyle}[1]{\underline{#1}}
% }{
% \renewcommand{\AgdaKeywordFontStyle}[1]{\ensuremath{\mathsf{#1}}}
% }
% \renewcommand{\AgdaStringFontStyle}[1]{\ensuremath{\texttt{#1}}}
% \renewcommand{\AgdaCommentFontStyle}[1]{\ensuremath{\texttt{#1}}}
% \renewcommand{\AgdaBoundFontStyle}[1]{\ensuremath{\mathit{#1}}}
% \fi
\usepackage{newunicodechar}
\newunicodechar{λ}{\ensuremath{\mathnormal\lambda}}
\newunicodechar{ε}{\ensuremath{\mathnormal\varepsilon}}
\newunicodechar{⊛}{\ensuremath{\circledast}}
\newunicodechar{→}{\ensuremath{\to}}
\ifdefined\heading
\else
\newcommand{\heading}[1]{\section{#1}}
\fi
\ifdefined\subheading
\else
\newcommand{\subheading}[1]{\subsection{#1}}
\fi
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
\ifdefined\THEOREMENVS\THEOREMENVS\fi
\ifdefined\TITLE\title{\TITLE}\fi
\ifdefined\AUTHOR
\author{\AUTHOR}
\else
\author{%
Andreas Abel
\\
Department of Computer Science,
Gothenburg University,
Sweden
}
\fi
\ifdefined\DATE\date{\DATE}\else\date{\today}\fi
\newcommand{\GENERATED}{%
This document has been generated from an
% \href{https://github.com/andreasabel/truthtable/blob/master/agda/\MAIN{}.agda}
{Agda file}
using the
\href{https://andreasabel.github.io/agda2lagda/}{\texttt{agda2lagda}}
translator and the \href{http://agda-lang.org}{\texttt{agda --latex}} backend.
}
\begin{document}
\maketitle
\ifdefined\ABSTRACT
\begin{abstract}
\ABSTRACT
\end{abstract}
\fi
\ifdefined\INTRO\INTRO\fi
\ifdefined\MAIN\input{latex/\MAIN}\fi
\ifdefined\CONCLUSION\CONCLUSION\fi
\end{document}
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: xetex
%%% End: