Debian Codegraph @

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

raw
1 \documentclass{slixte}
2
3 \title{Using the Slixte class}
4 \subtitle{a step-by-step guide}
5 \author{Beno{\^i}t Corsini}
6 \info{\url{\clsurl}}
7
8 \addsection[\faFolderOpenO]{The Slixte class}
9 \addsection[\faMapO]{Environments and commands}
10 \addsection[\faScissors]{Customizing the slides}
11 \addsection[\faCode]{Going further}
12
13 \def\clsurl{https://ctan.org/pkg/slixte}
14
15 \newcommand{\codetext}[1]{\texttt{\color{second}#1}}
16 \newcommand{\cmdt}[1]{\char`\\#1}
17 \newcommand{\cbrl}{\char`\{}
18 \newcommand{\cbrr}{\char`\}}
19 \newcommand{\cbrt}[1]{\cbrl#1\cbrr}
20 \newcommand{\cben}{Beno\cbrt{\char`\\\char`^i}t}
21 \newcommand{\codeline}[2][0]{\spacing[0.1]\hspace{-1.2cm}\codetext{\foreach\i in {0,...,#1}{~~~~}#2}\par}
22 \newcommand{\sptm}[1]{\textit{\color{third}#1}}
23
24 \newcommand{\slixte}{\href{\clsurl}{\color{first}Slixte}}
25 \newcommand{\overleaf}{\href{www.overleaf.com}{\color{first}Overleaf}}
26 \newcommand{\beamer}{\href{https://ctan.org/pkg/beamer}{\color{first}Beamer}}
27 \newcommand{\tikzref}{\href{https://en.wikipedia.org/wiki/PGF/TikZ}{\color{first}TikZ}}
28
29 \newtoggle{examples}
30 \toggletrue{examples}
31 \newtoggle{exercises}
32 \toggletrue{exercises}
33 \newtoggle{qr}
34
35 \renewcommand{\frontpage}{
36 \iftoggle{qr}
37 {\node[anchor=north east, inner sep=0cm, outer sep=0cm]
38 at (\paperwidth - 0.2cm, \paperheight - 0.2cm)
39 {\includegraphics[height=2cm]{logo.png}};}
40 {}
41 }
42
43 \begin{document}
44
45 \titlepage
46
47 \toggletrue{qr}
48
49 \toc
50
51 \section
52
53 \begin{tikzslide}[Importing the class]
54 \content{
55 To download the \slixte{} class, click on the link below or scan the QR code at the top.
56 \[\textrm{\color{first}\url{\clsurl}}\]
57
58 \spacing[1]
59
60 Once the class is downloaded, place the file \codetext{slixte.cls} in the same folder as the \codetext{.tex} file you will use for the slides (for example placing it in the main \overleaf{} project).
61
62 \spacing[1]
63
64 You are now ready to use the \slixte{} class!
65 Get started either by using the file \codetext{template.tex} provided with the class, or by replacing the first line of your own file with
66
67 \spacing
68
69 \codeline{\cmdt{documentclass}\cbrt{slixte}}
70 }
71 \end{tikzslide}
72
73 \begin{slide}[Creating your first slides]
74 By simply replacing the original class with the \slixte{} class and compiling the document, several errors likely arise.
75 \begin{itemize}
76 \fillitem There might be unrecognized commands in your main document. It might be easier to remove everything at the start.
77 \fillitem If the main document is empty, an error will arise. To alleviate this issue, simply write the command \codetext{\cmdt{titleslide}} in your main document.
78 \fillitem By default the \slixte{} class requires two image files: \codetext{background.png} and \codetext{logo.png}.
79 \begin{itemize}
80 \emptyitem You can either use your own images, or use the default ones from the package.
81 \emptyitem We will see in the section \tosection{3} how to change the default files or completely remove these images.
82 \end{itemize}
83 \end{itemize}
84 \end{slide}
85
86 \begin{slide}[Basic structure of the class]
87 The \slixte{} class creates slides, each occupying a full page.
88 It is mostly powered by the \beamer{} class and the \tikzref{} package.
89 There are several ways to create a new slide.
90 \begin{itemize}
91 \fillitem Using predefined full-page commands.
92 \begin{itemize}
93 \emptyitem Title page: \codetext{\cmdt{titleslide}}, \codetext{\cmdt{titlepage}}, or \codetext{\cmdt{maketitle}}.
94 \emptyitem Table of contents: \codetext{\cmdt{tableofcontents}} or \codetext{\cmdt{toc}}.
95 \emptyitem Final page: \codetext{\cmdt{finalslide}}, \codetext{\cmdt{finalpage}}, or \codetext{\cmdt{makefinal}} (all taking an optional argument for the text to appear, and using the color \codetext{final} for the central text).
96 \end{itemize}
97 \fillitem Using one of the two slide environments.
98 \begin{itemize}
99 \emptyitem Generic slide: \codetext{\cmdt{begin}\cbrt{slide}...\cmdt{end}\cbrt{slide}}.
100 \emptyitem Tikzslide: \codetext{\cmdt{begin}\cbrt{tikzslide}...\cmdt{end}\cbrt{tikzslide}}.
101 \end{itemize}
102 \end{itemize}
103 \end{slide}
104
105 \begin{slide}[The slide environment]
106 The \codetext{slide} environment created by calling \codetext{\cmdt{begin}\cbrt{slide}...\cmdt{end}\cbrt{slide}} creates a new slide taking one page.
107 \begin{itemize}
108 \fillitem Whatever is placed between the \codetext{\cmdt{begin}\cbrt{slide}} and \codetext{\cmdt{end}\cbrt{slide}} is standard text.
109 \fillitem It is possible to set a title to the slide (otherwise empty) by using an optional argument within square brackets: \codetext{\cmdt{begin}\cbrt{slide}[Title]...\cmdt{end}\cbrt{slide}}.
110 \end{itemize}
111
112 \iftoggle{examples}{
113
114 \spacing[1]
115
116 Try adding the following code within your main document.
117
118 \spacing
119
120 \codeline{\cmdt{begin}\cbrt{slide}[A slide]}
121 \codeline[1]{The text within the slide.}
122 \codeline{\cmdt{end}\cbrt{slide}}
123 }{}
124 \end{slide}
125
126 \begin{slide}[The tikzslide environment]
127 The \codetext{tikzslide} environment created by calling \codetext{\cmdt{begin}\cbrt{tikzslide}...\cmdt{end}\cbrt{tikzslide}} creates a new slide taking one page.
128 \begin{itemize}
129 \fillitem Whatever is placed between the \codetext{\cmdt{begin}\cbrt{tikzslide}} and \codetext{\cmdt{end}\cbrt{tikzslide}} belongs to a \codetext{tikzpicture} environment as provided by the \tikzref{} package.
130 \fillitem The position of the origin can be modified (see \tosection{3} for more details).
131 \fillitem It is possible to set a title to the slide (otherwise empty) by using an optional argument within square brackets: \codetext{\cmdt{begin}\cbrt{tikzslide}[title]...\cmdt{end}\cbrt{tikzslide}}.
132 \fillitem Using the \codetext{\cmdt{content}\cbrt{...}} command within the \codetext{tikzslide} environment places text as if it was part of a standard \codetext{slide} environment.
133 \end{itemize}
134 \end{slide}
135
136 \iftoggle{examples}{
137 \begin{slide}[The tikzslide environment (example)]
138 Try adding the following code within your main document.
139
140 \spacing
141
142 \codeline{\cmdt{begin}\cbrt{tikzslide}[A tikzslide]}
143 \codeline[1]{\cmdt{foreach} \cmdt{n} in \cbrt{1,...,9} \cbrl}
144 \codeline[2]{\cmdt{node}[draw, circle, first] at (\cmdt{n}, \cmdt{n})\cbrt{};}
145 \codeline[1]{\cbrr}
146 \codeline[1]{\cmdt{content}\cbrl}
147 \codeline[2]{Some text inside the tikzslide.}
148 \codeline[1]{\cbrr}
149 \codeline{\cmdt{end}\cbrt{tikzslide}}
150 \end{slide}
151 }{}
152
153 \section
154
155 \begin{slide}[\sectionname]
156 This section covers the following (clickable) topics.
157 \begin{itemize}
158 \fillitem \hyperlink{basic:global}{Global inputs}.
159 \fillitem \hyperlink{basic:section}{Sections}.
160 \fillitem \hyperlink{basic:list}{Basic commands and environments}.
161 \fillitem \hyperlink{basic:frames}{Framed environments}.
162 \fillitem \hyperlink{basic:refs}{References}.
163 \fillitem \hyperlink{basic:moving}{Moving around the document}.
164 \fillitem \hyperlink{basic:final}{Final useful commands}.
165 \iftoggle{exercises}{\fillitem \hyperlink{basic:exercise}{Exercises}.}{}
166 \end{itemize}
167 \end{slide}
168
169 \hypertarget{basic:global}{}
170 \begin{slide}[Global inputs]
171 The \slixte{} class contains 4 global inputs.
172 These should preferably be set in the preamble, but can also be changed within the main part of the document without creating errors.
173 \begin{itemize}
174 \fillitem The title of the slides, modified by calling \codetext{\cmdt{title}\cbrt{...}}. By default the title appears at the bottom left part of any slide (this can be changed, see \tosection{3}).
175 \fillitem The subtitle of the slides, modified by calling \codetext{\cmdt{subtitle}\cbrt{...}}. This parameter is only used for the title page of the document.
176 \fillitem The author of the slides, modified by calling \codetext{\cmdt{author}\cbrt{...}}. By default the author appears at the bottom right part of any slide (to change, see \tosection{3}).
177 \fillitem Extra info for the slides, modified by calling \codetext{\cmdt{info}\cbrt{...}}. This parameter is only used for the title page of the document.
178 \end{itemize}
179 \end{slide}
180
181 \iftoggle{examples}{
182 \begin{slide}[Global inputs (example)]
183 To re-create the title page of this document, include the following in the preamble.
184
185 \spacing
186
187 \codeline{\cmdt{title}\cbrt{Using the Slixte class}}
188 \codeline{\cmdt{subtitle}\cbrt{a step-by-step guide}}
189 \codeline{\cmdt{author}\cbrt{\cben{} Corsini}}
190 \codeline{\cmdt{info}\cbrt{\cmdt{url}\cbrt{https://ctan.org/pkg/slixte}}}
191
192 \spacing[1]
193
194 You can also check that this can be changed dynamically within the document.
195
196 \spacing
197
198 \codeline{\cmdt{titleslide}}
199 \codeline{\cmdt{author}\cbrt{Someone Else}}
200 \codeline{\cmdt{titleslide}}
201 \end{slide}
202 }{}
203
204 \hypertarget{basic:section}{}
205 \begin{slide}[Sections]
206 The \slixte{} class lets you organize the document in sections, although with a slightly different structure than usual.
207 \begin{itemize}
208 \fillitem The preamble should include all the sections of the document, created via the command \codetext{\cmdt{addsection}[symbol]\cbrt{section name}}. The \codetext{symbol} argument is optional and set to \codetext{\$\cmdt{bullet}\$} by default.
209 \fillitem Then, within the main part of the document, a new section is specified by calling the function \codetext{\cmdt{section}} without any input.
210 \begin{itemize}
211 \emptyitem The section will naturally be used in the order they were created in the preamble.
212 \emptyitem If the command \codetext{\cmdt{section}} is called more times than \codetext{\cmdt{addsection}}, no compilation error will arise but the intermediate table of contents will be empty and the section name at the bottom of the page will not be updated.
213 \end{itemize}
214 \end{itemize}
215 \end{slide}
216
217 \iftoggle{examples}{
218 \begin{slide}[Sections (example)]
219 Try adding the following code within your preamble.
220
221 \spacing
222
223 \codeline{\cmdt{addsection}\cbrt{A standard section}}
224 \codeline{\cmdt{addsection}[\$\cmdt{times}\$]\cbrt{A section symbolized by a cross}}
225
226 \spacing[1]
227
228 And add this code within your main document.
229
230 \spacing
231
232 \codeline{\cmdt{section}}
233 \codeline{\cmdt{begin}\cbrt{slide}[A standard slide]\cmdt{end}\cbrt{slide}}
234 \codeline{\cmdt{section}}
235 \codeline{\cmdt{begin}\cbrt{slide}[A slide from the cross section]\cmdt{end}\cbrt{slide}}
236 \codeline{\cmdt{section}}
237 \codeline{\cmdt{begin}\cbrt{slide}[An unclear slide]\cmdt{end}\cbrt{slide}}
238 \end{slide}
239 }{}
240
241 \hypertarget{basic:list}{}
242 \begin{slide}[Basic commands and environments]
243 The \slixte{} class contains various useful commands and environments.
244 \begin{itemize}
245 \fillitem Item commands to standardize the style within each \codetext{itemize} environment.
246 \begin{itemize}
247 \emptyitem \codetext{\cmdt{citem}[color]\cbrt{item}} which creates custom colored items.
248 \emptyitem \codetext{\cmdt{fillitem}[color]} which creates colored and filled dots; equivalent to using \codetext{\cmdt{citem}[color]\cbrt{\$\cmdt{bullet}\$}}.
249 \emptyitem \codetext{\cmdt{emptyitem}[color]} which creates colored and empty dots; equivalent to using \codetext{\cmdt{citem}[color]\cbrt{\$\cmdt{circ}\$}}.
250 \end{itemize}
251 \fillitem Other environments useful for transitions.
252 \begin{itemize}
253 \emptyitem \codetext{alert}, \codetext{remark}, \codetext{pointer}, and \codetext{question} environments, all with a single optional argument further explained on the next slide.
254 \end{itemize}
255 \end{itemize}
256 \end{slide}
257
258 \begin{slide}[Basic commands and environments]
259 \begin{alert}
260 This is the default \codetext{alert} environment.
261 The alert symbol can be modified by entering an optional argument to the environment.
262
263 This environment is the fundamental one used to create all subsequent ones.
264 \end{alert}
265
266 \spacing
267
268 \begin{remark}
269 This is the default \codetext{remark} environment.
270 The ``Note'' text can be modified by entering an optional argument to the environment.
271 \end{remark}
272
273 \spacing
274
275 \begin{pointer}
276 This is the default \codetext{pointer} environment.
277 The color of the arrow can be modified by entering an optional argument to the environment.
278 \end{pointer}
279
280 \spacing
281
282 \begin{question}
283 This is the default \codetext{question} environment.
284 The color of the text can be modified by entering an optional argument to the environment.
285 \end{question}
286 \end{slide}
287
288 \iftoggle{examples}{
289 \begin{slide}[Basic commands and environments (example)]
290 Try putting the following code within a \codetext{slide} environment.
291
292 \spacing
293
294 \codeline{\cmdt{begin}\cbrt{itemize}}
295 \codeline[1]{\cmdt{fillitem} A filled bullet.}
296 \codeline[1]{\cmdt{emptyitem}[second] An empty circle.}
297 \codeline[1]{\cmdt{citem}[third]\cbrt{3.}{} A custom item.}
298 \codeline{\cmdt{end}\cbrt{itemize}}
299 \codeline{}
300 \codeline{\cmdt{begin}\cbrt{question}A question worth asking?\cmdt{end}\cbrt{question}}
301 \codeline{\cmdt{begin}\cbrt{remark}[Answer]}
302 \codeline[1]{A remark that is actually an answer.}
303 \codeline{\cmdt{end}\cbrt{remark}}
304 \end{slide}
305 }{}
306
307 \hypertarget{basic:frames}{}
308 \begin{slide}[Framed environments]
309 As it is intended for scientific presentations, the \slixte{} class contains a few pre-implemented framed environments to highlight results.
310 \begin{itemize}
311 \fillitem The fundamental \codetext{result} environment, taking two arguments, and applied by calling \codetext{\cmdt{begin}\cbrt{result}\cbrt{...}\cbrt{...}...\cmdt{end}\cbrt{result}}.
312 \begin{itemize}
313 \emptyitem The first parameter is the desired name of the type of result.
314 \emptyitem The second parameter is the information on the result; when not empty, it will appear between brackets.
315 \end{itemize}
316 \fillitem The \codetext{theorem}, \codetext{definition}, and \codetext{problem} environments.
317 \begin{itemize}
318 \emptyitem All three are based on the \codetext{result} environment.
319 \emptyitem They take one optional argument corresponding to the info of the result.
320 \end{itemize}
321 \end{itemize}
322 \end{slide}
323
324 \begin{slide}[Framed environments]
325 \begin{definition}
326 This is a generic definition, without any optional parameter specified.
327 \end{definition}
328
329 \spacing[1]
330
331 \begin{definition}[More specific]
332 This is a more specific definition, with extra information specified.
333 \end{definition}
334 \end{slide}
335
336 \iftoggle{examples}{
337 \begin{slide}[Framed environments (example)]
338 Try putting the following code within a \codetext{slide} environment.
339
340 \spacing
341
342 \codeline{\cmdt{begin}\cbrt{result}\cbrt{Quotation}\cbrt{}}
343 \codeline[1]{``You can create your own result box.''\ - \cben}
344 \codeline{\cmdt{end}\cbrt{result}}
345 \codeline{}
346 \codeline{\cmdt{begin}\cbrt{result}\cbrt{Quotation}\cbrt{\cben, Now}}
347 \codeline[1]{You can create your own result box.}
348 \codeline{\cmdt{end}\cbrt{result}}
349 \end{slide}
350
351 \begin{slide}[Framed environments (example)]
352 Try putting the following code within a \codetext{slide} environment.
353
354 \spacing
355
356 \codeline{\cmdt{begin}\cbrt{definition}}
357 \codeline[1]{A general definition that everyone should know.}
358 \codeline{\cmdt{end}\cbrt{definition}}
359 \codeline{}
360 \codeline{\cmdt{begin}\cbrt{definition}[Math]}
361 \codeline[1]{A math definition that some people should know.}
362 \codeline{\cmdt{end}\cbrt{definition}}
363 \end{slide}
364 }{}
365
366 \hypertarget{basic:refs}{}
367 \begin{slide}[References]
368 On top of framed results, the \slixte{} class supports references.
369 \begin{itemize}
370 \fillitem A new reference is created by calling the \codetext{\cmdt{addref}} command, which takes five arguments.
371 \begin{itemize}
372 \emptyitem While it is not mandatory to follow this order, the arguments are intended to be: the name of the reference, the author(s), the year, the title, and the journal.
373 \emptyitem The name of the reference, corresponding to the first input of the \codetext{\cmdt{addref}} command, will appear as a superscript within the document.
374 \end{itemize}
375 \fillitem The references created can then be called anywhere in the document by using the \codetext{\cmdt{citeref}\cbrt{refname}} command.
376 \fillitem The reference page can be shown anywhere in the document using the \codetext{\cmdt{refslide}}, \codetext{\cmdt{refpage}}, or \codetext{\cmdt{makeref}} command.
377 All three commands take an optional input as the title of the reference slide.
378 \end{itemize}
379 \end{slide}
380
381 \iftoggle{examples}{
382 \begin{slide}[References (example)]
383 Try adding the following code within your preamble.
384
385 \spacing
386
387 \codeline{\cmdt{addref}\cbrt{Y}\cbrt{You}\cbrt{yesterday}\cbrt{Math?}\cbrt{online}}
388 \codeline{\cmdt{addref}\cbrt{Me}\cbrt{Me}\cbrt{today}\cbrt{Math!}\cbrt{in-class}}
389
390 \spacing[1]
391
392 And add this code within your main document.
393
394 \spacing
395
396 \codeline{\cmdt{begin}\cbrt{slide}}
397 \codeline[1]{You said something yesterday\cmdt{citeref}\cbrt{Y},}
398 \codeline[1]{and I only replied now\cmdt{citeref}\cbrt{Me}.}
399 \codeline{\cmdt{end}\cbrt{slide}}
400 \codeline{\cmdt{refslide}}
401 \end{slide}
402 }{}
403
404 \hypertarget{basic:moving}{}
405 \begin{slide}[Moving around the document]
406 To simplify the use of the resulting file, both when writing and presenting the slides, the \slixte{} class includes a few automated links.
407 \begin{itemize}
408 \fillitem Clicking on the title (by default at the bottom left) brings you back to the title page.
409 \fillitem Clicking on the author (by default at the bottom right) brings you to the final page.
410 \fillitem Clicking on the section name (by default at the bottom and in the middle) brings you to the beginning of the section. This also applies to any section from the table of contents.
411 \fillitem Clicking on a reference (from the document) brings you to the reference page.
412 \fillitem Clicking on a reference (from the reference page) brings you to the first page where this reference is used.
413 \end{itemize}
414
415 \spacing[1]
416
417 \begin{remark}
418 When the clicking target does not exist, you are brought to the first page.
419 \end{remark}
420 \end{slide}
421
422 \hypertarget{basic:final}{}
423 \begin{slide}[Final useful commands]
424 On top of the previous fundamental commands and environments, and before moving to more advanced methods, the \slixte{} class also implements various useful commands.
425 \begin{itemize}
426 \fillitem \codetext{\cmdt{spacing}[length]} which creates vertical space (in cm, by default \codetext{0.5}).
427 \fillitem \codetext{\cmdt{tosection}\cbrt{}} which creates direct links to sections (colored using \codetext{tosection}).
428 \fillitem \codetext{\cmdt{break}}, equivalent to the \codetext{\cmdt{pause}} command for \beamer{}.
429 \fillitem \codetext{\cmdt{showon}[window]\cbrt{...}}, equivalent to \codetext{\cmdt{onslide}<window>\cbrt{...}} for \beamer{}.
430 \fillitem \codetext{\cmdt{makeon}[window]\cbrt{...}}, equivalent to \codetext{\cmdt{only}<window>\cbrt{...}} for \beamer{}.
431 \fillitem \codetext{\cmdt{spliton}} and \codetext{\cmdt{splitoff}}, which switches on/off the previous three commands (useful for removing slide splits when creating the slides).
432 \end{itemize}
433 \end{slide}
434
435 \iftoggle{examples}{
436 \begin{slide}[Final useful commands (example)]
437 Try putting the following code within a \codetext{slide} in various sections.
438
439 \spacing
440
441 \codeline{You can directly go to \cmdt{tosection}\cbrt{1}{} or \cmdt{tosection}\cbrt{2}.}
442 \codeline{}
443 \codeline{\cmdt{spacing}}
444 \codeline{}
445 \codeline{You can also try to go to \cmdt{tosection}\cbrt{0}{} or \cmdt{tosection}\cbrt{10}.}
446 \codeline{}
447 \codeline{\cmdt{spacing}[2]}
448 \codeline{}
449 \codeline{Finally, we can also go to \cmdt{tosection}\cbrt{}.}
450 \end{slide}
451
452 \begin{slide}[Final useful commands (example)]
453 Try putting the following code within a \codetext{slide} environment.
454
455 \spacing
456
457 \codeline{A text on every slide.}
458 \codeline{\cmdt{break}}
459 \codeline{Some text appearing on the second slide.}
460 \codeline{}
461 \codeline{\cmdt{showon}[3]\cbrt{A line only shown on the third slide.}}
462 \codeline{}
463 \codeline{\cmdt{makeon}[4]\cbrt{A line only made on the fourth slide.}}
464 \codeline{}
465 \codeline{A final line differentiating show and make.}
466 \end{slide}
467 }{}
468
469 \iftoggle{exercises}{
470 \hypertarget{basic:exercise}{}
471 \begin{slide}[Exercise: create the following slide (1/3)]
472 In this exercise, we are trying to create:
473 \begin{itemize}\break
474 \fillitem A list of items.\break
475 \fillitem With subtasks, such as:\break
476 \begin{itemize}
477 \emptyitem having different types of items;
478 \emptyitem[second] with different colors.
479 \end{itemize}
480 \end{itemize}\break
481
482 \spacing
483
484 \begin{result}{Observation}{}
485 If you can replicate everything on this slide, proceed to the next one.
486 \spacing[1]
487 \end{result}
488 \end{slide}
489
490 \addref{1}{Slixte}{2000}{Back in the day}{CTAN}
491 \addref{?}{Slixte}{Now}{Question}{CTAN}
492 \addref{here}{Slixte}{2025}{Reference page}{CTAN}
493 \addref{4}{Slixte}{2030}{But also the future}{CTAN}
494
495 \begin{slide}[Exercise: create the following slide (2/3)]
496 \showon[1,3-]{\begin{problem}[Me, Now]
497 Can you still create what is in this slide?\citeref{?}
498 \end{problem}}
499
500 \makeon[2,4]{\spacing
501 \begin{pointer}[third]
502 The solution should be visible\citeref{here}.
503 \end{pointer}}
504
505 \showon[3-]{\spacing[2]
506 \begin{remark}[Where to]
507 You can also go to the beginning of the current section,
508 also called \tosection{}.
509 \end{remark}}
510 \end{slide}
511
512 \refslide[Exercise: create the following slide (3/3)]
513
514 \setfontsizecontent{0.4cm}
515
516 \begin{slide}[Solution (1/3)]
517 \codeline[1]{\cmdt{begin}\cbrt{slide}[Exercise:\ create the following slide (1/3)]}
518 \codeline[2]{In this exercise, we are trying to create:}
519 \codeline[2]{\cmdt{begin}\cbrt{itemize}\cmdt{break}}
520 \codeline[3]{\cmdt{fillitem} A list of items.\cmdt{break}}
521 \codeline[3]{\cmdt{fillitem} With suptasks, such as:\cmdt{break}}
522 \codeline[3]{\cmdt{begin}\cbrt{itemize}}
523 \codeline[4]{\cmdt{emptyitem} having different types of items;}
524 \codeline[4]{\cmdt{emptyitem}[second] with different colors.}
525 \codeline[3]{\cmdt{end}\cbrt{itemize}}
526 \codeline[2]{\cmdt{end}\cbrt{itemize}\cmdt{break}}
527 \codeline{}
528 \codeline[2]{\cmdt{spacing}}
529 \codeline{}
530 \codeline[2]{\cmdt{begin}\cbrt{result}\cbrt{Observation}\cbrt{}}
531 \codeline[3]{If you can replicate everything on this slide,}
532 \codeline[3]{proceed to the next one.}
533 \codeline[3]{\cmdt{spacing}[1]}
534 \codeline[2]{\cmdt{end}\cbrt{result}}
535 \codeline[1]{\cmdt{end}\cbrt{slide}}
536 \end{slide}
537
538 \begin{slide}[Solution (2/3)]
539 \codeline[1]{\cmdt{addref}\cbrt{1}\cbrt{Slixte}\cbrt{2000}\cbrt{Back in the day}\cbrt{CTAN}}
540 \codeline[1]{\cmdt{addref}\cbrt{?}\cbrt{Slixte}\cbrt{Now}\cbrt{Question}\cbrt{CTAN}}
541 \codeline[1]{\cmdt{addref}\cbrt{here}\cbrt{Slixte}\cbrt{2025}\cbrt{Reference page}\cbrt{CTAN}}
542 \codeline[1]{\cmdt{addref}\cbrt{4}\cbrt{Slixte}\cbrt{2030}\cbrt{But also the future}\cbrt{CTAN}}
543 \codeline{}
544 \codeline[1]{\cmdt{begin}\cbrt{slide}[Exercise:\ create the following slide (2/3)]}
545 \codeline[2]{\cmdt{showon}[1,3-]\cbrl}
546 \codeline[3]{\cmdt{begin}\cbrt{problem}[Me, Now]}
547 \codeline[4]{Can you still create what is in this slide?\cmdt{citeref}\cbrt{?}}
548 \codeline[3]{\cmdt{end}\cbrt{problem}\cbrr}
549 \codeline[2]{\cmdt{makeon}[2,4]\cbrl}
550 \codeline[3]{\cmdt{spacing}}
551 \codeline[3]{\cmdt{begin}\cbrt{pointer}[third]}
552 \codeline[4]{The solution should be visible\cmdt{citeref}\cbrt{here}.}
553 \codeline[3]{\cmdt{end}\cbrt{pointer}\cbrr}
554 \codeline[2]{\cmdt{showon}[3-]\cbrl}
555 \codeline[3]{\cmdt{spacing}[2]}
556 \codeline[3]{\cmdt{begin}\cbrt{remark}[Where to]}
557 \codeline[4]{You can also go to the beginning of the current section,}
558 \codeline[4]{also called \cmdt{tosection}\cbrt{}.}
559 \codeline[3]{\cmdt{end}\cbrt{remark}\cbrr}
560 \codeline[1]{\cmdt{end}\cbrt{slide}}
561 \end{slide}
562
563 \begin{slide}[Solution (3/3)]
564 \codeline[1]{\cmdt{refslide}[Exercise:\ create the following slide (3/3)]}
565 \end{slide}
566 \setfontsizecontent{0.9cm}
567 }{}
568
569 \section
570
571 \begin{slide}[\sectionname]
572 This section covers the following (clickable) topics.
573 \begin{itemize}
574 \fillitem \hyperlink{custom:attrs}{Attributes of the class}.
575 \fillitem \hyperlink{custom:design}{Changing the design}.
576 \fillitem \hyperlink{custom:structure}{Customization structure of the class}.
577 \fillitem \hyperlink{custom:titlepage}{Changing the title page}.
578 \fillitem \hyperlink{custom:banner}{Changing the banners}.
579 \fillitem \hyperlink{custom:toc}{Changing the table of contents}.
580 \fillitem \hyperlink{custom:content}{Changing the content of the slides}.
581 \iftoggle{examples}{\fillitem \hyperlink{custom:template}{Possible template}.}{}
582 \fillitem \hyperlink{custom:summary}{Summary of elements and attributes}.
583 \end{itemize}
584 \end{slide}
585
586 \hypertarget{custom:attrs}{}
587 \begin{slide}[Attributes of the class]
588 The \slixte{} class has several optional attributes.
589 \begin{itemize}
590 \fillitem By default, the page is 20cm high, but can be 10cm with \codetext{short} or 100cm with \codetext{tall}.
591 \fillitem The page ratio can be 1/1 with \codetext{square}, 3/2 with \codetext{photo}, 4/3 with \codetext{standard}, or 16/9 with \codetext{widescreen} (default).
592 \fillitem By default, the origin is at the bottom left of the page, but can be centered with \codetext{center}, or the top left of the page (with y going down) with \codetext{upper}.
593 \fillitem It is possible to cover pages with a grid to simplify the placement of items using \codetext{grid}.
594 \fillitem It is possible to show some of the boxes of the nodes on the page by using \codetext{info}.
595 \end{itemize}
596 \end{slide}
597
598 \iftoggle{examples}{
599 \begin{slide}[Attributes of the class (example)]
600 Try the following code along with some of the other parameters.
601
602 \spacing
603
604 \codeline{\cmdt{documentclass}[short,upper,grid,info]\cbrt{slixte}}
605 \codeline{}
606 \codeline{\cmdt{begin}\cbrt{document}}
607 \codeline[1]{\cmdt{begin}\cbrt{tikzslide}}
608 \codeline[2]{\cmdt{foreach} \cmdt{n} in \cbrt{1,...,9} \cbrl}
609 \codeline[3]{\cmdt{node}[draw, circle, first] at (\cmdt{n}, \cmdt{n})\cbrt{};}
610 \codeline[2]{\cbrr}
611 \codeline[1]{\cmdt{end}\cbrt{tikzslide}}
612 \codeline{\cmdt{end}\cbrt{document}}
613 \end{slide}
614 }{}
615
616 \begin{slide}[Changing the design]
617 The two images used for the slides (\codetext{background} and \codetext{logo}) can be customized as follows
618 \begin{itemize}
619 \fillitem Use the commands \codetext{\cmdt{background}\cbrt{...}} and \codetext{\cmdt{logo}\cbrt{...}} to change the files.
620 \fillitem Use the commands \codetext{\cmdt{showbackground}}, \codetext{\cmdt{hidebackground}}, \codetext{\cmdt{showlogo}}, and \codetext{\cmdt{hidelogo}} to either show or hide the background and logo.
621 \end{itemize}
622
623 \spacing
624
625 It is also possible to customize the color scheme.
626 \begin{itemize}
627 \fillitem There are five default colors used for the slides: \codetext{text} (black), \codetext{page} (white), \codetext{first} (green), \codetext{second} (purple), and \codetext{third} (red).
628 \fillitem These colors can directly be changed using \codetext{\cmdt{definecolor}} or \codetext{\cmdt{colorlet}}.
629 \fillitem Other color parameters will automatically be used when defined: \codetext{titlepage}, \codetext{author}, \codetext{slideheader}, \codetext{section}, \codetext{ref}, etc. A complete summary of these parameters can be found at the \hyperlink{custom:summary}{\color{first}end of the section}.
630 \end{itemize}
631 \end{slide}
632
633 \hypertarget{custom:design}{}
634 \begin{slide}[Changing the design]
635 On top of the files and whether they appear or not, the \codetext{background} and \codetext{logo} can also be moved around.
636 We focus here on the \codetext{background} parameters, but all the commands below can also be applied to the \codetext{logo}.
637 \begin{itemize}
638 \fillitem \codetext{\cmdt{backgroundx}} and \codetext{\cmdt{backgroundy}}: the position on the page of the \codetext{background}.
639 \fillitem \codetext{\cmdt{backgroundwidth}} and \codetext{\cmdt{backgroundheight}}: the size of the \codetext{background}.
640 \fillitem \codetext{\cmdt{backgroundanchor}}: the \tikzref{} anchor of the background.
641 \end{itemize}
642
643 \spacing[1]
644
645 \begin{remark}
646 By default, only \codetext{\cmdt{backgroundanchor}} is defined and set to \codetext{center}.
647 The other four parameters are automatically adapted to fit the structure of the slides (\codetext{short}, \codetext{tall}, \codetext{upper}, etc).
648
649 The other four parameters can be defined using \codetext{\cmdt{newlength}} or directly with \codetext{\cmdt{def}}.
650 \end{remark}
651 \end{slide}
652
653 \iftoggle{examples}{
654 \begin{slide}[Changing the design (example)]
655 Try the following code in your document.
656
657 \spacing
658
659 \codeline{\cmdt{logo}\cbrt{background.png}}
660 \codeline{\cmdt{definecolor}\cbrt{titlepage}\cbrt{RGB}\cbrt{0, 100, 255}}
661 \codeline{\cmdt{colorlet}\cbrt{author}\cbrt{first}}
662 \codeline{\cmdt{titleslide}}
663 \codeline{\cmdt{hidelogo}}
664 \codeline{\cmdt{def}\cmdt{backgroundanchor}\cbrt{south west}}
665 \codeline{\cmdt{def}\cmdt{backgroundwidth}\cbrt{2cm}}
666 \codeline{\cmdt{def}\cmdt{backgroundheight}\cbrt{0.5\cmdt{paperheight}}}
667 \codeline{\cmdt{titleslide}}
668 \end{slide}
669 }{}
670
671 \hypertarget{custom:structure}{}
672 \begin{slide}[General structure of the class]
673 The \slixte{} class employs a few structural principles for its objects and commands.
674 \begin{itemize}
675 \fillitem Each \sptm{element} of the class has a given name (\codetext{background}, \codetext{logo}, etc).
676 \fillitem A lot of them have an \sptm{innate} command (\codetext{\cmdt{background}\cbrt{...}}, \codetext{\cmdt{title}\cbrt{...}}, etc).
677 \fillitem Each of them has a set of \sptm{attributes}. These can be \sptm{pre-} or \sptm{post-attributes}.
678 \begin{itemize}
679 \emptyitem \sptm{pre-attributes} are predefined commands (\codetext{\cmdt{show}}, \codetext{\cmdt{hide}}, etc).
680 \emptyitem \sptm{post-attributes} are parameters to customize (\codetext{x}, \codetext{width}, etc).
681 \end{itemize}
682 \fillitem They may also have \sptm{relative attributes} (or \sptm{relatives}), such as colors, booleans, counters, etc. These usually share the same name as the \sptm{element}.
683 \end{itemize}
684
685 \spacing
686
687 \begin{pointer}
688 For example, the \sptm{element} \codetext{background} has an \sptm{innate} command (changing the background file), two \sptm{pre-attributes} (\codetext{\cmdt{show}} and \codetext{\cmdt{hide}}), five \sptm{post-attributes} (\codetext{x}, \codetext{y}, \codetext{width}, \codetext{height}, and \codetext{anchor}), and a boolean \sptm{relative} (used to show or hide the background).
689 \end{pointer}
690 \end{slide}
691
692 \hypertarget{custom:titlepage}{}
693 \begin{slide}[Changing the title page]
694 One \sptm{element} of the class is \codetext{titlepage}, with the following \sptm{attributes}.
695 \begin{itemize}
696 \fillitem One \sptm{innate} command with no input, creating the title page (see \tosection{2}).
697 \fillitem One \sptm{pre-attribute}, \codetext{\cmdt{make}}, an alias for \codetext{\cmdt{titlepage}} and \codetext{\cmdt{titleslide}}.
698 \fillitem One \sptm{post-attribute}, \codetext{opacity}, corresponding to the opacity of the overlay on the image from \codetext{background}.
699 \fillitem One \sptm{relative}, corresponding to the color of the overlay on the image from \codetext{background}; this is the same as \codetext{text} by default.
700 \begin{itemize}
701 \emptyitem On top of the \codetext{titlepage} color, there is a second \sptm{relative} color called \codetext{titlepagetext}, equal to \codetext{page} by default.
702 \end{itemize}
703 \end{itemize}
704 \end{slide}
705
706 \begin{slide}[Changing the title page]
707 On top of \codetext{titlepage}, \codetext{background}, and \codetext{logo}, the title page is composed of four other \sptm{elements}: \codetext{title}, \codetext{subtitle}, \codetext{author}, and \codetext{info}. Their \sptm{innate} functions were already introduced in \tosection{2} and their \sptm{attributes} are defined below.
708 \begin{itemize}
709 \fillitem \codetext{\cmdt{fontsize}}: applies the defined font size of the \sptm{element}.
710 \fillitem \codetext{\cmdt{setfontsize}}: modifies the font size of the \sptm{element} using two inputs, one optional and one compulsory; the compulsory one is the font height and the optional one is the multiplier of the font spacing (by default 1.2).
711 \fillitem \codetext{x} and \codetext{y}: the position of the \sptm{element}.
712 \fillitem \codetext{anchor} and \codetext{align}: the corresponding parameters of the \tikzref{} node.
713 \fillitem \codetext{width}: the text width parameter of the \tikzref{} node.
714 \fillitem A color \sptm{relative}, equal to \codetext{titlepagetext} by default.
715 \end{itemize}
716 \end{slide}
717
718 \iftoggle{examples}{
719 \begin{slide}[Changing the title page (example)]
720 Try the following code in your document.
721
722 \spacing
723
724 \codeline{\cmdt{def}\cmdt{titlepageopacity}\cbrt{1}}
725 \codeline{\cmdt{colorlet}\cbrt{titlepagetext}\cbrt{third}}
726 \codeline{\cmdt{setfontsizesubtitle}\cbrt{2.5cm}}
727 \codeline{\cmdt{def}\cmdt{titlex}\cbrt{0cm}}
728 \codeline{\cmdt{def}\cmdt{titley}\cbrt{\cmdt{paperheight}}}
729 \codeline{\cmdt{def}\cmdt{titleanchor}\cbrt{north west}}
730 \codeline{\cmdt{def}\cmdt{authorwidth}\cbrt{\cmdt{paperwidth}}}
731 \codeline{\cmdt{def}\cmdt{authoralign}\cbrt{left}}
732 \codeline{\cmdt{titleslide}}
733 \end{slide}
734 }{}
735
736 \hypertarget{custom:banner}{}
737 \begin{slide}[Changing the banners]
738 The two banners (top and bottom) on every slide are composed of a variety of \sptm{elements} explored in the next two slides.
739 The four main ones are \codetext{banner}, \codetext{topbanner}, \codetext{bottombanner}, and \codetext{progress} (for the progress line at the bottom of the page).
740 None of these \sptm{elements} have an \sptm{innate} command, but they share the following \sptm{attributes}.
741 \begin{itemize}
742 \fillitem \codetext{\cmdt{show}}, \codetext{\cmdt{hide}}, \codetext{height}, and \codetext{opacity}.
743 \fillitem \codetext{\cmdt{fontsize}}, \codetext{\cmdt{setfontsize}}, \codetext{x}, \codetext{y}, \codetext{width} (only \codetext{topbanner} and \codetext{bottombanner}).
744 \begin{itemize}
745 \emptyitem All these five \sptm{attributes} relate to the text within the banner.
746 \emptyitem The text of the banner is placed according to \codetext{x} and \codetext{y}, spanning \codetext{width} horizontally.
747 \end{itemize}
748 \fillitem \codetext{align} (only \codetext{progress}): either \codetext{left} (default) or \codetext{right}.
749 \fillitem A color \sptm{relative} (\codetext{text} by default, except \codetext{third} for \codetext{progress}).
750 \end{itemize}
751 \end{slide}
752
753 \begin{slide}[Changing the banners]
754 On top of the more structural banner \sptm{elements}, there are six text elements from the banners: \codetext{bannertext}, \codetext{bannerheader}, \codetext{bannertitle}, \codetext{bannerauthor}, \codetext{bannersection}, and \codetext{bannernumber}.
755 They have the following \sptm{attributes}.
756 \begin{itemize}
757 \fillitem \codetext{\cmdt{show}}, \codetext{\cmdt{hide}}: by default, they are all visible except \codetext{bannernumber}.
758 \fillitem \codetext{align}, with four options: \codetext{left} (\codetext{bannerheader} and \codetext{bannertitle} default), \codetext{center} (\codetext{bannersection} default), \codetext{right} (\codetext{bannerauthor} and \codetext{bannernumber} default), or a number (for example \codetext{0} is the same as \codetext{left}, and \codetext{1} the same as \codetext{right}).
759 \fillitem A color \sptm{relative} (\codetext{page} by default).
760 \end{itemize}
761 \spacing
762 \begin{alert}
763 The \codetext{bannertitle} refers to the \sptm{element} of the banners related to \codetext{title} (for the whole slide, for example ``Using the Slixte class'' here), and not what is at the top of the slide, instead referred to as the \codetext{bannerheader} (``Changing the banners'' here).
764 \end{alert}
765 \end{slide}
766
767 \iftoggle{examples}{
768 \begin{slide}[Changing the banners (example)]
769 Try the following code in your document.
770
771 \spacing
772
773 \codeline{\cmdt{def}\cmdt{banneropacity}\cbrt{1}}
774 \codeline{\cmdt{def}\cmdt{topbannerheight}\cbrt{0.5\cmdt{paperheight}}}
775 \codeline{\cmdt{setfontsizetopbanner}\cbrt{2cm}}
776 \codeline{\cmdt{colorlet}\cbrt{bottombanner}\cbrt{second}}
777 \codeline{\cmdt{def}\cmdt{bottombannery}\cbrt{1cm}}
778 \codeline{\cmdt{def}\cmdt{bannerheaderalign}\cbrt{right}}
779 \codeline{\cmdt{showbannernumber}}
780 \codeline{\cmdt{def}\cmdt{bannernumberalign}\cbrt{0.75}}
781 \codeline{\cmdt{begin}\cbrt{slide}[The bannerheader element]\cmdt{end}\cbrt{slide}}
782 \end{slide}
783 }{}
784
785 \hypertarget{custom:toc}{}
786 \begin{slide}[Changing the table of contents]
787 The table of contents part of the slides has three \sptm{elements}: \codetext{toc}, \codetext{section}, and \codetext{symbol}.
788 The \sptm{innate} and all \sptm{pre-attributes} of \codetext{toc} also work with the alias \codetext{tableofcontents}.
789
790 \spacing[1]
791
792 Due to the diversity of roles of the \sptm{elements}, we cover their \sptm{attributes} separately, starting with \codetext{toc}.
793 This \sptm{element} covers properties of the main table of contents and the repeated ones for each section.
794 \begin{itemize}
795 \fillitem The \sptm{innate} was covered in \tosection{2}. It takes an optional input for the header of the slide, which then applies to all subsequent table of contents.
796 \fillitem \codetext{\cmdt{show}} and \codetext{\cmdt{hide}}: whether each section shows the current table of contents or not.
797 \fillitem \codetext{y} and \codetext{height}: vertical position and range of the sections within the table of contents.
798 \fillitem \codetext{opacity}: the opacity of the non-current sections in the table of contents.
799 \end{itemize}
800 \end{slide}
801
802 \begin{slide}[Changing the table of contents]
803 The \sptm{element} \codetext{section} covers properties of the overall organization into sections and the design of the section names in the table of contents.
804 The \sptm{attributes} related to the organization were covered in \tosection{2} (\codetext{\cmdt{add}}, \codetext{\cmdt{to}}, and the \sptm{innate}).
805
806 \spacing[1]
807
808 On top of these \sptm{attributes} already defined, every other one of \codetext{section} is shared with \codetext{symbol} and described below.
809 \begin{itemize}
810 \fillitem \codetext{\cmdt{show}}, \codetext{\cmdt{hide}}, \codetext{\cmdt{fontsize}} and \codetext{\cmdt{setfontsize}}.
811 \fillitem \codetext{x}: the horizontal position of the \codetext{section} or \codetext{symbol}.
812 \fillitem \codetext{anchor}: the anchor defined for \tikzref{} nodes.
813 \fillitem A color \sptm{relative} (by default \codetext{text} for \codetext{section} and \codetext{first} for \codetext{symbol}).
814 \end{itemize}
815 \end{slide}
816
817 \iftoggle{examples}{
818 \begin{slide}[Changing the table of contents (example)]
819 Try the following code in your document.
820
821 \spacing
822
823 \codeline{\cmdt{def}\cmdt{tocheight}\cbrt{2cm}}
824 \codeline{\cmdt{def}\cmdt{sectionx}\cbrt{0.5\cmdt{paperwidth}}}
825 \codeline{\cmdt{def}\cmdt{sectionanchor}\cbrt{center}}
826 \codeline{\cmdt{setfontsizesymbol}\cbrt{2cm}}
827 \codeline{\cmdt{toc}[My Table of Contents]}
828 \codeline{\cmdt{hidesymbol}}
829 \codeline{\cmdt{section}}
830 \codeline{\cmdt{hidesection}}
831 \codeline{\cmdt{toc}}
832 \end{slide}
833 }{}
834
835 \hypertarget{custom:content}{}
836 \begin{slide}[Changing the content of the slides]
837 Within the main content part of the slides, there are four \sptm{elements}: \codetext{content}, \codetext{item}, \codetext{framing}, and \codetext{ref}.
838 Since \codetext{framing} is the most complex, let us start with the other three.
839 \begin{itemize}
840 \fillitem Attributes of \codetext{content}:
841 \begin{itemize}
842 \emptyitem \codetext{\cmdt{fontsize}}, \codetext{\cmdt{setfontsize}}, and \sptm{innate} (see \tosection{2}).
843 \emptyitem \codetext{align} (default \codetext{justify}), \codetext{opacity} (default \codetext{0.99}), and \codetext{margin} (default \codetext{1.8cm}).
844 \end{itemize}
845 \fillitem Attributes of \codetext{item}:
846 \begin{itemize}
847 \emptyitem \codetext{\cmdt{c}}, \codetext{\cmdt{fill}}, \codetext{\cmdt{empty}} (see \tosection{2}).
848 \fillitem A color \sptm{relative} (by default \codetext{first}).
849 \end{itemize}
850 \fillitem Attributes of \codetext{ref}:
851 \begin{itemize}
852 \emptyitem \codetext{\cmdt{add}}, \codetext{\cmdt{cite}}, and \codetext{\cmdt{make}} (see \tosection{2}).
853 \emptyitem \codetext{\cmdt{fontsize}}, \codetext{\cmdt{setfontsize}} and a color \sptm{relative} (by default \codetext{first}).
854 \end{itemize}
855 \end{itemize}
856 \end{slide}
857
858 \begin{slide}[Changing the content of the slides]
859 The final \sptm{element} of the main content, \codetext{framing}, relates to the framed environment (see \tosection{2}) and has the following \sptm{attributes}.
860 \begin{itemize}
861 \fillitem \codetext{align}: how the text should align within the environment (default \codetext{justify}).
862 \fillitem \codetext{width}: the total width of the framed environment.
863 \fillitem \codetext{space}: the space at the top of the environment (default \codetext{0.5cm}).
864 \fillitem \codetext{margin}: the margin between the frame and the inner text (default \codetext{1cm}).
865 \fillitem A color \sptm{relative} (by default \codetext{second}).
866 \end{itemize}
867
868 \spacing[1]
869
870 Unique to \codetext{framing} is the \sptm{sub-element} called \codetext{framingbox}, used for the actual structure of the frame and with the following \sptm{attributes}.
871 \begin{itemize}
872 \fillitem \codetext{width}, \codetext{height}, \codetext{linewidth}, \codetext{roundedcorners}, and a color \sptm{relative}.
873 \end{itemize}
874 \end{slide}
875
876 \iftoggle{examples}{
877 \begin{slide}[Changing the content of the slides (example)]
878 Try the following code in your document.
879
880 \spacing
881
882 \codeline{\cmdt{def}\cmdt{contentopacity}\cbrt{0.9}}
883 \codeline{\cmdt{begin}\cbrt{slide}}
884 \codeline[1]{\cmdt{begin}\cbrt{theorem}Some theorem.\cmdt{end}\cbrt{theorem}}
885 \codeline[1]{\cmdt{def}\cmdt{framingwidth}\cbrt{0.5\cmdt{paperwidth}}}
886 \codeline[1]{\cmdt{def}\cmdt{framingmargin}\cbrt{0cm}}
887 \codeline[1]{\cmdt{colorlet}\cbrt{framingbox}\cbrt{third}}
888 \codeline[1]{\cmdt{def}\cmdt{framingboxheight}\cbrt{-1cm}}
889 \codeline[1]{\cmdt{begin}\cbrt{theorem}Some theorem.\cmdt{end}\cbrt{theorem}}
890 \codeline{\cmdt{end}\cbrt{slide}}
891 \end{slide}
892 }{}
893
894 \newlength{\codefontsize}
895 \setlength{\codefontsize}{0.26cm}
896 \setlength{\contentmargin}{0.2cm}
897 \def\codemargin{13cm}
898
899 \iftoggle{examples}{
900 \hypertarget{custom:template}{}
901 \begin{tikzslide}[Possible template: dark theme and bright colors]
902 \node at (0.2\paperwidth, 0.74\paperheight){\includegraphics[width=0.25\paperwidth, page=1]{designs/dark.pdf}};
903 \node at (0.2\paperwidth, 0.47\paperheight){\includegraphics[width=0.25\paperwidth, page=2]{designs/dark.pdf}};
904 \node at (0.2\paperwidth, 0.20\paperheight){\includegraphics[width=0.25\paperwidth, page=3]{designs/dark.pdf}};
905 \content{%
906 \thisfontsize{\codefontsize}{\codefontspace}%
907 \codeline{\hspace{\codemargin}\cmdt{hidebackground}}
908 \codeline{\hspace{\codemargin}\cmdt{hidelogo}}
909 \codeline{\hspace{\codemargin}\cmdt{hidesymbol}}
910 \codeline{}
911 \codeline{\hspace{\codemargin}\cmdt{definecolor}\cbrt{first}\cbrt{RGB}\cbrt{65, 105, 225}}
912 \codeline{\hspace{\codemargin}\cmdt{definecolor}\cbrt{second}\cbrt{RGB}\cbrt{255, 215, 0}}
913 \codeline{\hspace{\codemargin}\cmdt{definecolor}\cbrt{third}\cbrt{RGB}\cbrt{220, 20, 60}}
914 \codeline{\hspace{\codemargin}\cmdt{definecolor}\cbrt{fourth}\cbrt{RGB}\cbrt{34, 139, 34}}
915 \codeline{}
916 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{page}\cbrt{black}}
917 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{text}\cbrt{white}}
918 \codeline{}
919 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{titlepage}\cbrt{page}}
920 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{title}\cbrt{first}}
921 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{subtitle}\cbrt{third}}
922 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{author}\cbrt{second}}
923 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{info}\cbrt{fourth}}
924 \codeline{}
925 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{banner}\cbrt{page}}
926 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bannerheader}\cbrt{fourth}}
927 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bannertitle}\cbrt{first}}
928 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bannerauthor}\cbrt{second}}
929 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bannersection}\cbrt{third}}
930 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{progress}\cbrt{fourth}}
931 \codeline{}
932 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{section}\cbrt{third}}
933 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{item}\cbrt{third}}
934 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{framingbox}\cbrt{first}}
935 \codeline{}
936 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{titlealign}\cbrt{center}}
937 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{subtitlealign}\cbrt{center}}
938 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{authoralign}\cbrt{center}}
939 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{infoalign}\cbrt{center}}
940 \codeline{}
941 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{titlepageopacity}\cbrt{0.9}}
942 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{contentopacity}\cbrt{0.9}}
943 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{banneropacity}\cbrt{1}}
944 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{progressopacity}\cbrt{1}}
945 }
946 \end{tikzslide}
947
948 \begin{tikzslide}[Possible template: denser with overriding progress]
949 \node at (0.2\paperwidth, 0.74\paperheight){\includegraphics[width=0.25\paperwidth, page=1]{designs/dense.pdf}};
950 \node at (0.2\paperwidth, 0.47\paperheight){\includegraphics[width=0.25\paperwidth, page=2]{designs/dense.pdf}};
951 \node at (0.2\paperwidth, 0.20\paperheight){\includegraphics[width=0.25\paperwidth, page=3]{designs/dense.pdf}};
952 \content{%
953 \thisfontsize{\codefontsize}{\codefontspace}%
954 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{topbanner}\cbrt{first}}
955 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bottombanner}\cbrt{page}}
956 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bannertext}\cbrt{page}}
957 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{progress}\cbrt{first}}
958 \codeline{}
959 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{framing}\cbrt{text}}
960 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{framingbox}\cbrt{first}}
961 \codeline{}
962 \codeline{\hspace{\codemargin}\cmdt{setfontsizetopbanner}\cbrt{1}}
963 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{banneropacity}\cbrt{1}}
964 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{topbannerheight}\cbrt{1.5cm}}
965 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{topbannerwidth}\cbrt{0.95\cmdt{paperwidth}}}
966 \codeline{}
967 \codeline{\hspace{\codemargin}\cmdt{setfontsizebottombanner}\cbrt{0.5}}
968 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bottombannerheight}\cbrt{0.5cm}}
969 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{progressheight}\cbrt{-1cm}}
970 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{progressopacity}\cbrt{1}}
971 \codeline{}
972 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{tocy}\cbrt{0.75\cmdt{paperheight}}}
973 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{tocheight}\cbrt{0.3\cmdt{paperheight}}}
974 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{sectionx}\cbrt{4cm}}
975 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{symbolx}\cbrt{3cm}}
976 \codeline{}
977 \codeline{\hspace{\codemargin}\cmdt{setfontsizecontent}\cbrt{0.7}}
978 \codeline{\hspace{\codemargin}\cmdt{setlength}\cbrt{\cmdt{contentmargin}}\cbrt{1cm}}
979 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{contentopacity}\cbrt{1}}
980 }
981 \end{tikzslide}
982
983 \begin{tikzslide}[Possible template: grayscale with page number]
984 \node at (0.2\paperwidth, 0.74\paperheight){\includegraphics[width=0.25\paperwidth, page=1]{designs/minimal.pdf}};
985 \node at (0.2\paperwidth, 0.47\paperheight){\includegraphics[width=0.25\paperwidth, page=2]{designs/minimal.pdf}};
986 \node at (0.2\paperwidth, 0.20\paperheight){\includegraphics[width=0.25\paperwidth, page=3]{designs/minimal.pdf}};
987 \content{%
988 \thisfontsize{\codefontsize}{\codefontspace}%
989 \codeline{\hspace{\codemargin}\cmdt{hidebackground}}
990 \codeline{\hspace{\codemargin}\cmdt{hidelogo}}
991 \codeline{\hspace{\codemargin}\cmdt{hideprogress}}
992 \codeline{}
993 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{first}\cbrt{white!75!black}}
994 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{second}\cbrt{white!25!black}}
995 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{third}\cbrt{white!50!black}}
996 \codeline{}
997 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{titlepagetext}\cbrt{black}}
998 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{banner}\cbrt{white}}
999 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{bannertext}\cbrt{black}}
1000 \codeline{\hspace{\codemargin}\cmdt{colorlet}\cbrt{page}\cbrt{black}}
1001 \codeline{}
1002 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{contentopacity}\cbrt{0.01}}
1003 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{titlepageopacity}\cbrt{0.05}}
1004 \codeline{}
1005 \codeline{\hspace{\codemargin}\cmdt{setfontsizetitle}\cbrt{2}}
1006 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{subtitlex}\cbrt{0.1\cmdt{paperwidth}}}
1007 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{subtitley}\cbrt{0.6\cmdt{paperheight}}}
1008 \codeline{\hspace{\codemargin}\cmdt{setfontsizesubtitle}\cbrt{1.8}}
1009 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{authory}\cbrt{0.4\cmdt{paperheight}}}
1010 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{authoralign}\cbrt{left}}
1011 \codeline{\hspace{\codemargin}\cmdt{setfontsizeauthor}\cbrt{2}}
1012 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{infoy}\cbrt{0.3\cmdt{paperheight}}}
1013 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{infoalign}\cbrt{left}}
1014 \codeline{\hspace{\codemargin}\cmdt{setfontsizeinfo}\cbrt{1.8}}
1015 \codeline{}
1016 \codeline{\hspace{\codemargin}\cmdt{showbannernumber}}
1017 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bannertitlealign}\cbrt{-0.32}}
1018 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bannerauthoralign}\cbrt{-0.115}}
1019 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bannersectionalign}\cbrt{left}}
1020 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bannersectionnumber}\cbrt{right}}
1021 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bottombannerx}\cbrt{0.65\cmdt{paperwidth}}}
1022 \codeline{\hspace{\codemargin}\cmdt{def}\cmdt{bottombannerwidth}\cbrt{0.65\cmdt{paperwidth}}}
1023 }
1024 \end{tikzslide}
1025 }{}
1026
1027 \setlength{\contentmargin}{0cm}
1028 \setfontsizecontent{0.25cm}
1029 \setlength{\arrayrulewidth}{0.02cm}
1030 \setlength{\tabcolsep}{0.05cm}
1031 \renewcommand{\arraystretch}{1.7}
1032 \def\cru{\color{first}X}
1033
1034 \hypertarget{custom:summary}{}
1035 \begin{slide}[Summary of elements and attributes]
1036 \vspace{1cm}
1037 \begin{center}
1038 % \begin{tabular}{|c|cccccccc|cccccccccc|cccc|ccccc|}
1039 \color{text!10!page}
1040 \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
1041 \hline
1042 \sptm{element}
1043 &\codetext{author}
1044 &\codetext{background}
1045 &\codetext{banner}
1046 &\codetext{bannerauthor}
1047 &\codetext{bannerheader}
1048 &\codetext{bannernumber}
1049 &\codetext{bannersection}
1050 &\codetext{bannertext}
1051 &\codetext{bannertitle}
1052 &\codetext{bottombanner}
1053 &\codetext{content}
1054 &\codetext{framing}
1055 &\codetext{framingbox}
1056 &\codetext{info}
1057 &\codetext{item}
1058 &\codetext{logo}
1059 &\codetext{progress}
1060 &\codetext{ref}
1061 &\codetext{section}
1062 &\codetext{subtitle}
1063 &\codetext{symbol}
1064 &\codetext{tableofcontents}
1065 &\codetext{title}
1066 &\codetext{titlepage}
1067 &\codetext{titlepagetext}
1068 &\codetext{toc}
1069 &\codetext{topbanner}
1070 \\
1071 \hline
1072 \sptm{innate}&\cru&\cru&&&&&&&&&\cru&&&\cru&&\cru&&&\cru&\cru&&\cru&\cru&\cru&&\cru&\\
1073 \hline
1074 \codetext{\cmdt{add}}&&&&&&&&&&&&&&&&&&\cru&\cru&&&&&&&&\\
1075 \hline
1076 \codetext{\cmdt{c}}&&&&&&&&&&&&&&&\cru&&&&&&&&&&&&\\
1077 \hline
1078 \codetext{\cmdt{cite}}&&&&&&&&&&&&&&&&&&\cru&&&&&&&&&\\
1079 \hline
1080 \codetext{\cmdt{empty}}&&&&&&&&&&&&&&&\cru&&&&&&&&&&&&\\
1081 \hline
1082 \codetext{\cmdt{fill}}&&&&&&&&&&&&&&&\cru&&&&&&&&&&&&\\
1083 \hline
1084 \codetext{\cmdt{fontsize}}&\cru&&&&&&&&&\cru&\cru&\cru&&\cru&&&&\cru&\cru&\cru&\cru&&\cru&&&&\cru\\
1085 \hline
1086 \codetext{\cmdt{hide}}&&\cru&\cru&\cru&\cru&\cru&\cru&\cru&\cru&\cru&&&&&&\cru&\cru&&\cru&&\cru&\cru&&&&\cru&\cru\\
1087 \hline
1088 \codetext{\cmdt{make}}&&&&&&&&&&&&&&&&&&\cru&&&&&\cru&&&&\\
1089 \hline
1090 \codetext{\cmdt{setfontsize}}&\cru&&&&&&&&&\cru&\cru&\cru&&\cru&&&&\cru&\cru&\cru&\cru&&\cru&&&&\cru\\
1091 \hline
1092 \codetext{\cmdt{show}}&&\cru&\cru&\cru&\cru&\cru&\cru&\cru&\cru&\cru&&&&&&\cru&\cru&&\cru&&\cru&\cru&&&&\cru&\cru\\
1093 \hline
1094 \codetext{\cmdt{to}}&&&&&&&&&&&&&&&&&&&\cru&&&&&&&&\\
1095 \hline
1096 \codetext{align}&\cru&&&\cru&\cru&\cru&\cru&&\cru&&\cru&\cru&&\cru&&&\cru&&\cru&\cru&\cru&&\cru&&&&\\
1097 \hline
1098 \codetext{anchor}&\cru&\cru&&&&&&&&&&&&\cru&&\cru&&&\cru&\cru&\cru&&\cru&&&&\\
1099 \hline
1100 \codetext{height}&&\cru&\cru&&&&&&&\cru&&&\cru&&&\cru&\cru&&&&&&&&&\cru&\cru\\
1101 \hline
1102 \codetext{linewidth}&&&&&&&&&&&&&\cru&&&&&&&&&&&&&&\\
1103 \hline
1104 \codetext{margin}&&&&&&&&&&&\cru&\cru&&&&&&&&&&&&&&&\\
1105 \hline
1106 \codetext{opacity}&&&\cru&&&&&&&\cru&\cru&&&&&&\cru&&&&&&&\cru&&\cru&\cru\\
1107 \hline
1108 \codetext{roundedcorners}&&&&&&&&&&&&&\cru&&&&&&&&&&&&&&\\
1109 \hline
1110 \codetext{space}&&&&&&&&&&&&\cru&&&&&&&&&&&&&&&\\
1111 \hline
1112 \codetext{width}&\cru&\cru&&&&&&&&&&\cru&\cru&\cru&&\cru&&&&\cru&&&\cru&&&&\\
1113 \hline
1114 \codetext{x}&\cru&\cru&&&&&&&&&&&&\cru&&\cru&&&\cru&\cru&\cru&&\cru&&&&\\
1115 \hline
1116 \codetext{y}&\cru&\cru&&&&&&&&&&&&\cru&&\cru&&&&\cru&&&\cru&&&\cru&\\
1117 \hline
1118 \color{text}color~\sptm{relative}&\cru&&\cru&\cru&\cru&\cru&\cru&\cru&\cru&\cru&&\cru&\cru&\cru&\cru&&\cru&\cru&\cru&\cru&\cru&&\cru&\cru&\cru&&\cru\\
1119 \hline
1120 \end{tabular}
1121 \spacing[0.2]
1122 \color{text}
1123 By default, the \sptm{attributes} \codetext{height}, \codetext{width}, \codetext{x}, \codetext{y} and the color \sptm{relative} are not defined.
1124 \end{center}
1125 \end{slide}
1126
1127 \setlength{\contentmargin}{1.8cm}
1128 \setfontsizecontent{0.9cm}
1129
1130 \section
1131
1132 \begin{slide}[Fundamental environment]
1133 To understand the \slixte{} class further, it is worth mentioning the most fundamental environment: \codetext{page}.
1134 This environment does not take any argument, creates a single empty page, and is used for every subsequent environment and command.
1135 The result belongs to a \tikzref{} environment and is otherwise empty (no background, banner, text box, etc).
1136
1137 \spacing[1]
1138
1139 The \codetext{page} environment also hosts two very useful commands: \codetext{\cmdt{prepage}} and \codetext{\cmdt{postpage}}.
1140 As their names entail, these commands are automatically called at the beginning and end of a \codetext{page} environment (within the \codetext{tikzpicture} environment themselves).
1141
1142 \spacing[1]
1143
1144 Finally, in order to create the different parts of the slide, there exists an \sptm{attribute} not mentioned before: \codetext{\cmdt{draw}}.
1145 This \sptm{pre-attribute} should only be used within the \tikzref{} environment (so not within a standard \codetext{slide} for example).
1146 \end{slide}
1147
1148 \iftoggle{examples}{
1149 \begin{slide}[Fundamental environment (example)]
1150 Try the following code in your document.
1151
1152 \spacing
1153
1154 \codeline{\cmdt{renewcommand}\cbrt{\cmdt{backpage}}\cbrl}
1155 \codeline[1]{\cmdt{node}[third, scale=5] at (15, 10)\cbrt{Background};}
1156 \codeline{\cbrr}
1157 \codeline{\cmdt{renewcommand}\cbrt{\cmdt{frontpage}}\cbrl}
1158 \codeline[1]{\cmdt{node}[scale=5] at (15, 5)\cbrt{Foreground};}
1159 \codeline[1]{\cmdt{node}\cbrt{\cmdt{includegraphics}[height=5cm]\cbrt{background.png}};}
1160 \codeline{\cbrr}
1161 \codeline{\cmdt{begin}\cbrt{page}\cmdt{end}\cbrt{page}}
1162 \codeline{\cmdt{begin}\cbrt{slide}\cmdt{end}\cbrt{slide}}
1163 \end{slide}
1164 }{}
1165
1166 \begin{slide}[The draw attribute]
1167 Here is a non-exhaustive list of the \sptm{elements} with the \codetext{\cmdt{draw}} \sptm{attribute}.
1168 The possible inputs of the commands are directly written with the \sptm{element}.
1169 \begin{itemize}
1170 \fillitem \codetext{background} and \codetext{overlay\cbrt{opacity}\cbrt{color}}.
1171 \fillitem \codetext{banner}, \codetext{topbanner}, \codetext{bottombanner}, and \codetext{progress}.
1172 \fillitem \codetext{top/bottombannertext[color]\cbrt{align}\cbrt{text}}.
1173 \fillitem \codetext{bannerheader\cbrt{header}} and \codetext{bannertitle/author/section/number} (with \codetext{bannertext} combining all four of them).
1174 \fillitem \codetext{content}: creates the content background.
1175 \fillitem \codetext{framingbox}: creates the framing box (using the node \codetext{framing}).
1176 \fillitem \codetext{ref\cbrt{refname}\cbrt{author}\cbrt{year}\cbrt{title}\cbrt{journal}}.
1177 \end{itemize}
1178 \end{slide}
1179
1180 \begin{slide}[The draw attribute]
1181 While most \sptm{elements} actually have the \codetext{\cmdt{draw}} \sptm{attribute}, the previous list highlights the ones relevant when further customizing the slides (the acute user of the \slixte{} class is invited to check wihtin the \codetext{.cls} file for the other \codetext{\cmdt{draw}} methods).
1182
1183 \spacing[1]
1184
1185 The following slides now explain how these commands can be used to create custom slides, or how they can be redefined to fit the various needs.
1186
1187 \spacing[1]
1188
1189 \iftoggle{examples}{
1190 Before that, the code behind the \codetext{slide} environment is provided, hoping it helps clarify the use of some of these commands.
1191 }{}
1192 \end{slide}
1193
1194 \iftoggle{examples}{
1195 \begin{slide}[The draw attribute (example)]
1196 The following code will create a standard \codetext{slide} environment.
1197
1198 \spacing
1199
1200 \codeline{\cmdt{begin}\cbrt{page}}
1201 \codeline[1]{\cmdt{drawbackground}}
1202 \codeline[1]{\cmdt{drawbanner}}
1203 \codeline[1]{\cmdt{drawcontent}}
1204 \codeline[1]{\cmdt{drawprogress}}
1205 \codeline[1]{\cmdt{drawbannerheader}\cbrt{Slide Header}}
1206 \codeline[1]{\cmdt{drawbannertext}}
1207 \codeline[1]{\cmdt{content}\cbrt{The slide content.}}
1208 \codeline{\cmdt{end}\cbrt{page}}
1209 \end{slide}
1210
1211 \begin{slide}[The draw attribute (example)]
1212 Try the following code in your document.
1213
1214 \spacing
1215
1216 \codeline{\cmdt{begin}\cbrt{page}}
1217 \codeline[1]{\cmdt{drawbackground}}
1218 \codeline[1]{\cmdt{drawoverlay}\cbrt{0.5}\cbrt{red}}
1219 \codeline[1]{\cmdt{drawbannerheader}\cbrt{Slide Header}}
1220 \codeline[1]{\cmdt{showbannernumber}}
1221 \codeline[1]{\cmdt{drawbannernumber}}
1222 \codeline[1]{\cmdt{content}\cbrt{The slide content.}}
1223 \codeline{\cmdt{end}\cbrt{page}}
1224 \end{slide}
1225 }{}
1226
1227 \begin{slide}[Customizing the commands]
1228 Some of the \codetext{\cmdt{draw}} commands can be re-written to fit personal tastes.
1229 \begin{itemize}
1230 \fillitem \codetext{bannerheader/title/author/section/number}, for example to place these \sptm{elements} elsewhere. It is worth noting that these commands call the \sptm{attribute} \codetext{name} from their corresponding \sptm{element} (\codetext{\cmdt{titlename}}, \codetext{\cmdt{authorname}}, etc).
1231 \fillitem \codetext{framingbox}: to draw the framing box and subsequent environments (\codetext{theorem}, \codetext{definition}, etc) differently.
1232 \fillitem \codetext{ref}, to restructure the way references are written.
1233 \end{itemize}
1234 \end{slide}
1235
1236 \iftoggle{examples}{
1237 \begin{slide}[Customizing the commands (example)]
1238 Try the following code in your document.
1239
1240 \spacing
1241
1242 \codeline{\cmdt{renewcommand}\cbrt{\cmdt{drawbannerheader}}[1]\cbrl}
1243 \codeline[1]{\cmdt{node}[first, scale=5]}
1244 \codeline[1]{at (\cmdt{paperwidth}/2, \cmdt{paperheight}/2)\cbrt{\char`\#1};}
1245 \codeline{\cbrr}
1246 \codeline{\cmdt{renewcommand}\cbrt{\cmdt{drawbannernumber}}\cbrl}
1247 \codeline[1]{\cmdt{drawtopbannertext}[yellow]\cbrt{right}}
1248 \codeline[1]{\cbrt{page \cmdt{insertpagenumber}\cmdt{ } out of \cmdt{insertdocumentendpage}}}
1249 \codeline{\cbrr}
1250 \codeline{\cmdt{begin}\cbrt{slide}[Title]Some slide\cmdt{end}\cbrt{slide}}
1251 \end{slide}
1252
1253 \begin{slide}[Customizing the commands (example)]
1254 Try the following code in your document.
1255
1256 \spacing
1257
1258 \codeline{\cmdt{renewcommand}\cbrt{\cmdt{drawframingbox}}\cbrl}
1259 \codeline[1]{\cmdt{draw}[line width=0.1cm] (framing.north) -- (framing.south);}
1260 \codeline[1]{\cmdt{draw}[line width=0.1cm] (framing.west) -- (framing.east);}
1261 \codeline[1]{\cmdt{draw}[red, fill=red, opacity=0.2, line width=0cm]}
1262 \codeline[2]{(framing.north east) rectangle (framing.south west);}
1263 \codeline{\cbrr}
1264 \codeline{\cmdt{begin}\cbrt{slide}}
1265 \codeline[1]{\cmdt{begin}\cbrt{theorem}Some theorem.\cmdt{end}\cbrt{theorem}}
1266 \codeline{\cmdt{end}\cbrt{slide}}
1267 \end{slide}
1268
1269 \begin{slide}[Customizing the commands (example)]
1270 Try the following code in your document.
1271
1272 \spacing
1273
1274 \codeline{\cmdt{renewcommand}\cbrt{\cmdt{drawref}}[5]\cbrl}
1275 \codeline[1]{\cmdt{hyperlink}\cbrt{\char`\#1}\cbrt{\cmdt{textbf}\cbrt{\char`\#4}}}
1276 \codeline[1]{\cmdt{hfill}\cmdt{textcolor}\cbrt{text!10!page}\cbrt{\char`\#1}}
1277 \codeline[1]{\cmdt{begin}\cbrt{itemize}}
1278 \codeline[2]{\cmdt{emptyitem} Written by \char`\#2 in \char`\#3.}
1279 \codeline[2]{\cmdt{emptyitem} Published in \cmdt{textit}\cbrt{\char`\#5}.}
1280 \codeline[1]{\cmdt{end}\cbrt{itemize}}
1281 \codeline{\cbrr}
1282 \codeline{\cmdt{refslide}}
1283 \end{slide}
1284 }{}
1285
1286 \begin{slide}[Conclusion]
1287 I hope this document clarifies the use and options of the \slixte{} class.
1288
1289 \spacing[1]
1290
1291 If you still have questions/remarks, feel free to contact me at
1292 \[
1293 \textrm{\makeatletter\color{first}[email protected]\makeatother}\,.
1294 \]
1295
1296 \spacing[1]
1297
1298 In particular, if the class does not work or behaves differently than expected, please contact me with your code and an explanation of what is wrong, so that I can try to fix the issue.
1299
1300 \spacing[3]
1301
1302 I hope you will enjoy using this slide template as much as I do!
1303 \end{slide}
1304
1305 \togglefalse{qr}
1306
1307 \finalpage
1308
1309 \end{document}