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