-
Notifications
You must be signed in to change notification settings - Fork 3
/
example-svjour3.tex
54 lines (39 loc) · 1.34 KB
/
example-svjour3.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
\documentclass[envcountsame,envcountsect]{svjour3}
% Remove the option hidelinks to make link boxes visible
\usepackage[hidelinks]{hyperref}
\usepackage{cleveref}
\usepackage[countsame]{coqtheorem}
% on svjour3, default is envcountsame and envcountsect
% if you do not want envcountsmae, remove it from class and add nosections as option of coqtheorem
% if you do not want envcountsect, remove it from class and remove countsame as option of coqtheorem
% Note that the double braces are mandatory
\setBaseUrl{{http://www.ps.uni-saarland.de/courses/cl-ss16/LectureNotes/html/}}
\setCoqFilename{LectureNotes.Base}
\begin{document}
\section{Section A}
% Leave the name field empty if you do not want a name
\begin{theorem}[][DM_or]
DM for or holds.
\end{theorem}
\begin{lemma}[Name]
Some lemma that is not in Coq.
\end{lemma}
\section{Section B}
\setCoqFilename{LectureNotes.Chapter1}
\begin{fact}[Boolean and is commutative][andb_com]
Commutativity for and holds.
\end{fact}
\begin{fact}~
\begin{enumerate}
\coqitem[plus_O] $x + 0 = x$
\coqitem[plus_S] $x + S y = S (x + y)$
\item Thus $x + y = y + x$ (\coqlink[plus_com]{Link})
\end{enumerate}
\end{fact}
In \cref{coq:DM_or} we say something about logical or, in
\autoref{coq:andb_com} something about boolean and.
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: