Debian Codegraph @

texmf-dist/doc/latex/neoschool/neoschool.tex

raw
1 \documentclass[
2 english,
3 compacttoc,
4 twocoltoc,
5 apmep,
6 vspacing=0.85,
7 faketext,
8 mainface=Zilla Slab,
9 sansface=Work Sans,
10 sansfaceoptions={BoldFont = {Work Sans SemiBold}},
11 monoface=iAWriterDuoV.ttf,
12 monofacescale=0.85,
13 abstracttitle={},
14 monofaceoptions={UprightFont={iAWriterDuoV.ttf}, UprightFeatures = { RawFeature={axis={wght=430}} }, BoldFont={iAWriterDuoV.ttf}, BoldFeatures={RawFeature={+axis={wght=700}}}},
15 mathface=Concrete Math,
16 ]{neoschool}
17
18 \title{The \texttt{neoschool} class (v1.3.9)}
19 \author{Razik Ikhlef \normalfont \textemdash{} \href{https://apps.edulatex.xyz}{https://apps.edulatex.xyz} \textemdash{} \href{mailto:[email protected]}{[email protected]}}
20 \date{May 25, 2026}
21
22 \begin{document}
23
24 \maketitle
25
26 \begin{abstract}
27 The \texttt{neoschool} class provides secondary school teachers with
28 a comprehensive toolkit for creating educational documents (tests,
29 course handouts, exercise sheets with answer keys, and more).
30 To accommodate a wide range of needs, it offers fifty-eight built-in color themes, sixteen preconfigured profiles,
31 extensive class options for layout and typography,
32 specialized environments, dedicated commands, and various
33 preformatted header styles for each type of document.
34 It bundles dozens of commonly used LaTeX packages,
35 which significantly reduces preamble clutter and helps avoid compatibility issues.
36 Multilingual support is included for English, French, and German.
37 \end{abstract}
38
39 \tableofcontents
40
41 \section{Preconfigured profiles}
42
43 The \textbf{profile}=\texttt{name} option automatically sets up a coherent group of options tailored to a specific type of document.
44 Each profile defines a theme, title layout, box styles, and visual settings suited to a particular use case.
45
46 \begin{itemize}
47 \item \textbf{academic}: well suited for lectures and course handouts.
48 Theme \texttt{royal}, title layout \texttt{band}, theorem style \texttt{block}, exercise style \texttt{bar}, admonition style \texttt{modern}, code style \texttt{plain}, boxshape \texttt{soft}.
49
50 \item \textbf{minimalist}: clean, pared-down style.
51 Theme \texttt{ink}, title layout \texttt{stream}, theorem style \texttt{plain}, exercise style \texttt{line-outline}, admonition style \texttt{classic}, code style \texttt{lines}, boxshape \texttt{sharp}.
52
53 \item \textbf{material}: inspired by Material Design.
54 Theme \texttt{azure}, title layout \texttt{notion}, theorem style \texttt{tile}, exercise style \texttt{capsule}, admonition style \texttt{material}, code style \texttt{shadow}, boxshape \texttt{rounded}.
55
56 \item \textbf{coder}: for technical and computer science documents.
57 Theme \texttt{marine}, title layout \texttt{blocks}, theorem style \texttt{bar}, exercise style \texttt{shell}, admonition style \texttt{professional}, code style \texttt{frame}, boxshape \texttt{chamfer}.
58
59 \item \textbf{memo}: for review sheets and compact summaries.
60 Theme \texttt{lagoon}, title layout \texttt{bristol}, theorem style \texttt{sticker}, exercise style \texttt{badge}, admonition style \texttt{soft}, code style \texttt{plain}, boxshape \texttt{chat}.
61
62 \item \textbf{exam}: for tests and proctored assessments.
63 No theme enforced (uses the default or whatever the user specifies), title layout \texttt{eval}, theorem style \texttt{plain}, exercise style \texttt{inline}, admonition style \texttt{classic}, code style \texttt{plain}, boxshape \texttt{sharp}. Enables \texttt{print} mode (black and white).
64
65 \item \textbf{organic}: natural look with soft shapes.
66 Theme \texttt{forest}, title layout \texttt{flow}, theorem style \texttt{curve}, exercise style \texttt{capsule}, admonition style \texttt{soft}, code style \texttt{plain}, boxshape \texttt{leaf}.
67
68 \item \textbf{origami}: geometric style with creases.
69 Theme \texttt{crimson}, title layout \texttt{geometric}, theorem style \texttt{fold}, exercise style \texttt{rule}, admonition style \texttt{classic}, code style \texttt{lines}, boxshape \texttt{bevel}.
70
71 \item \textbf{blueprint}: technical drafting style.
72 Theme \texttt{frost}, title layout \texttt{grid}, theorem style \texttt{frame}, exercise style \texttt{counter-inline}, admonition style \texttt{classic}, code style \texttt{lines}, boxshape \texttt{sharp}.
73
74 \item \textbf{swiss}: inspired by Swiss graphic design.
75 Theme \texttt{crimson}, title layout \texttt{brush}, theorem style \texttt{bar}, exercise style \texttt{capsule-outline}, admonition style \texttt{modern}, code style \texttt{lines}, boxshape \texttt{southeast}.
76
77 \item \textbf{creative}: for playful, colorful handouts.
78 Theme \texttt{neon}, title layout \texttt{memphis}, theorem style \texttt{pastel}, exercise style \texttt{badge}, admonition style \texttt{material}, code style \texttt{shadow}, boxshape \texttt{sharpish}.
79
80 \item \textbf{focus}: understated style with a side accent.
81 Theme \texttt{rhodium}, title layout \texttt{spine}, theorem style \texttt{tag}, exercise style \texttt{capsule}, admonition style \texttt{classic}, code style \texttt{frame}, boxshape \texttt{west}.
82
83 \item \textbf{elegant}: refined and stripped-back.
84 Theme \texttt{velours}, title layout \texttt{minimal}, theorem style \texttt{bar}, exercise style \texttt{line-circle}, admonition style \texttt{classic}, code style \texttt{line}, boxshape \texttt{sharp}.
85
86 \item \textbf{slate}: sober style with a side banner.
87 Theme \texttt{slate}, title layout \texttt{band}, theorem style \texttt{tile}, exercise style \texttt{bar}, admonition style \texttt{professional}, code style \texttt{lines}, boxshape \texttt{sharp}.
88
89 \item \textbf{maker}: technical style for DIY projects.
90 Theme \texttt{terra}, title layout \texttt{tech}, theorem style \texttt{sticker}, exercise style \texttt{rule}, admonition style \texttt{classic}, code style \texttt{lines}, boxshape \texttt{sharp}.
91
92 \item \textbf{zen}: calm, harmonious style.
93 Theme \texttt{moss}, title layout \texttt{wave}, theorem style \texttt{block}, exercise style \texttt{line-outline}, admonition style \texttt{soft}, code style \texttt{shadow}, boxshape \texttt{sharpish}. Enables \texttt{unicolor} mode.
94 \end{itemize}
95
96 \begin{code}{latex}
97 % Using a profile
98 \documentclass[profile=academic]{neoschool}
99
100 % Customizing a profile
101 \documentclass[profile=exam, theme=midnight]{neoschool}
102 \end{code}
103
104 \section{Loaded packages}
105
106 The following packages are automatically loaded by the \texttt{neoschool} class.
107 \begin{multicols}{4}
108 \begin{itemize}[label={}]
109 \item \texttt{adforn}
110 \item \texttt{adjustbox}
111 \item \texttt{algpseudocode}
112 \item \texttt{bookmark}
113 \item \texttt{calc}
114 \item \texttt{changepage}
115 \item \texttt{colortbl}
116 \item \texttt{cuted}
117 \item \texttt{enumitem}
118 \item \texttt{environ}
119 \item \texttt{etoolbox}
120 \item \texttt{fontawesome5}
121 \item \texttt{forest}
122 \item \texttt{iftex}
123 \item \texttt{kvoptions}
124 \item \texttt{lastpage}
125 \item \texttt{marginnote}
126 \item \texttt{mathtools}
127 \item \texttt{microtype}
128 \item \texttt{multicol}
129 \item \texttt{nccmath}
130 \item \texttt{needspace}
131 \item \texttt{pdftexcmds}
132 \item \texttt{pgffor}
133 \item \texttt{pgfplots}
134 \item \texttt{pifont}
135 \item \texttt{qrcode}
136 \item \texttt{scrlayer-scrpage}
137 \item \texttt{setspace}
138 \item \texttt{silence}
139 \item \texttt{siunitx}
140 \item \texttt{tabularray}
141 \item \texttt{tasks}
142 \item \texttt{tcolorbox}
143 \item \texttt{tikz}
144 \item \texttt{tikzpagenodes}
145 \item \texttt{tikzsymbols}
146 \item \texttt{ulem}
147 \item \texttt{wrapfig}
148 \item \texttt{xcolor}
149 \item \texttt{xhfill}
150 \item \texttt{xkeyval}
151 \item \texttt{xsim}
152 \item \texttt{xstring}
153 \end{itemize}
154 \end{multicols}
155
156 When compiling with \texttt{pdflatex}, the class loads \texttt{fontenc} (with the \texttt{T1} option), \texttt{inputenc} (with the \texttt{utf8} option), \texttt{newpxtext}, and \texttt{newpxmath}.
157 When compiling with \texttt{lualatex}, it makes \texttt{fontspec}, \texttt{luacas}, \texttt{lua-ul}, and \texttt{luacolor} available, and applies the \texttt{TeX Gyre Pagella} and \texttt{TeX Gyre Heros} fonts alongside \texttt{newpxmath}.
158
159 \subsection{Optional packages}
160
161 \begin{itemize}
162 \item \textbf{faketext}: loads \texttt{blindtext} and \texttt{lipsum} for placeholder text.
163 \item \textbf{mathastext}: loads \texttt{mathastext} to use the text font in math mode.
164 \item \textbf{nomath}: disables the mathematics bundle that is loaded by default (\texttt{annotate-equations}, \texttt{bm}, \texttt{cancel}, \texttt{esvect}, \texttt{mathrsfs}, \texttt{ncccomma}, \texttt{numprint}, \texttt{tdsfrmath}, \texttt{tkz-euclide}, \texttt{tkz-tab}, \texttt{witharrows}, and \texttt{xlop}). Use this option for documents that do not require advanced mathematical typesetting, to reduce compilation time.
165 \item \textbf{notes}/\textbf{leftnotes}/\textbf{rightnotes}: load \texttt{todonotes}.
166 \item \textbf{apmep}: loads a bundle of packages for compiling APMEP past exam papers, including \texttt{esvect}, \texttt{fourier-orns}, \texttt{numprint}, \texttt{pstricks} and its ecosystem, \texttt{tabularx}, \texttt{textcomp}, and \texttt{variations}.
167 \item \textbf{mathics}: loads \texttt{asymptote} and \texttt{latexalpha2} for computer algebra via Mathics.
168 \end{itemize}
169
170 \section{Configuration options}
171
172 \subsection{Language}
173
174 \begin{itemize}
175 \item \textbf{english}, \textbf{french}, \textbf{german}: enables the translations and conventions for each language.
176 These options affect environment labels, typographic rules, and math conventions. The \texttt{french} option also loads \texttt{frenchmath}.
177 \item \textbf{nofrenchmath}: with the \texttt{french} option, skips the loading of \texttt{frenchmath}.
178 \item \textbf{nofrenchlist}: disables the French list style (switches dashes back to bullets).
179 \item \textbf{frenchlistaspar}: treats lists as paragraphs in French.
180 \end{itemize}
181
182 \subsection{Global appearance}
183
184 \subsubsection{Built-in themes}
185
186 The \textbf{theme}=\texttt{name} option sets the document's color theme.
187 There are 58 themes available.
188
189 \begin{multicols}{4}
190 \begin{itemize}[label={}]
191 \item \texttt{amethyst}
192 \item \texttt{arctic}
193 \item \texttt{athenee}
194 \item \texttt{aurora}
195 \item \texttt{axiom} (default)
196 \item \texttt{azure}
197 \item \texttt{bordeaux}
198 \item \texttt{coffee}
199 \item \texttt{crimson}
200 \item \texttt{cyprus}
201 \item \texttt{dusk}
202 \item \texttt{eton}
203 \item \texttt{excellence}
204 \item \texttt{forest}
205 \item \texttt{frost}
206 \item \texttt{garden}
207 \item \texttt{graphite}
208 \item \texttt{harvard}
209 \item \texttt{hearth}
210 \item \texttt{heritage}
211 \item \texttt{ink}
212 \item \texttt{ivy}
213 \item \texttt{jewel}
214 \item \texttt{lagoon}
215 \item \texttt{library}
216 \item \texttt{mahogany}
217 \item \texttt{manor}
218 \item \texttt{marine}
219 \item \texttt{midnight}
220 \item \texttt{mineral}
221 \item \texttt{mist}
222 \item \texttt{moss}
223 \item \texttt{mulberry}
224 \item \texttt{neon}
225 \item \texttt{nocturne}
226 \item \texttt{oceanic}
227 \item \texttt{opera}
228 \item \texttt{orchid}
229 \item \texttt{peony}
230 \item \texttt{prestige}
231 \item \texttt{renaissance}
232 \item \texttt{retro}
233 \item \texttt{rhodium}
234 \item \texttt{royal}
235 \item \texttt{saffron}
236 \item \texttt{sage}
237 \item \texttt{sequoia}
238 \item \texttt{slate}
239 \item \texttt{studio}
240 \item \texttt{study}
241 \item \texttt{taiga}
242 \item \texttt{terra}
243 \item \texttt{trinity}
244 \item \texttt{tundra}
245 \item \texttt{velours}
246 \item \texttt{velvet}
247 \item \texttt{vivid}
248 \item \texttt{woodland}
249 \end{itemize}
250 \end{multicols}
251
252 Each theme defines four colors: a primary color (titles, sections, definitions), a secondary color (theorems), a tertiary color (exercises), and a structural color (neutral elements such as remarks and inline code).
253
254 \begin{code}{latex}
255 \documentclass[theme=oceanic]{neoschool}
256 \end{code}
257
258 \subsubsection{Color modes}
259
260 \begin{itemize}
261 \item \textbf{print}: black and white, for printing.
262 \item \textbf{unicolor}: uses the primary color for every environment.
263 \item \textbf{darktheme}: enables a dark theme with a dark background and light text.
264 \end{itemize}
265
266 \subsubsection{Color customization}
267
268 \begin{itemize}
269 \item \textbf{globalcolor}=\texttt{color}: body text color (default: \texttt{black}).
270 \item \textbf{titlecolor}=\texttt{color}: main title color.
271 \item \textbf{titlehexcolor}=\texttt{RRGGBB}: main title color in hexadecimal.
272 \item \textbf{headcolor}=\texttt{color}: \texttt{\textbackslash section} heading color.
273 \item \textbf{subcolor}=\texttt{color}: \texttt{\textbackslash subsection} heading color.
274 \item \textbf{subsubcolor}=\texttt{color}: \texttt{\textbackslash subsubsection} heading color.
275 \item \textbf{headfootcolor}=\texttt{color}: header and footer color.
276 \item \textbf{secondarymix}=\texttt{0-100}: blend percentage for the secondary color (default: 85).
277 \item \textbf{tertiarymix}=\texttt{0-100}: blend percentage for the tertiary color (default: 85).
278 \end{itemize}
279
280 \subsubsection{Box appearance}
281
282 \paragraph{Frames and backgrounds:}
283 \begin{itemize}
284 \item \textbf{thmnoframe} / \textbf{thmframe}: toggles theorem frames.
285 \item \textbf{thmnoback} / \textbf{thmback}: toggles theorem backgrounds.
286 \item \textbf{codenoframe} / \textbf{codeframe}: toggles code block frames.
287 \item \textbf{codenoback} / \textbf{codeback}: toggles code block backgrounds.
288 \item \textbf{codenonum} / \textbf{codenum}: toggles line numbering in code blocks.
289 \item \textbf{exnoback} / \textbf{exback}: toggles exercise backgrounds.
290 \item \textbf{noback} / \textbf{back}: toggles all backgrounds.
291 \item \textbf{noframe} / \textbf{frame}: toggles all frames.
292 \item \textbf{clean}: disables all frames and backgrounds.
293 \item \textbf{styled}: enables all frames and backgrounds.
294 \end{itemize}
295
296 \paragraph{Background opacity:}
297 \begin{itemize}
298 \item \textbf{boxopacity}=\texttt{n}: global background opacity (0--100, default: 8).
299 \item \textbf{thmboxopacity}=\texttt{n}: theorem background opacity (default: 8).
300 \item \textbf{exboxopacity}=\texttt{n}: exercise background opacity (default: 0).
301 \item \textbf{codeboxopacity}=\texttt{n}: code block background opacity (default: 5).
302 \item \textbf{adboxopacity}=\texttt{n}: admonition background opacity (default: 10).
303 \item \textbf{mathboxopacity}=\texttt{n}: math highlight background opacity (default: 15).
304 \end{itemize}
305
306 \paragraph{Frame opacity:}
307 \begin{itemize}
308 \item \textbf{frameopacity}=\texttt{n}: global frame opacity (0--100).
309 \item \textbf{thmframeopacity}=\texttt{n}: theorem frame opacity (default: 90).
310 \item \textbf{exframeopacity}=\texttt{n}: exercise frame opacity (default: 95).
311 \item \textbf{codeframeopacity}=\texttt{n}: code block frame opacity (default: 85).
312 \item \textbf{adframeopacity}=\texttt{n}: admonition frame opacity (default: 90).
313 \item \textbf{sideframeopacity}=\texttt{n}: sidebyside frame opacity (default: 90).
314 \end{itemize}
315
316 \paragraph{Border thickness:}
317 \begin{itemize}
318 \item \textbf{border}=\texttt{dim}: global border thickness.
319 \item \textbf{thmborder}=\texttt{dim}: theorem border thickness (default: 0.8pt).
320 \item \textbf{exborder}=\texttt{dim}: exercise border thickness (default: 0.8pt).
321 \item \textbf{codeborder}=\texttt{dim}: code block border thickness (default: 0.8pt).
322 \item \textbf{adborder}=\texttt{dim}: admonition border thickness (default: 0.8pt).
323 \end{itemize}
324
325 \paragraph{Internal padding:}
326 \begin{itemize}
327 \item \textbf{padding}=\texttt{value}: adjusts internal padding of boxes.
328 \textit{Options:} \texttt{tight}, \texttt{loose}, \texttt{normal} (default).
329 \end{itemize}
330
331 \paragraph{Corner radii:}
332 \begin{itemize}
333 \item \textbf{boxarc}=\texttt{dim}: corner radius for \texttt{neobox} and \texttt{answerframe} (default: \texttt{0pt}).
334 \item \textbf{thmboxarc}=\texttt{dim}: corner radius for theorems (default: \texttt{0pt}).
335 \item \textbf{exboxarc}=\texttt{dim}: corner radius for exercises (default: \texttt{0pt}).
336 \item \textbf{codeboxarc}=\texttt{dim}: corner radius for code blocks (default: \texttt{0pt}).
337 \item \textbf{sideboxarc}=\texttt{dim}: corner radius for \texttt{sidebyside} (default: \texttt{0pt}).
338 \item \textbf{pseudoboxarc}=\texttt{dim}: corner radius for \texttt{pseudocode} (default: \texttt{0pt}).
339 \item \textbf{sectionarc}=\texttt{dim}: corner radius for section headings (\texttt{highlighted} or \texttt{shaded} style).
340 \end{itemize}
341
342 \paragraph{Box shapes:}
343
344 The \textbf{boxshape}=\texttt{shape} option sets the overall corner shape of boxes.
345 Element-specific overrides are available: \textbf{thmboxshape}, \textbf{exboxshape}, \textbf{codeboxshape}, \textbf{adboxshape}, \textbf{neoboxshape}, \textbf{sideboxshape}.
346 Two additional options let you give the theorem title label a different shape than the main box:
347 \begin{itemize}
348 \item \textbf{thmtitleshape}=\texttt{shape}: shape of the title label (inherits from \texttt{thmboxshape} if not set, default: \texttt{rounded}).
349 \item \textbf{thmtitlearc}=\texttt{dim}: corner radius of the title label (inherits from \texttt{thmboxarc} if not set, default: \texttt{3pt}).
350 \end{itemize}
351
352 Available shapes:
353 \begin{itemize}
354 \item \texttt{rounded} (default): standard rounded corners.
355 \item \texttt{soft}: slightly rounded corners.
356 \item \texttt{sharp}: square corners.
357 \item \texttt{sharpish}: very slightly rounded corners.
358 \item \texttt{curve}: pronounced curved corners.
359 \item \texttt{bevel}: chamfered corners.
360 \item \texttt{chamfer}: angular beveled corners.
361 \item \texttt{chat}: speech-bubble style.
362 \item \texttt{leaf}: leaf-shaped rounded corners.
363 \item \texttt{northeast}, \texttt{northwest}, \texttt{southeast}, \texttt{southwest}: rounding on a single corner.
364 \item \texttt{north}, \texttt{south}, \texttt{east}, \texttt{west}: rounding on one side.
365 \item \texttt{downhill}, \texttt{uphill}: diagonally rounded corners.
366 \end{itemize}
367
368 \paragraph{Title terminators:}
369 \begin{itemize}
370 \item \textbf{thmterminator}=\texttt{text}: terminator after theorem titles (default: \texttt{.\textbackslash !}).
371 \item \textbf{thmseparator}=\texttt{text}: separator between the name and custom title.
372 \item \textbf{adterminator}=\texttt{text}: terminator for admonitions (default: \texttt{.\textbackslash !}).
373 \item \textbf{exterminator}=\texttt{text}: terminator for exercises (default: \texttt{.}).
374 \item \textbf{boxtitle}=\texttt{text}: default title for generic boxes.
375 \end{itemize}
376
377 \subsubsection{Other display options}
378
379 \begin{itemize}
380 \item \textbf{scale}: harmonizes font sizes in \texttt{lualatex}/\texttt{xelatex}.
381 \item \textbf{inlinecodebox}: renders inline code (\texttt{\textbackslash texttt}) in a framed, colored box.
382 \item \textbf{inlineadmonition} (default): admonition title and body on the same line.
383 \item \textbf{blockadmonition}: forces admonition body below the title.
384 \end{itemize}
385
386 \subsection{Typography}
387
388 \subsubsection{Fonts}
389
390 \begin{itemize}
391 \item \textbf{mainface}=\texttt{Font}: main (serif) font.
392 \item \textbf{mainfaceoptions}=\texttt{options}: options for the main font.
393 \item \textbf{mainfacescale}=\texttt{factor}: scale factor (default: 1.0).
394 \item \textbf{sansface}=\texttt{Font}: sans-serif font.
395 \item \textbf{sansfaceoptions}=\texttt{options}: options for the sans-serif font.
396 \item \textbf{sansfacescale}=\texttt{factor}: scale factor (default: 1.0).
397 \item \textbf{monoface}=\texttt{Font}: monospaced (code) font.
398 \item \textbf{monofaceoptions}=\texttt{options}: options for the monospaced font.
399 \item \textbf{monofacescale}=\texttt{factor}: scale factor (default: 1.0).
400 \item \textbf{mathface}=\texttt{Font}: math font.
401 \item \textbf{mathfaceoptions}=\texttt{options}: options for the math font.
402 \item \textbf{mathfacescale}=\texttt{factor}: scale factor for math.
403 \item \textbf{facefamily}=\texttt{Family}: full font family.
404 \item \textbf{facefamilyoptions}=\texttt{options}: options for the family.
405 \item \textbf{sfbody}: uses the sans-serif font for the body text.
406 \item \textbf{sfall}: uses the sans-serif font for the entire document.
407 \item \textbf{mathastext}: uses the text font for math.
408 \end{itemize}
409
410 \subsubsection{Heading styles}
411
412 \paragraph{Global styles:}
413 \begin{itemize}
414 \item \textbf{headstyle}=\texttt{style}: font family (default: \texttt{sffamily}).
415 \item \textbf{headweight}=\texttt{weight}: font weight (default: \texttt{bfseries}).
416 \item \textbf{headshape}=\texttt{shape}: font shape (default: \texttt{upshape}).
417 \end{itemize}
418
419 \paragraph{Main title:}
420 \begin{itemize}
421 \item \textbf{titlestyle}=\texttt{style}: inherits from \texttt{headstyle}.
422 \item \textbf{titleweight}=\texttt{weight}: inherits from \texttt{headweight}.
423 \item \textbf{titleshape}=\texttt{shape}: default \texttt{upshape}.
424 \item \textbf{titlesize}=\texttt{size}: title size (default: \texttt{hugeminus}).
425 \item \textbf{titlealign}=\texttt{align}: alignment (default: \texttt{center}).
426 \item \textbf{titledecor}=\texttt{decor}: decoration below the title (default: \texttt{none}).
427 \item[] Options: \texttt{none}, \texttt{ornament}, \texttt{rule}, \texttt{midrule}, \texttt{fullrule}.
428 \end{itemize}
429
430 \paragraph{Sections:}
431 \begin{itemize}
432 \item \textbf{sectionnumstyle}=\texttt{style}: number appearance (default: \texttt{circle}).
433 \item[] Options: \texttt{circle}, \texttt{box}, \texttt{dash}, \texttt{plain}.
434 \item \textbf{sectiontextstyle}=\texttt{style}: text case (default: \texttt{sc}).
435 \item[] Options: \texttt{sc}, \texttt{upper}, \texttt{lower}.
436 \item \textbf{sectionstyle}=\texttt{style}: visual style (default: \texttt{normal}).
437 \item[] Options: \texttt{normal}, \texttt{ornaments}, \texttt{underline}, \texttt{highlighted}, \texttt{shadedline}.
438 \item \textbf{sectionalign}=\texttt{align}: alignment (default: \texttt{center}).
439 \end{itemize}
440
441 \paragraph{Headers and footers:}
442 \begin{itemize}
443 \item \textbf{headfootstyle}=\texttt{style}: inherits from \texttt{titlestyle}.
444 \end{itemize}
445
446 \subsection{Page layout}
447
448 \subsubsection{Margins and spacing}
449
450 \begin{itemize}
451 \item \textbf{margin}=\texttt{dim}: horizontal margin width (default: \texttt{1.5cm}).
452 \item \textbf{indent}=\texttt{dim}: paragraph indentation (default: \texttt{1em}).
453 \item \textbf{noindent}: removes paragraph indentation.
454 \item \textbf{parskip}=\texttt{value}: inter-paragraph spacing (default: \texttt{half}).
455 Accepts KOMA-Script values: \texttt{false}, \texttt{true}/\texttt{full}, \texttt{half},
456 with optional suffixes \texttt{-}, \texttt{+}, \texttt{*} to control end-of-line fill.
457 Do not load the \texttt{parskip} package alongside.
458 \item \textbf{listparskip}: propagates \texttt{parskip} spacing inside lists
459 (\texttt{itemize}, \texttt{enumerate}, \texttt{description}) for typographic consistency.
460 Enabled by default. Use \textbf{nolistparskip} to keep lists compact regardless of
461 \texttt{parskip}.
462 \item \textbf{vspacing}=\texttt{factor}: vertical compression/expansion factor (default: \texttt{1.0}).
463 Accepts values between 0.25 and 2.0.
464 \end{itemize}
465
466 \subsubsection{Headers and footers}
467
468 \begin{itemize}
469 \item \textbf{fullheader}: enables full header/footer (requires \texttt{\textbackslash neoheader}).
470 \item \textbf{nofooter}: removes header and footer (\texttt{empty} page style).
471 \item \textbf{pageonlyfooter}: shows only the centered page number.
472 \item \textbf{headerules}=\texttt{style}: rules (default: \texttt{none}).
473 Options: \texttt{none}, \texttt{headrule}, \texttt{footrule}, \texttt{headfootrule}.
474 \end{itemize}
475
476 \subsubsection{Table of contents}
477
478 \begin{itemize}
479 \item \textbf{compacttoc}: reduces spacing in the table of contents.
480 \item \textbf{monotoc}: renders the table of contents using the primary color only.
481 \item \textbf{twocoltoc}: displays the table of contents in two columns.
482 \end{itemize}
483
484 \subsubsection{Output modes}
485
486 These options let you print multiple logical pages onto a single physical sheet.
487 \begin{itemize}
488 \item \textbf{2a5toa4}: 2 identical A5 pages on one landscape A4 sheet.
489 \item \textbf{2a4toa3}: 2 identical A4 pages on one landscape A3 sheet.
490 \item \textbf{4a5toa3}: 4 identical A5 pages on one A3 sheet.
491 \item \textbf{2toa3}: 2 different A4 pages on one landscape A3 sheet.
492 \item \textbf{bookleta5}: A5 booklet (A5 pages on folded A4 sheets).
493 \item \textbf{bookleta4}: A4 booklet (A4 pages on folded A3 sheets).
494 \end{itemize}
495
496 \subsection{Miscellaneous options}
497
498 \begin{itemize}
499 \item \textbf{abstracttitle}=\texttt{Title}: title for the \texttt{abstract} environment (default: \texttt{DEFAULT}).
500 \item \textbf{boldlistlabels}: renders list labels in bold.
501 \item \textbf{totalpoints}=\texttt{n}: total points for the grading scale (default: 20).
502 \end{itemize}
503
504 \section{Document styles}
505
506 \subsection{Title layout (\texttt{titlelayout})}
507
508 The \textbf{titlelayout}=\texttt{style} option controls the appearance of the first page and the title.
509
510 \subsubsection{Exam styles}
511
512 \begin{itemize}
513 \item \textbf{exam}: full layout with fields for name, class, date, and a grading strip.
514 \item \textbf{shortexam}: compact exam layout.
515 \item \textbf{mockexam}: layout designed for mock exams.
516 \end{itemize}
517
518 \subsubsection{Assessment styles}
519
520 \begin{itemize}
521 \item \textbf{eval}: standard layout, information in the corners.
522 \item \textbf{evalicons}: \texttt{eval} with customizable icons.
523 \item \textbf{evalgrade}: \texttt{eval} with a grading strip.
524 \item \textbf{evaliconsgrade}: combines \texttt{evalicons} and \texttt{evalgrade}.
525 \item \textbf{shorteval}: compact single-line layout.
526 \end{itemize}
527
528 \subsubsection{Design styles}
529
530 \begin{multicols}{4}
531 \begin{itemize}
532 \item \textbf{band}
533 \item \textbf{banner}
534 \item \textbf{bar}
535 \item \textbf{bauhaus}
536 \item \textbf{blocks}
537 \item \textbf{book}
538 \item \textbf{bristol}
539 \item \textbf{brush}
540 \item \textbf{bubbles}
541 \item \textbf{champagne}
542 \item \textbf{circles}
543 \item \textbf{cloud}
544 \item \textbf{confetti}
545 \item \textbf{flow}
546 \item \textbf{geometric}
547 \item \textbf{grid}
548 \item \textbf{magazine}
549 \item \textbf{memphis}
550 \item \textbf{notion}
551 \item \textbf{particles}
552 \item \textbf{simplenotion}
553 \item \textbf{spine}
554 \item \textbf{stream}
555 \item \textbf{tech}
556 \item \textbf{wave}
557 \end{itemize}
558 \end{multicols}
559
560 \subsubsection{Classic styles}
561
562 \begin{itemize}
563 \item \textbf{default}: centered standard title.
564 \item \textbf{titlebox}: title in a colored banner at the top of the page.
565 \item \textbf{tighttitle}: compact title without a box.
566 \item \textbf{onlytitle}: displays only the centered title.
567 \item \textbf{shorttitle}: compact centered title on a single line.
568 \item \textbf{shortlesson}: compact layout for lesson handouts.
569 \item \textbf{minimal}: stripped-down minimalist style.
570 \item \textbf{frame}: framed title.
571 \end{itemize}
572
573 \begin{code}{latex}
574 \documentclass[titlelayout=exam]{neoschool}
575 \neoheader{
576 type = Unit Test #1,
577 school = Springfield High School,
578 level = AP Calculus BC,
579 duration = 90 min,
580 calculator = exam
581 }
582 \title{Sequences and series}
583 \date{October 21, 2025}
584 \subject{Mathematics}
585 \begin{document}
586 \maketitle
587 ...
588 \end{document}
589 \end{code}
590
591 \subsection{Header configuration (\texttt{\textbackslash neoheader})}
592
593 This command configures the information used by the \texttt{exam}, \texttt{eval}, \texttt{mockexam}, \texttt{shortlesson}, and \texttt{fullheader} styles.
594
595 \begin{code}{latex}
596 \neoheader{
597 type = {Pop Quiz},
598 school = {Turing Academy},
599 academy = {District 12},
600 level = {8th Grade},
601 duration = {20 minutes},
602 calculator = {false}, % true / false / exam
603 leftcontent = {\faFlask},
604 rightcontent = {\faCalculator},
605 leftcontentfill = {true},
606 rightcontentfill = {true}
607 }
608 \end{code}
609
610 \section{Math environments}
611
612 Built on \texttt{tcolorbox}.
613
614 \subsection{Theorem styles}
615
616 The \textbf{thmstyle}=\texttt{style} option sets the look of theorem-like environments.
617 Options: \texttt{bar}, \texttt{block}, \texttt{tile}, \texttt{fold}, \texttt{plain}, \texttt{frame}, \texttt{curve}, \texttt{sticker}, \texttt{pastel}, \texttt{tag} (default), \texttt{raw}.
618
619 \subsection{Available environments}
620
621 \begin{itemize}
622 \item \textbf{theorem} (ref: \texttt{thm})
623 \item \textbf{lemma} (ref: \texttt{lem})
624 \item \textbf{corollary} (ref: \texttt{cor})
625 \item \textbf{conjecture} (ref: \texttt{conj})
626 \item \textbf{proposition} (ref: \texttt{propo})
627 \item \textbf{property} (ref: \texttt{prop})
628 \item \textbf{properties} (ref: \texttt{prop})
629 \item \textbf{definition} (ref: \texttt{def})
630 \item \textbf{definitions} (ref: \texttt{def})
631 \item \textbf{method} (ref: \texttt{meth})
632 \item \textbf{activity} (ref: \texttt{act})
633 \item \textbf{application} (ref: \texttt{appl})
634 \item \textbf{remark}, \textbf{remarks} (unnumbered)
635 \item \textbf{example}, \textbf{examples} (ref: \texttt{ex})
636 \item \textbf{proof}
637 \end{itemize}
638
639 \subsection{Environment options}
640
641 \begin{itemize}
642 \item \textbf{title}=\texttt{text}: custom title.
643 \item \textbf{label}=\texttt{name}: label for \texttt{\textbackslash ref}.
644 \item \textbf{colback}=\texttt{color}: background color.
645 \item \textbf{colframe}=\texttt{color}: frame color.
646 \item \textbf{coltitle}=\texttt{color}: title color.
647 \item \textbf{fonttitle}=\texttt{commands}: title formatting.
648 \end{itemize}
649
650 \subsection{Numbering options}
651
652 \begin{itemize}
653 \item \textbf{sectionthmcounter}: resets counters at each section.
654 \item \textbf{sharedthmcounter}: a single counter shared across all environments.
655 \item \textbf{thmgroupcounter}: shared counter for theorem, lemma, corollary, proposition, and property.
656 \item \textbf{sharedexcounter}: shares the counter between exercises and theorems.
657 \end{itemize}
658
659 \subsection{Environment examples}
660
661 \begin{sidebyside}
662 \begin{codeside}[numbers=none]{latex}
663 \begin{definition}[
664 title=Prime number,
665 label=prime
666 ]
667 A natural number is called prime
668 if it has exactly two distinct
669 divisors: 1 and itself.
670 \end{definition}
671
672 See Definition~\ref{def:prime}.
673 \end{codeside}
674 \tcblower
675 \begin{definition}[
676 title=Prime number,
677 label=prime
678 ]
679 A natural number is called prime
680 if it has exactly two distinct
681 divisors: 1 and itself.
682 \end{definition}
683 See Definition~\ref{def:prime}.
684 \end{sidebyside}
685
686 \begin{sidebyside}
687 \begin{codeside}[numbers=none]{latex}
688 \begin{theorem}[title=Pythagorean theorem]
689 In a right triangle,
690 the square of the hypotenuse equals
691 the sum of the squares of the other
692 two sides:
693 \[ c^2 = a^2 + b^2 \]
694 \end{theorem}
695 \end{codeside}
696 \tcblower
697 \begin{theorem}[title=Pythagorean theorem]
698 In a right triangle,
699 the square of the hypotenuse equals
700 the sum of the squares of the other
701 two sides:
702 \[ c^2 = a^2 + b^2 \]
703 \end{theorem}
704 \end{sidebyside}
705
706 \begin{sidebyside}
707 \begin{codeside}[numbers=none]{latex}
708 \begin{property}
709 Every differentiable function
710 is continuous.
711 \end{property}
712
713 \begin{proof}
714 This follows directly from
715 the definition of the derivative.
716 \end{proof}
717 \end{codeside}
718 \tcblower
719 \begin{property}
720 Every differentiable function is continuous.
721 \end{property}
722 \begin{minipage}{0.95\linewidth}
723 \begin{proof}
724 This follows directly from the definition of the derivative.
725 \end{proof}
726 \end{minipage}
727 \end{sidebyside}
728
729 \begin{sidebyside}
730 \begin{codeside}[numbers=none]{latex}
731 \begin{example}
732 Let $f(x) = x^2$.
733 Then $f'(x) = 2x$.
734 \end{example}
735
736 \begin{remark}
737 The converse is false:
738 $|x|$ is continuous but not
739 differentiable at $0$.
740 \end{remark}
741 \end{codeside}
742 \tcblower
743 \begin{example}
744 Let $f(x) = x^2$. Then $f'(x) = 2x$.
745 \end{example}
746 \begin{remark}
747 The converse is false: $|x|$ is continuous but not differentiable at $0$.
748 \end{remark}
749 \end{sidebyside}
750
751 \section{Exercises}
752
753 Built on the \texttt{xsim} package.
754
755 \subsection{The \texttt{exercise} and \texttt{solution} environments}
756
757 \subsubsection{Exercise options}
758
759 \begin{itemize}
760 \item \textbf{points}=\texttt{n}: point value.
761 \item \textbf{bonus-points}=\texttt{n}: bonus points.
762 \item \textbf{level}=\texttt{n}: difficulty level (1--5, shown as stars).
763 \item \textbf{subtitle}=\texttt{text}: subtitle.
764 \item \textbf{icon}=\texttt{fa-name}: FontAwesome icon (requires \texttt{exerciseicons}).
765 \item \textbf{topic}=\texttt{topic}: topic tag for sorting/filtering.
766 \item \textbf{grade}=\texttt{level}: grade level.
767 \item \textbf{subject}=\texttt{subject}: subject area.
768 \item \textbf{ID}=\texttt{id}: identifier for \texttt{\textbackslash exercisenumber\{id\}}.
769 \item \textbf{template}=\texttt{name}: display style.
770 \end{itemize}
771
772 \subsubsection{Exercise styles (\texttt{exstyle})}
773
774 The \textbf{exstyle}=\texttt{style} option sets the appearance of exercises.
775
776 \textit{Box styles:} \texttt{block}, \texttt{capsule} (default), \texttt{capsule-outline}, \texttt{tile}, \texttt{fold}, \texttt{plain}, \texttt{frame}, \texttt{curve}, \texttt{sticker}, \texttt{pastel}, \texttt{card}, \texttt{bar}.
777
778 \textit{Badge styles:} \texttt{badge}, \texttt{badge-outline}, \texttt{digit}, \texttt{digit-outline}, \texttt{digit-inline}, \texttt{digit-outline-inline}, \texttt{counter}, \texttt{counter-inline}, \texttt{counter-outline}, \texttt{counter-outline-inline}.
779
780 \textit{Line styles:} \texttt{line}, \texttt{line-outline}, \texttt{line-circle}, \texttt{line-circle-outline}.
781
782 \textit{Special styles:} \texttt{inline}, \texttt{shell}, \texttt{section}, \texttt{subsection}, \texttt{item}, \texttt{rule}, \texttt{separator}.
783
784 \subsubsection{Global options}
785
786 \begin{itemize}
787 \item \textbf{exerciseicons}: enables icon display.
788 \item \textbf{answers}: shows solutions after each exercise.
789 \item \textbf{answersonly}: shows solutions only.
790 \item \textbf{shuffle}: randomly shuffles multiple-choice answers.
791 \item \textbf{solstyle}=\texttt{style}: solution style (default: \texttt{inline}).
792 Options: \texttt{inline}, \texttt{dots}, \texttt{lines}, \texttt{box}.
793 \item \textbf{solrotate}: prints solutions upside down (180\textdegree{} rotation).
794 \end{itemize}
795
796 \subsubsection{Exercise with solution}
797
798 \begin{sidebyside}
799 \begin{codeside}[numbers=none]{latex}
800 \begin{exercise}[
801 points=4,
802 level=2,
803 subtitle={Finding a derivative}
804 ]
805 Find the derivative of
806 $f(x) = x^3 - 2x + 1$.
807 \end{exercise}
808
809 \begin{solution}
810 Applying the differentiation rules:
811 $f'(x) = 3x^2 - 2$.
812 \end{solution}
813 \end{codeside}
814 \tcblower
815 \begin{exercise}[
816 points=4,
817 level=2,
818 subtitle={Finding a derivative}
819 ]
820 Find the derivative of $f(x) = x^3 - 2x + 1$.
821 \end{exercise}
822 \xsimsetup{solution/print=true}
823 \begin{solution}
824 Applying the differentiation rules: $f'(x) = 3x^2 - 2$.
825 \end{solution}
826 \xsimsetup{solution/print=false}
827 \end{sidebyside}
828
829 \subsubsection{Multiple choice}
830
831 \begin{itemize}
832 \item \textbf{choices}\texttt{(\textit{n})}: single-answer multiple choice on \textit{n} columns.
833 \texttt{\textbackslash choice} for an answer, \texttt{\textbackslash choice[\textbackslash correct]} for the correct one.
834 \item \textbf{checkboxes}\texttt{(\textit{n})}: multiple-answer checkboxes.
835 \texttt{\textbackslash checkbox} for an answer, \texttt{\textbackslash checkbox[\textbackslash correct*]} for a correct one.
836 \end{itemize}
837
838 \begin{sidebyside}
839 \begin{codeside}[numbers=none]{latex}
840 \begin{exercise}[points=1]
841 What is the derivative of $f(x)=x^2$?
842 \begin{choices}(2)
843 \choice[\correct] $x\mapsto 2x$
844 \choice $x\mapsto x$
845 \choice $x\mapsto x^2$
846 \choice $x\mapsto 2$
847 \end{choices}
848 \end{exercise}
849 \end{codeside}
850 \tcblower
851 \begin{exercise}[points=1]
852 What is the derivative of $f(x)=x^2$?
853 \begin{choices}(2)
854 \choice[\correct] $x\mapsto 2x$
855 \choice $x\mapsto x$
856 \choice $x\mapsto x^2$
857 \choice $x\mapsto 2$
858 \end{choices}
859 \end{exercise}
860 \end{sidebyside}
861
862 \begin{sidebyside}
863 \begin{codeside}[numbers=none]{latex}
864 \begin{exercise}[points=2]
865 Check all true statements.
866 \begin{checkboxes}(1)
867 \checkbox[\correct*] $\pi > 3$
868 \checkbox $\sqrt{2}$ is rational
869 \checkbox[\correct*] $0! = 1$
870 \checkbox $\ln(1) = 1$
871 \end{checkboxes}
872 \end{exercise}
873 \end{codeside}
874 \tcblower
875 \begin{exercise}[points=2]
876 Check all true statements.
877 \begin{checkboxes}(1)
878 \checkbox[\correct*] $\pi > 3$
879 \checkbox $\sqrt{2}$ is rational
880 \checkbox[\correct*] $0! = 1$
881 \checkbox $\ln(1) = 1$
882 \end{checkboxes}
883 \end{exercise}
884 \end{sidebyside}
885
886 \section{Code listings}
887
888 Two syntax highlighting backends are available via class options:
889 \begin{itemize}
890 \item \textbf{listings} (default): syntax highlighting via the \texttt{listings} package.
891 \item \textbf{minted}: syntax highlighting via \texttt{minted} (requires Python, Pygments, and \texttt{--shell-escape}).
892 \end{itemize}
893
894 \subsection{The \texttt{code} environment}
895
896 \begin{codeside}[numbers=none]{latex}
897 \begin[options]{code}{language}[title][box-style]
898 ... code ...
899 \end{code}
900 \end{codeside}
901
902 \begin{itemize}
903 \item \texttt{options}: \texttt{listings}/\texttt{minted} options.
904 \item \texttt{language}: \texttt{python}, \texttt{latex}, \texttt{c++}, etc.
905 \item \texttt{title}: optional title.
906 \item \texttt{box-style}: box style override.
907 \end{itemize}
908
909 \begin{sidebyside}
910 \begin{codeside}[numbers=none]{latex}
911 \begin{code}{python}[Factorial function]
912 def fact(n):
913 if n <= 1:
914 return 1
915 return n * fact(n - 1)
916 \end{code}
917 \end{codeside}
918 \tcblower
919 \begin{code}[numbers=none]{python}[Factorial function]
920 def fact(n):
921 if n <= 1:
922 return 1
923 return n * fact(n - 1)
924 \end{code}
925 \end{sidebyside}
926
927 \subsection{Code box styles (\texttt{codestyle})}
928
929 The \textbf{codestyle}=\texttt{style} option sets the appearance of code boxes.
930 Options: \texttt{plain}, \texttt{line}, \texttt{lines}, \texttt{bar}, \texttt{frame}, \texttt{shadow} (default).
931
932 \subsection{Code options}
933
934 \begin{itemize}
935 \item \textbf{codewidth}=\texttt{factor}: block width (default: 1.0).
936 \item \textbf{centeredcode}: centers code blocks.
937 \end{itemize}
938
939 \subsection{Additional commands}
940
941 \begin{itemize}
942 \item \texttt{\textbackslash codeinline[\textit{lang}]\{\textit{code}\}}: inline code with syntax highlighting.
943 \item \texttt{\textbackslash codeinput[\textit{opt}]\{\textit{lang}\}\{\textit{file}\}[\textit{title}][\textit{style}]}: imports code from a file.
944 \end{itemize}
945
946 \begin{sidebyside}[righthand width=.45\linewidth]
947 \begin{codeside}[numbers=none]{latex}
948 The \codeinline[python]{range(n)} function
949 generates integers from $0$ to $n-1$.
950 \end{codeside}
951 \tcblower
952 The \codeinline[python]{range(n)} function generates integers from $0$ to $n-1$.
953 \end{sidebyside}
954
955 \subsection{The \texttt{pseudocode} environment}
956
957 Built on \texttt{algpseudocode}. When the French language option is active, keywords are automatically translated.
958
959 Special commands:
960 \begin{itemize}
961 \item \texttt{\textbackslash Gets}: assignment arrow $\leftarrow$.
962 \item \texttt{\textbackslash To}: ``to'' keyword for loops.
963 \end{itemize}
964
965 \begin{sidebyside}
966 \begin{codeside}[numbers=none]{latex}
967 \begin{pseudocode}{Binary search}
968 \Require Sorted array $T$, value $v$
969 \Ensure Index of $v$ or $-1$
970 \State $lo \Gets 0$, $hi \Gets |T| - 1$
971 \While{$lo \leq hi$}
972 \State $mid \Gets (lo + hi) / 2$
973 \If{$T[mid] = v$}
974 \State \Return $mid$
975 \ElsIf{$T[mid] < v$}
976 \State $lo \Gets mid + 1$
977 \Else
978 \State $hi \Gets mid - 1$
979 \EndIf
980 \EndWhile
981 \State \Return $-1$
982 \end{pseudocode}
983 \end{codeside}
984 \tcblower
985 \begin{pseudocode}{Binary search}
986 \Require Sorted array $T$, value $v$
987 \Ensure Index of $v$ or $-1$
988 \State $lo \Gets 0$, $hi \Gets |T| - 1$
989 \While{$lo \leq hi$}
990 \State $mid \Gets (lo + hi) / 2$
991 \If{$T[mid] = v$}
992 \State \Return $mid$
993 \ElsIf{$T[mid] < v$}
994 \State $lo \Gets mid + 1$
995 \Else
996 \State $hi \Gets mid - 1$
997 \EndIf
998 \EndWhile
999 \State \Return $-1$
1000 \end{pseudocode}
1001 \end{sidebyside}
1002
1003 \section{Admonitions}
1004
1005 Colored boxes with icons designed to draw attention to specific content.
1006
1007 \subsection{Available environments}
1008
1009 \begin{itemize}
1010 \item \textbf{note}: general remarks (\faEdit).
1011 \item \textbf{info}: supplementary information (\faInfoCircle).
1012 \item \textbf{warning}: warnings (\faExclamationTriangle).
1013 \item \textbf{important}: key points (\faExclamationCircle).
1014 \item \textbf{tip}: tips and tricks (\faLightbulb).
1015 \item \textbf{reminder}: things to remember (\faBookmark).
1016 \item \textbf{summary}: summaries (\faClipboardList).
1017 \item \textbf{toolbox}: prerequisites and materials (\faTools).
1018 \item \textbf{method}: step-by-step methods (\faCogs).
1019 \item \textbf{activity}: hands-on activities (\faPuzzlePiece).
1020 \end{itemize}
1021
1022 \subsection{Admonition styles}
1023
1024 The \textbf{adstyle}=\texttt{style} option sets the global appearance of admonitions.
1025 Options: \texttt{modern}, \texttt{material}, \texttt{soft} (default), \texttt{classic}, \texttt{professional}, \texttt{minimal}.
1026
1027 \subsection{Admonition options}
1028
1029 Each environment accepts key-value options:
1030 \begin{itemize}
1031 \item \textbf{title}=\texttt{text}: custom title.
1032 \item \textbf{subtitle}=\texttt{text}: subtitle.
1033 \item \textbf{icon}=\texttt{\textbackslash faIcon}: custom icon.
1034 \item \textbf{style}=\texttt{name}: local style (overrides the global style).
1035 \end{itemize}
1036
1037 \begin{sidebyside}
1038 \begin{codeside}[numbers=none]{latex}
1039 \begin{warning}[title=Watch out, icon=\faSkull]
1040 Don't divide by zero!
1041 \end{warning}
1042 \begin{tip}
1043 Try factoring first.
1044 \end{tip}
1045 \end{codeside}
1046 \tcblower
1047 \begin{warning}[title=Watch out, icon=\faSkull]
1048 Don't divide by zero!
1049 \end{warning}
1050 \begin{tip}
1051 Try factoring first.
1052 \end{tip}
1053 \end{sidebyside}
1054
1055 \begin{sidebyside}
1056 \begin{codeside}[numbers=none]{latex}
1057 \begin{method}[title=Solving an equation]
1058 1. Isolate the variable.
1059 2. Simplify.
1060 \end{method}
1061 \begin{activity}[subtitle=Group work]
1062 Construct an equilateral triangle.
1063 \end{activity}
1064 \end{codeside}
1065 \tcblower
1066 \begin{method}[title=Solving an equation]
1067 1. Isolate the variable.
1068 2. Simplify.
1069 \end{method}
1070 \begin{activity}[subtitle=Group work]
1071 Construct an equilateral triangle.
1072 \end{activity}
1073 \end{sidebyside}
1074
1075 \section{Content layout}
1076
1077 \subsection{Absolute positioning}
1078
1079 \texttt{\textbackslash positionobject\{\textit{x}\}\{\textit{y}\}\{\textit{scale}\}\{\textit{content}\}}: places content at coordinates (\textit{x}, \textit{y}) from the top-left corner.
1080
1081 \subsection{Two-column layout}
1082
1083 \texttt{\textbackslash splitcontent[\textit{w1}][\textit{gap}]\{\textit{col1}\}\{\textit{col2}\}}: splits the horizontal space.
1084
1085 \begin{sidebyside}
1086 \begin{codeside}[numbers=none]{latex}
1087 \splitcontent[0.4][0.05]{%
1088 \textbf{Left column (40\%)}
1089
1090 First paragraph...
1091 }{%
1092 \textbf{Right column (55\%)}
1093
1094 Second paragraph...
1095 }
1096 \end{codeside}
1097 \tcblower
1098 \splitcontent[0.4][0.05]{%
1099 \textbf{Left column (40\%)}
1100
1101 First paragraph with some text to illustrate the layout.
1102 }{%
1103 \textbf{Right column (55\%)}
1104
1105 Second paragraph with additional content.
1106 }
1107 \end{sidebyside}
1108
1109 \subsection{The \texttt{sidebyside} environment}
1110
1111 Creates two \texttt{tcolorbox} boxes side by side. \texttt{\textbackslash tcblower} separates the two halves.
1112
1113 \begin{sidebyside}
1114 \begin{codeside}[numbers=none]{latex}
1115 \begin{sidebyside}[
1116 title=Comparison,
1117 righthand width=.45\linewidth
1118 ]
1119 \textbf{Pros}
1120 \begin{itemize}
1121 \item Simple
1122 \item Fast
1123 \end{itemize}
1124 \tcblower
1125 \textbf{Cons}
1126 \begin{itemize}
1127 \item Limited
1128 \end{itemize}
1129 \end{sidebyside}
1130 \end{codeside}
1131 \tcblower
1132 \begin{sidebyside}[title=Comparison, righthand width=.45\linewidth]
1133 \textbf{Pros}
1134 \begin{itemize}
1135 \item Simple
1136 \item Fast
1137 \end{itemize}
1138 \tcblower
1139 \textbf{Cons}
1140 \begin{itemize}
1141 \item Limited
1142 \end{itemize}
1143 \end{sidebyside}
1144 \end{sidebyside}
1145
1146 \subsection{Text with image}
1147
1148 \texttt{\textbackslash textwithimage[*]\{\textit{w\_img}\}\{\textit{s\_img}\}\{\textit{text}\}\{\textit{path}\}}: combines text and an image.
1149 \texttt{*} places the image on the left.
1150
1151 \subsection{QR codes}
1152
1153 \texttt{\textbackslash withqrcode[*][\textit{size}]\{\textit{url}\}\{\textit{content}\}}: QR code alongside content.
1154 \texttt{*} places the QR code on the right.
1155
1156 \begin{sidebyside}[righthand width=.5\linewidth]
1157 \begin{codeside}[numbers=none]{latex}
1158 \withqrcode{https://example.com}{%
1159 Scan this QR code to
1160 visit the website.
1161 }
1162 \end{codeside}
1163 \tcblower
1164 \withqrcode{https://example.com}{%
1165 Scan this QR code to visit the website.
1166 }
1167 \end{sidebyside}
1168
1169 \subsection{Grids and paper styles}
1170
1171 \begin{itemize}
1172 \item \texttt{\textbackslash grid[\textit{color}]\{\textit{width}\}\{\textit{height}\}}: 5\,mm $\times$ 5\,mm grid.
1173 \item \texttt{\textbackslash customgrid[\textit{color}][\textit{dx}][\textit{dy}]\{\textit{width}\}\{\textit{height}\}}: custom grid.
1174 \item \texttt{\textbackslash frenchgrid[\textit{minor\_c}][\textit{major\_c}]\{\textit{width}\}\{\textit{height}\}}: Seyès (French ruled) grid.
1175 \item \texttt{\textbackslash gridfill} / \texttt{\textbackslash gridfill*}: fills the page with a grid.
1176 \item \texttt{\textbackslash notebook}, \texttt{\textbackslash nbminorgrid}, \texttt{\textbackslash nbmajorgrid}: page background styles.
1177 \end{itemize}
1178
1179 \begin{sidebyside}[righthand width=.5\linewidth]
1180 \begin{codeside}[numbers=none]{latex}
1181 \grid[blue!40]{4cm}{2cm}
1182 \end{codeside}
1183 \tcblower
1184 \centering
1185 \grid[blue!40]{4cm}{2cm}
1186 \end{sidebyside}
1187
1188 \begin{sidebyside}[righthand width=.5\linewidth]
1189 \begin{codeside}[numbers=none]{latex}
1190 \frenchgrid{4cm}{2cm}
1191 \end{codeside}
1192 \tcblower
1193 \centering
1194 \frenchgrid{4cm}{2cm}
1195 \end{sidebyside}
1196
1197 \subsection{Simple boxes}
1198
1199 \begin{itemize}
1200 \item \texttt{neobox}: box with a frame.
1201 \item \texttt{neobox*}: box without a visible frame.
1202 \item \texttt{\textbackslash neocolorbox[\textit{color}]\{\textit{content}\}}: simple colored box.
1203 \item \texttt{\textbackslash inlinebox[\textit{frame}][\textit{bg}][\textit{text}]\{\textit{content}\}}: customizable inline box.
1204 \end{itemize}
1205
1206 \begin{sidebyside}
1207 \begin{codeside}[numbers=none]{latex}
1208 \begin{neobox}[title=My box]
1209 Content with a frame.
1210 \end{neobox}
1211
1212 \begin{neobox*}
1213 Content without a visible frame.
1214 \end{neobox*}
1215 \end{codeside}
1216 \tcblower
1217 \begin{neobox}[title=My box]
1218 Content with a frame.
1219 \end{neobox}
1220 \begin{neobox*}
1221 Content without a visible frame.
1222 \end{neobox*}
1223 \end{sidebyside}
1224
1225 \subsection{Logos and special symbols}
1226
1227 \begin{itemize}
1228 \item \texttt{\textbackslash AILogo[\textit{options}]}: AI logo (chip with neural network).
1229 \item \texttt{\textbackslash NoAILogo[\textit{options}]}: ``No AI'' logo (crossed-out chip).
1230 \item \texttt{\textbackslash documentcolor\{\textit{color}\}}: changes the text color for the entire document.
1231 \end{itemize}
1232
1233 \begin{sidebyside}[righthand width=.4\linewidth]
1234 \begin{codeside}[numbers=none]{latex}
1235 \AILogo \quad \NoAILogo
1236 \end{codeside}
1237 \tcblower
1238 \centering
1239 \AILogo \qquad \NoAILogo
1240 \end{sidebyside}
1241
1242 \section{Grading and assessment}
1243
1244 \subsection{Grading tools}
1245
1246 \begin{itemize}
1247 \item \texttt{\textbackslash gradingstrip[\textit{total}]}: grading banner with a score field and space for comments.
1248 \item \texttt{\textbackslash mrk[*][\textit{comment}]\{\textit{pts}\}}: margin points.
1249 \end{itemize}
1250
1251 \begin{sidebyside}[righthand width=.65\linewidth]
1252 \begin{codeside}[numbers=none]{latex}
1253 \gradingstrip[20]
1254 \end{codeside}
1255 \tcblower
1256 \gradingstrip[20]
1257 \end{sidebyside}
1258
1259 \subsection{Answer areas}
1260
1261 \begin{itemize}
1262 \item \texttt{\textbackslash answerfield[\textit{width}]\{\textit{lines}\}}: answer area with a colored background.
1263 \item \texttt{\textbackslash answerframe[\textit{width}]\{\textit{lines}\}}: framed answer area.
1264 \item \texttt{\textbackslash vardots[\textit{length}]}: dotted fill line.
1265 \item \texttt{\textbackslash lines[\textit{char}][\textit{spacing}]\{\textit{n}\}}: draws \textit{n} horizontal lines.
1266 \item \texttt{\textbackslash emptybox\{\textit{width}\}\{\textit{height}\}}: blank box for free-form answers.
1267 \end{itemize}
1268
1269 \begin{sidebyside}[righthand width=.5\linewidth]
1270 \begin{codeside}[numbers=none]{latex}
1271 Answer: \answerfield[5cm]{1}
1272 \end{codeside}
1273 \tcblower
1274 Answer: \answerfield[5cm]{1}
1275 \end{sidebyside}
1276
1277 \begin{sidebyside}[righthand width=.5\linewidth]
1278 \begin{codeside}[numbers=none]{latex}
1279 Justify:
1280 \answerframe{3}
1281 \end{codeside}
1282 \tcblower
1283 Justify:
1284 \answerframe{3}
1285 \end{sidebyside}
1286
1287 \begin{sidebyside}[righthand width=.5\linewidth]
1288 \begin{codeside}[numbers=none]{latex}
1289 Name: \vardots[4cm]
1290
1291 Date: \vardots[3cm]
1292 \end{codeside}
1293 \tcblower
1294 Name: \vardots[4cm]
1295
1296 Date: \vardots[3cm]
1297 \end{sidebyside}
1298
1299 \begin{sidebyside}[righthand width=.5\linewidth]
1300 \begin{codeside}[numbers=none]{latex}
1301 \lines{3}
1302 \end{codeside}
1303 \tcblower
1304 \lines{3}
1305 \end{sidebyside}
1306
1307 \subsection{Markers and symbols}
1308
1309 \begin{multicols}{2}
1310 \begin{itemize}
1311 \item \texttt{\textbackslash cmark}: \cmark{} (green).
1312 \item \texttt{\textbackslash xmark}: \xmark{} (red).
1313 \item \texttt{\textbackslash unchecked}: $\square$.
1314 \item \texttt{\textbackslash done}: $\rlap{$\square$}{\raisebox{1pt}{\large\hspace{1pt}\cmark}\hspace{-2.5pt}}$.
1315 \item \texttt{\textbackslash wontfix}: $\rlap{$\square$}{\large\hspace{1pt}\color{red}\boldsymbol{\times}}$.
1316 \end{itemize}
1317 \end{multicols}
1318
1319 \begin{sidebyside}[righthand width=.4\linewidth]
1320 \begin{codeside}[numbers=none]{latex}
1321 \begin{itemize}
1322 \unchecked Task to do
1323 \done Task completed
1324 \wontfix Task canceled
1325 \end{itemize}
1326 \end{codeside}
1327 \tcblower
1328 \begin{itemize}
1329 \unchecked Task to do
1330 \done Task completed
1331 \wontfix Task canceled
1332 \end{itemize}
1333 \end{sidebyside}
1334
1335 \subsection{Competency-based assessment}
1336
1337 \texttt{\textbackslash competencies\{\textit{Skill1}\textbackslash\textbackslash \textit{Skill2}...\}}: assessment table with 4 proficiency levels.
1338
1339 \begin{sidebyside}[righthand width=.55\linewidth]
1340 \begin{codeside}[numbers=none]{latex}
1341 \competencies{
1342 Compute derivatives \\
1343 Solve equations \\
1344 Write proofs
1345 }
1346 \end{codeside}
1347 \tcblower
1348 \competencies{
1349 Compute derivatives \\
1350 Solve equations \\
1351 Write proofs
1352 }
1353 \end{sidebyside}
1354
1355 \section{Math commands}
1356
1357 \subsection{Highlighting}
1358
1359 \begin{itemize}
1360 \item \texttt{\textbackslash mhl[\textit{color}]\{\textit{expr}\}}: highlights the expression.
1361 \item \texttt{\textbackslash mc[\textit{color}]\{\textit{expr}\}}: colors the expression.
1362 \item \texttt{\textbackslash mathbox<\textit{bg}>[\textit{border}]\{\textit{content}\}}: frames math content.
1363 \end{itemize}
1364
1365 \begin{sidebyside}[righthand width=.35\linewidth]
1366 \begin{codeside}[numbers=none]{latex}
1367 $f(x) = \mhl[yellow!30]{x^2} + \mc[blue]{3x} - 1$
1368 \end{codeside}
1369 \tcblower
1370 $f(x) = \mhl[yellow!30]{x^2} + \mc[blue]{3x} - 1$
1371 \end{sidebyside}
1372
1373 \begin{sidebyside}[righthand width=.35\linewidth]
1374 \begin{codeside}[numbers=none]{latex}
1375 The formula $\mathbox{E = mc^2}$ is famous.
1376
1377 With colors:
1378 $\mathbox<yellow!20>[red]{a^2+b^2=c^2}$
1379 \end{codeside}
1380 \tcblower
1381 The formula $\mathbox{E = mc^2}$ is famous.
1382
1383 With colors: $\mathbox<yellow!20>[red]{a^2+b^2=c^2}$
1384 \end{sidebyside}
1385
1386 \subsection{APMEP support}
1387
1388 Commands available with the \texttt{apmep} option:
1389 \begin{itemize}
1390 \item Vectors: \texttt{\textbackslash vectt\{AB\}}.
1391 \item Coordinate frames: \texttt{\textbackslash Oij}, \texttt{\textbackslash Oijk}, \texttt{\textbackslash Ouv}.
1392 \item Symbols: \texttt{\textbackslash euro}, \texttt{\textbackslash cg}, \texttt{\textbackslash cd}, \texttt{\textbackslash pg}, \texttt{\textbackslash pp}, \texttt{\textbackslash barre\{x\}}.
1393 \end{itemize}
1394
1395 \begin{sidebyside}[righthand width=.4\linewidth]
1396 \begin{codeside}[numbers=none]{latex}
1397 The vector $\vectt{AB}$ in the frame \Oij.
1398
1399 We have $x \pg 0$ and $y \pp 5$.
1400
1401 The mean is $\barre{x} = 12$.
1402 \end{codeside}
1403 \tcblower
1404 The vector $\vectt{AB}$ in the frame \Oij.
1405
1406 We have $x \pg 0$ and $y \pp 5$.
1407
1408 The mean is $\barre{x} = 12$.
1409 \end{sidebyside}
1410
1411 \section{Special tools}
1412
1413 \subsection{Trees and graphs}
1414
1415 \begin{itemize}
1416 \item \textbf{neotree}: tree environment (built on \texttt{forest}).
1417 The \texttt{w=\textit{val}} option adds a weight label to a branch.
1418 \item \texttt{\textbackslash neograph}: graph command (\texttt{lualatex} required).
1419 \end{itemize}
1420
1421 \begin{sidebyside}[righthand width=.4\linewidth]
1422 \begin{codeside}[numbers=none]{latex}
1423 \begin{neotree}[l=2cm, s sep=1cm]
1424 A [B, w=\frac{1}{3} [D] [\overline{D}]]
1425 [C, w=\frac{2}{3} [D] [\overline{D}]]
1426 \end{neotree}
1427 \end{codeside}
1428 \tcblower
1429 \begin{center}
1430 \begin{neotree}[l=2cm, s sep=1cm]
1431 A [B, w=\frac{1}{3} [D] [\overline{D}]]
1432 [C, w=\frac{2}{3} [D] [\overline{D}]]
1433 \end{neotree}
1434 \end{center}
1435 \end{sidebyside}
1436
1437 \subsection{Math grid (\texttt{mathgrid})}
1438
1439 An environment for aligning blocks of equations in a grid.
1440 \begin{itemize}
1441 \item \texttt{\textbackslash begin\{mathgrid\}\{\textit{n}\}}: grid with \textit{n} columns.
1442 \item \texttt{\textbackslash neoline}: new row.
1443 \item \texttt{\textbackslash neocol[\textit{span}]\{\textit{content}\}}: column with \texttt{align*}.
1444 \end{itemize}
1445
1446 \begin{sidebyside}[righthand width=.5\linewidth]
1447 \begin{codeside}[numbers=none]{latex}
1448 \begin{mathgrid}{2}
1449 \neoline
1450 \neocol{
1451 A &= 2 + 3 \\
1452 A &= 5
1453 }
1454 \neocol{
1455 B &= 4 \times 2 \\
1456 B &= 8
1457 }
1458 \end{mathgrid}
1459 \end{codeside}
1460 \tcblower
1461 \begin{mathgrid}{2}
1462 \neoline
1463 \neocol{
1464 A &= 2 + 3 \\
1465 A &= 5
1466 }
1467 \neocol{
1468 B &= 4 \times 2 \\
1469 B &= 8
1470 }
1471 \end{mathgrid}
1472 \end{sidebyside}
1473
1474 \section{Margin notes}
1475
1476 Enabled via \texttt{notes=\textit{dim}}, \texttt{leftnotes=\textit{dim}}, or \texttt{rightnotes=\textit{dim}}.
1477
1478 \begin{itemize}
1479 \item \texttt{\textbackslash tdnote[\textit{options}]\{\textit{text}\}}: note in the margin.
1480 \item \texttt{\textbackslash boxnote[\textit{label}]\{\textit{text}\}} + \texttt{\textbackslash tdmark[\textit{label}]}: note anchored to a specific location.
1481 \end{itemize}
1482
1483 \begin{code}{latex}
1484 \documentclass[notes=2.5cm]{neoschool}
1485
1486 This is important\tdnote{Remember this!}.
1487
1488 \boxnote[hyp]{Key hypothesis}
1489 \begin{theorem}
1490 \tdmark[hyp] If $f$ is continuous on $[a,b]$...
1491 \end{theorem}
1492 \end{code}
1493
1494 \end{document}