Debian Codegraph @

texmf-dist/doc/latex/exercisesheets/examples/exshexample-embedded.tex

raw
1 \documentclass[aspectratio=169]{beamer}
2 \usetheme{Berlin}
3 \usefonttheme{professionalfonts}
4 \useoutertheme{infolines}
5 \useinnertheme{rounded}
6 \setbeamertemplate{itemize items}[circle]
7 \setbeamertemplate{enumerate items}[circle]
8 \setbeamertemplate{sections/subsections in toc}[circle]
9 \setbeamercolor{item projected}{bg=black}
10 \setbeamercolor{item}{fg=black}
11 \setbeamertemplate{navigation symbols}{}
12
13 \setbeamertemplate{footline}[frame number]
14
15 \setbeamercolor{block title}{bg=black}
16 \setbeamercolor{section in toc}{fg=red,bg=white}
17
18 \AtBeginSection[]{
19 \begin{frame}
20 \begin{block}{Overview}
21 \tableofcontents[sectionstyle=show/shaded,subsectionstyle=hide/hide/hide]
22 \end{block}
23 \end{frame}
24 }
25
26 \AtBeginSubsection[]{
27 \begin{frame}[allowframebreaks]
28 \begin{block}{Overview}
29 \tableofcontents[sectionstyle=show/hide,subsectionstyle=show/shaded/hide]
30 \end{block}
31 \end{frame}
32 }
33
34
35 \author{Example Author}
36 \title{Embedding Exercises}
37 \subtitle{a never-ending journey}
38 \makeatletter
39 \date{compilation date: \the\year-\two@digits{\the\month}-\two@digits{\the\day}}
40 \makeatother
41
42
43
44 \newenvironment<>{stlist}[1][]{%
45 \setbeamertemplate{enumerate items}{\alph{enumi})}
46 \setbeamertemplate{enumerate subitem}{\arabic{enumii}.}
47 \setbeamertemplate{enumerate subsubitem}{\arabic{enumii}.}
48 \begin{enumerate}[#1]
49 }{\end{enumerate}}
50
51 %embedded already sets a lot of values, see documentation
52 %in non-embedded mode, exercisesheets clears beamers headline
53 %and footline if non of the beamerwith...line arguments are used.
54 \usepackage[embedded]{exercisesheets}
55 \makeatletter
56 \exshset{
57 strings/sheet={Missions},
58 exercisespath=exercises,
59 subtask environment=stlist,
60 task restate font={\color{gray}},
61 imp/.style={pointsinfo=important},
62 vi/.style={pointsinfo=very important},
63 }
64 \makeatother
65
66 \parindent 0pt
67 \setlength{\parskip}{\baselineskip}
68
69
70
71 \begin{document}
72 \begin{frame}
73 \maketitle
74 \end{frame}
75
76 \section{Introduction}
77
78 \begin{frame}
79 Let me tell you everything \pause\textbf{about embedding exercises}.
80 \end{frame}
81
82 \section{Examples}
83
84 \subsection{without a sheet environment}
85
86 \begin{frame}
87 \begin{block}{}
88 Since our exercises are already in a dedicated subsection,\pause
89 we do not need an extra sheet environment.
90 \end{block}
91 \end{frame}
92
93 \includeexercise*[imp]{exshexample-ex1}
94 \includeLexercise*[vi]{exshexample-ex2}
95
96 \subsection{with a sheet environment}
97
98 \begin{sheet}[note={The exercises are within a separated sheet
99 environment.}]
100 \includeexercise*[imp,solutions]{exshexample-ex1}
101 \end{sheet}
102
103 \begingroup
104 \def\sheetfancy[#1]#2{\textcolor{red}{#2}}%nope, nothing happens
105 \exshset{sheet sectioning cmd=\sheetfancy}
106
107 \begin{sheet}[note={This sheet header looks exactly like the first one, because \texttt{sheet sectioning cmd} is only used for
108 non-beamer documents.}]
109 \includeLexercise*[imp,solutions]{exshexample-ex2}
110 \end{sheet}
111 \endgroup
112
113
114 \end{document}
115
116