Debian Codegraph @

texmf-dist/doc/latex/slixte/slixte-example.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{https://ctan.org/pkg/slixte}}
7
8 \addsection{A standard section}
9 \addsection[$\times$]{A section symbolized by a cross}
10
11 \addref{Y}{You}{yesterday}{Math?}{online}
12 \addref{Me}{Me}{today}{Math!}{in-class}
13
14 \begin{document}
15
16 \titleslide
17 \author{Someone Else}
18 \titleslide
19 \titlepage
20 \maketitle
21
22 \tableofcontents
23 \toc
24
25 \finalslide
26 \finalpage
27 \makefinal
28
29 \begin{slide}[A slide]
30 The text within the slide.
31 \end{slide}
32
33 \begin{tikzslide}[A tikzslide]
34 \foreach \n in {1,...,9}{
35 \node[draw, circle, first] at (\n, \n){};
36 }
37 \content{
38 Some text inside the tikzslide.
39 }
40 \end{tikzslide}
41
42 \section
43
44 \begin{slide}[A standard slide]
45 You can directly go to \tosection{1} or \tosection{2}.
46
47 \spacing
48
49 You can also try to go to \tosection{0} or \tosection{10}.
50
51 \spacing[2]
52
53 Finally, we can also go to \tosection{}.
54 \end{slide}
55
56 \section
57
58 \begin{slide}[A slide from the cross section]
59 You can directly go to \tosection{1} or \tosection{2}.
60
61 \spacing
62
63 You can also try to go to \tosection{0} or \tosection{10}.
64
65 \spacing[2]
66
67 Finally, we can also go to \tosection{}.
68 \end{slide}
69
70 \section
71
72 \begin{slide}[An unclear slide]
73 You can directly go to \tosection{1} or \tosection{2}.
74
75 \spacing
76
77 You can also try to go to \tosection{0} or \tosection{10}.
78
79 \spacing[2]
80
81 Finally, we can also go to \tosection{}.
82 \end{slide}
83
84 \begin{slide}
85 \begin{itemize}
86 \fillitem A filled bullet.
87 \emptyitem[second] An empty circle.
88 \citem[third]{3.} A custom item.
89 \end{itemize}
90
91 \begin{question}A question worth asking?\end{question}
92 \begin{remark}[Answer]
93 A remark that is actually an answer.
94 \end{remark}
95 \end{slide}
96
97 \begin{slide}
98 \begin{result}{Quotation}{}
99 ‘‘You can create your own result box.’’ - Beno{\^i}t
100 \end{result}
101
102 \begin{result}{Quotation}{Beno{\^i}t, Now}
103 You can create your own result box.
104 \end{result}
105 \end{slide}
106
107 \begin{slide}
108 \begin{definition}
109 A general definition that everyone should know.
110 \end{definition}
111
112 \begin{definition}[Math]
113 A math definition that some people should know.
114 \end{definition}
115 \end{slide}
116
117 \begin{slide}
118 You said something yesterday\citeref{Y},
119 and I only replied now\citeref{Me}.
120
121 A text on every slide.
122 \break
123 Some text appearing on the second slide.
124
125 \showon[3]{A line only shown on the third slide.}
126
127 \makeon[4]{A line only made on the fourth slide.}
128
129 A final line differentiating show and make.
130 \end{slide}
131 \refslide
132 \refpage
133 \makeref
134
135 \logo{background.png}
136 \definecolor{titlepage}{RGB}{0, 100, 255}
137 \colorlet{author}{first}
138 \titleslide
139 \hidelogo
140 \def\backgroundanchor{south west}
141 \def\backgroundwidth{2cm}
142 \def\backgroundheight{0.5\paperheight}
143 \titleslide
144
145 \def\titlepageopacity{1}
146 \colorlet{titlepagetext}{third}
147 \setfontsizesubtitle{2.5cm}
148 \def\titlex{0cm}
149 \def\titley{\paperheight}
150 \def\titleanchor{north west}
151 \def\authorwidth{\paperwidth}
152 \def\authoralign{left}
153 \titleslide
154
155 \def\banneropacity{1}
156 \def\topbannerheight{0.5\paperheight}
157 \setfontsizetopbanner{2cm}
158 \colorlet{bottombanner}{second}
159 \def\bottombannery{1cm}
160 \def\bannerheaderalign{right}
161 \showbannernumber
162 \def\bannernumberalign{0.75}
163 \begin{slide}[The bannerheader element]\end{slide}
164
165 \def\tocheight{2cm}
166 \def\sectionx{0.5\paperwidth}
167 \def\sectionanchor{center}
168 \setfontsizesymbol{2cm}
169 \toc[My Table of Contents]
170 \hidesymbol
171 \section
172 \hidesection
173 \toc
174
175 \def\contentopacity{0.9}
176 \begin{slide}
177 \begin{theorem}Some theorem.\end{theorem}
178 \def\framingwidth{0.5\paperwidth}
179 \def\framingmargin{0cm}
180 \colorlet{framingbox}{third}
181 \def\framingboxheight{-1cm}
182 \begin{theorem}Some theorem.\end{theorem}
183 \end{slide}
184
185 \renewcommand{\backpage}{
186 \node[third, scale=5] at (15, 10){Background};
187 }
188 \renewcommand{\frontpage}{
189 \node[scale=5] at (15, 5){Foreground};
190 \node{\includegraphics[height=5cm]{background.png}};
191 }
192 \begin{page}\end{page}
193 \begin{slide}\end{slide}
194
195 \begin{page}
196 \drawbackground
197 \drawbanner
198 \drawcontent
199 \drawprogress
200 \drawbannerheader{Slide Header}
201 \drawbannertext
202 \content{The slide content.}
203 \end{page}
204
205 \begin{page}
206 \drawbackground
207 \drawoverlay{0.5}{red}
208 \drawbannerheader{Slide Header}
209 \showbannernumber
210 \drawbannernumber
211 \content{The slide content.}
212 \end{page}
213
214 \renewcommand{\drawbannerheader}[1]{
215 \node[first, scale=5]
216 at (\paperwidth/2, \paperheight/2){#1};
217 }
218 \renewcommand{\drawbannernumber}{
219 \drawtopbannertext[yellow]{right}
220 {page \insertpagenumber\ out of \insertdocumentendpage}
221 }
222 \begin{slide}[Title]Some slide\end{slide}
223
224 \renewcommand{\drawframingbox}{
225 \draw[line width=0.1cm] (framing.north) -- (framing.south);
226 \draw[line width=0.1cm] (framing.west) -- (framing.east);
227 \draw[red, fill=red, opacity=0.2, line width=0cm]
228 (framing.north east) rectangle (framing.south west);
229 }
230 \begin{slide}
231 \begin{theorem}Some theorem.\end{theorem}
232 \end{slide}
233
234 \renewcommand{\drawref}[5]{
235 \hyperlink{#1}{\textbf{#4}}
236 \hfill\textcolor{text!10!page}{#1}
237 \begin{itemize}
238 \emptyitem Written by #2 in #3.
239 \emptyitem Published in \textit{#5}.
240 \end{itemize}
241 }
242 \refslide
243
244 \end{document}