Debian Codegraph @

texmf-dist/doc/latex/einfart/demo/einfart-demo-style-default.tex

raw
1 \documentclass[a4paper, 11pt,
2 % use font = times, % garamond, newcm, lmodern, ...
3 use osf,
4 % use indent = false,
5 title in boldface,
6 % title in scshape,
7 % title in sffamily,
8 theorem in new line,
9 emphasize theorems,
10 theorem numbering = section,
11 % number theorems separately,
12 simple name, % for clever referencing
13 name in link, % for clever referencing
14 ]{einfart}
15 \usepackage{ProjLib}
16 \usepackage{blindtext}
17
18 %% \UseLanguage{French}
19
20 \numberwithin{equation}{section}
21 \SwitchTheoremNumbering{example,examples,claim}
22
23 \begin{document}
24
25 \title{Title of the article (demo of the default style)}
26 \author{Author One}
27 \address{Address of Author One}
28 \email{\href{mailto:[email protected]}{[email protected]}}
29 %% \thanks{The first author is indebted to...}
30 \author{Author Two}
31 \address{Address of Author Two}
32 \email{\href{mailto:[email protected]}{[email protected]}}
33 %% \thanks{The second author would like to thank the support of...}
34 \subjclass{XXXXX}
35 %% \keywords{AAA, BBB, CCC}
36 \date{\today[only-year-month]}
37 %% \date{\TheDate{2026-01}}
38
39 \maketitle
40
41 \begin{abstract}
42 Some abstract. \blindtext
43 \end{abstract}
44
45 \begin{keyword}
46 AAA, BBB, CCC
47 \end{keyword}
48
49 \tableofcontents
50
51 \section{Section title}
52
53 \subsection{Subsection title}
54
55 Some introductory text.
56
57 \begin{definition}[something]
58 Define something.
59 \end{definition}
60
61 \begin{theorem}[some result]\label{thm:result}\index{Theorem on some result}
62 The statement.
63 \end{theorem}
64
65 \begin{emphasis}
66 Clever reference: \cref{thm:result} (only name: \namecref{thm:result}, only number: \labelcref{thm:result}).
67 \end{emphasis}
68
69 An equation:\index{Euler's equation}
70 \begin{equation}\label{eq:Euler}
71 \mathrm{e}^{\mathrm{i}\pi} + 1 = 0.
72 \end{equation}
73
74 \begin{emphasis}
75 Reference of equation: \eqref{eq:Euler} or \cref{eq:Euler}.
76 \end{emphasis}
77
78 \SetTheorem{corollary}{shared counter = subsubsection}
79 \begin{corollary}[of \cref{thm:result}]\label{cor:result}
80 Some corollary.
81 \end{corollary}
82 \SetTheorem{corollary}{shared counter = subsection}
83 \begin{proof}
84 Some lines of proof.
85 \end{proof}
86
87 \begin{examples}
88 \begin{enumerate}
89 \item First example.
90 \item Second example.
91 \item Third example.
92 \end{enumerate}
93 \end{examples}
94
95 \begin{example*}[Important example]
96 The numbering is switched in the preamble, thus \verb|example*| is the numbered version while \verb|example| is the unnumbered version.
97 \end{example*}
98
99 \begin{proof}[Proof of \cref{thm:result}]
100 Some lines of proof.
101 \end{proof}
102
103 \blinddocument
104
105 \printindex
106
107 \end{document}