Debian Codegraph @

texmf-dist/doc/latex/simplivre/demo/simplivre-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 ]{simplivre}
15 \usepackage{ProjLib}
16 \usepackage[
17 % lang = {french},
18 type = {CC},
19 modifier = {by},
20 version = {4.0},
21 hyperxmp = false,
22 ]{doclicense}
23
24 \usepackage{blindtext}
25
26 %% \UseLanguage{French}
27
28 \numberwithin{equation}{section}
29 \SwitchTheoremNumbering{example,examples,claim}
30
31 \begin{document}
32
33 \frontmatter
34
35 \TitlePage [ style = academic ]
36 {
37 % , logo = { } % the logo image
38 , title = { \fontspec{SourceSansPro}[WordSpace={1.25,1,1}]
39 \addfontfeature{LetterSpace=2.0}
40 Title of the book\\(demo of the default style)
41 }
42 , author = { Author Name }
43 , date = { \today[only-year-month] }
44 % , date = { \TheDate{2026-01} }
45 , info = {
46 This text is... \blindtext
47 }
48 , license = { \addfontfeature{Numbers=Lining} \medskip\doclicenseThis }
49 , license page name = { Info }
50 }
51
52 \tableofcontents
53
54 \mainmatter
55
56 \mainmatter
57
58 \part{Basic examples}
59 \parttext{Some introductory text.}
60
61 \chapter{Chapter title}
62
63 \section{Section title}
64
65 \subsection{Subsection title}
66
67 Some introductory text.
68
69 \begin{definition}[something]
70 Define something.
71 \end{definition}
72
73 \begin{theorem}[some result]\label{thm:result}\index{Theorem on some result}
74 The statement.
75 \end{theorem}
76
77 \begin{emphasis}
78 Clever reference: \cref{thm:result} (only name: \namecref{thm:result}, only number: \labelcref{thm:result}).
79 \end{emphasis}
80
81 An equation:\index{Euler's equation}
82 \begin{equation}\label{eq:Euler}
83 \mathrm{e}^{\mathrm{i}\pi} + 1 = 0.
84 \end{equation}
85
86 \begin{emphasis}
87 Reference of equation: \eqref{eq:Euler} or \cref{eq:Euler}.
88 \end{emphasis}
89
90 \SetTheorem{corollary}{shared counter = subsubsection}
91 \begin{corollary}[of \cref{thm:result}]\label{cor:result}
92 Some corollary.
93 \end{corollary}
94 \SetTheorem{corollary}{shared counter = subsection}
95 \begin{proof}
96 Some lines of proof.
97 \end{proof}
98
99 \begin{examples}
100 \begin{enumerate}
101 \item First example.
102 \item Second example.
103 \item Third example.
104 \end{enumerate}
105 \end{examples}
106
107 \begin{example*}[Important example]
108 The numbering is switched in the preamble, thus \verb|example*| is the numbered version while \verb|example| is the unnumbered version.
109 \end{example*}
110
111 \begin{proof}[Proof of \cref{thm:result}]
112 Some lines of proof.
113 \end{proof}
114
115 \part{Demonstration}
116
117 \blinddocument
118
119 \backmatter
120
121 \printindex
122
123 \end{document}