summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/schooldocs/schooldocs-examples.tex
blob: 0c35f10b7aa8c6e09ca56ae62be4d67267829f79 (plain)
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327

\documentclass[a4paper,11pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{times,lmodern,charter}
\usepackage{schooldocs}
\usepackage{enumerate}
\usepackage{multicol}
\usepackage{centeredline}
\usepackage{hyperref}
\usepackage{lipsum}

\definecolor{darkbrown}{rgb}{0.5,0.1,0.1}

\pagestyle{collection}
\title{The schooldocs package}
\subject{Example file for titles and styles}
\author{Antoine Missier}
\institute{Royal College of Pataphysics}
\date{December 28, 2023}
\renewcommand{\titlestyle}{\Huge} %\sffamily
\hypersetup{colorlinks, linkcolor=blue}
%\setcounter{tocdepth}{0}

\begin{document}

\maketitle

On the following pages we showcase various title formatting options
and the different styles. 
This initial page has been created using the \textbf{collection} style, for which
the main title style has been redefined through
\verb|\renewcommand{\titlestyle}{\Huge}|.


\medskip
In most examples (dated may 4, 2020), we have utilized
the \textsf{lmodern} package font, which pairs well with a sans-serif title style.
To achieve this, simply redefine the title style using
\smallskip
\centeredline{\verb|\renewcommand\titelstyle{\LARGE\bfseries\sffamily}|.}

\smallskip
For examples dated january 25 or december 28, 2023, we have opted 
for the \textsf{charter}, or	\textsf{times} fonts. 
For these fonts, the default title style setting 
\verb|\LARGE\bfseries| is suitable.


\seprule

\begin{center} \Large \color{darkbrown}
\bfseries Table of contents
\end{center}

\bigskip

\begin{multicols}{2}
\begin{enumerate}[\bfseries 1.]
	\item \hyperlink{schooldocs-example-center}{\bfseries The standard title}
	\item \hyperlink{schooldocs-example-left}{\bfseries A left-aligned title}
	\item \hyperlink{schooldocs-example-right}{\bfseries A right-aligned title}
	\item \hyperlink{schooldocs-example-norule}{\bfseries
		The standard title without rule}
	\item \hyperlink{schooldocs-example-boxed}{\bfseries A title in boxed shape}
	\item \hyperlink{schooldocs-example-seprule}{\bfseries
		The \texttt{\textbackslash seprule} and \texttt{\textbackslash correct} macros}
	\item \hyperlink{schooldocs-example-small}{\bfseries A ``small'' title}
	\item \hyperlink{schooldocs-example-classic}{\bfseries The classic style layout}
	\item \hyperlink{schooldocs-example-elegant}{\bfseries The elegant style layout}
	\item \hyperlink{schooldocs-example-modern}{\bfseries The modern style layout}
	\item \hyperlink{schooldocs-example-soft}{\bfseries The soft style layout}
	\item \hyperlink{schooldocs-example-exam}{\bfseries The exam style layout}
	\item \hyperlink{schooldocs-example-examcorrect}{\bfseries
		Exam style with the \texttt{\textbackslash correct} macro}
	\item \hyperlink{schooldocs-example-collection}{\bfseries The collection style layout}
	\item \hyperlink{schooldocs-example-identity}{\bfseries 
		The identity style in collection}
	\item \hyperlink{schooldocs-example-small-identity}{\bfseries 
		A ``small'' title with identity}
	\item \hyperlink{schooldocs-example-modern-small-identity}{\bfseries 
		Small title, identity and modern style}
	\item \hyperlink{schooldocs-example-left-identity}{\bfseries 
		A left-aligned title with identity}
\end{enumerate}
\end{multicols}

\newpage
\hypertarget{schooldocs-example-center}{}
\addcontentsline{toc}{section}{The standard title}

\fontfamily{lmr}\selectfont
\pagestyle{empty}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\subjectstyle}{}
\renewcommand{\authorstyle}{}
\renewcommand{\datestyle}{}
\renewcommand{\titlestyle}{\LARGE\bfseries\sffamily}
\renewcommand\subjectstyle{\large}
\setlength{\titletopskip}{-1.32cm}
\setlength\titlesep{2\medskipamount}
\schooldocstitles
\title{The standard title}
\subject[Pathography / M2A]{Pathography / Master 2A}
\date{May 4, 2020}

\maketitle
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-left}{}
\addcontentsline{toc}{section}{A left-aligned title}

\renewcommand{\titleflush}{flushleft}
\title{A left-aligned title}
\maketitle
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-right}{}

\renewcommand{\titleflush}{flushright}
\title{A right-aligned title}
\maketitle
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-norule}{}

\renewcommand{\titleflush}{center}
\title{The standard title without rule}
\maketitle[0pt]
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-boxed}{}

\renewcommand{\titlestyle}{\LARGE\sffamily\bfseries\boxedshape}
\title{A title in boxed shape}
\maketitle
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-seprule}{}

\renewcommand{\titlestyle}{\LARGE\bfseries\sffamily}
\title{The \textbackslash seprule and \textbackslash correct macros}
\correct
\maketitle
\lipsum[1]\seprule\lipsum[2]\seprule\lipsum[3]

\newpage
\hypertarget{schooldocs-example-small}{}

\fontfamily{bch}\selectfont
\title{A ``small'' title}
\date{January 25, 2023}
\makesmalltitle
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-classic}{}

\fontfamily{lmr}\selectfont
\setcounter{page}{1}
\pagestyle{classic}
\title[The classic style]{The classic style layout}
\date{May 4, 2020}
\maketitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-9]

\newpage
\hypertarget{schooldocs-example-elegant}{}

\setcounter{page}{1}
\setcounter{section}{0}
\addtolength{\headheight}{-\baselineskip}
\pagestyle{elegant}
\title[The elegant style]{The elegant style layout}
\schooldocstitles
\maketitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-9]

\newpage
\hypertarget{schooldocs-example-modern}{}

\setcounter{page}{1}
\setcounter{section}{0}
\renewcommand{\headrulewidth}{0.4pt}
\pagestyle{modern}
\title[The modern style]{The modern style layout}
\maketitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-9]

\newpage
\hypertarget{schooldocs-example-soft}{}

\setcounter{page}{1}
\setcounter{section}{0}
\pagestyle{soft}
\title[The soft style]{The soft style layout}
\maketitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-9]

\newpage
\hypertarget{schooldocs-example-exam}{}

\setcounter{page}{1}
\setcounter{section}{0}
\fontfamily{ptm}\selectfont 
\pagestyle{exam}
\title[The exam style]{The exam style layout}
\date{December 28, 2023}
\subtitle{Duration of the test: 2\,h}
\maketitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-9]

\newpage
\hypertarget{schooldocs-example-examcorrect}{}

\setcounter{page}{1}
\setcounter{section}{0}
\correct
\maketitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-9]

\newpage
\hypertarget{schooldocs-example-collection}{}

\setcounter{page}{1}
\setcounter{section}{0}
\fontfamily{bch}\selectfont
\pagestyle{collection}
\title[The collection style]{The collection style layout}
\date{December 28, 2023}
\subtitle{Duration of the test: 2\,h}
\maketitle
\section*{Ultrices bibendum}
\lipsum
\lipsum[1-3]
\section*{Etiam facilisis}
\lipsum[1-5]

\newpage
\hypertarget{schooldocs-example-identity}{}

\thispagestyle{identity}
Here we present a single page with the \textbf{identity} style
within a document using the collection style.
\par\medskip
\textbf{Question:} Analyze the previous text and provide a written summary of its content.

\newpage
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\subjectstyle}{}
\renewcommand{\authorstyle}{}
\renewcommand{\datestyle}{}
\hypertarget{schooldocs-example-small-identity}{}

\setcounter{page}{1}
\renewcommand{\titlestyle}{\LARGE\bfseries}
\renewcommand\subjectstyle{\large}
\renewcommand{\headrulewidth}{0pt}
\setlength{\titletopskip}{-1.32cm}
\setlength\titlesep{2\medskipamount}
\title{A ``small'' title}
\date{January 25, 2023}
\thispagestyle{identity}
\schooldocstitles
\makesmalltitle
\lipsum[1]

\newpage
\hypertarget{schooldocs-example-modern-small-identity}{}

\setcounter{page}{1}
\setcounter{section}{0}
\title[The modern style]{The modern style layout}
\pagestyle{modern}
\thispagestyle{identity}
\makesmalltitle
\section*{Pellentesque a nulla}
\lipsum[1-3]
\section*{Vestibulum lectus}
\lipsum[5-6]

\newpage
\hypertarget{schooldocs-example-left-identity}{}

\setcounter{page}{1}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\titleflush}{flushleft}
\title{A left-aligned title}
\pagestyle{empty}
\thispagestyle{identity}
\schooldocstitles
\maketitle
\lipsum[1]

\setcounter{page}{2} % for the lastpage field in headers or footers
\end{document}