diff options
| author | Frank Fuhlbrück | 2024-04-24 11:31:24 +0200 |
|---|---|---|
| committer | Frank Fuhlbrück | 2024-04-24 11:31:24 +0200 |
| commit | 026c602a4aa6f2b6eeca3bcbdd714425e07ad829 (patch) | |
| tree | d381c6e1e22280910595f6c296934b7c846f986d /examples/exshexample-embedded.tex | |
| parent | 14d99d3e545f4db9381dc9da8616ffdd33962ce5 (diff) | |
| download | exercisesheets-026c602a4aa6f2b6eeca3bcbdd714425e07ad829.tar.gz exercisesheets-026c602a4aa6f2b6eeca3bcbdd714425e07ad829.tar.bz2 exercisesheets-026c602a4aa6f2b6eeca3bcbdd714425e07ad829.zip | |
v.0.17: fix bugs with embedded+beamer; better documenation0.17
Diffstat (limited to 'examples/exshexample-embedded.tex')
| -rw-r--r-- | examples/exshexample-embedded.tex | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/examples/exshexample-embedded.tex b/examples/exshexample-embedded.tex new file mode 100644 index 0000000..d9cf557 --- /dev/null +++ b/examples/exshexample-embedded.tex @@ -0,0 +1,116 @@ +\documentclass[aspectratio=169]{beamer} +\usetheme{Berlin} +\usefonttheme{professionalfonts} +\useoutertheme{infolines} +\useinnertheme{rounded} +\setbeamertemplate{itemize items}[circle] +\setbeamertemplate{enumerate items}[circle] +\setbeamertemplate{sections/subsections in toc}[circle] +\setbeamercolor{item projected}{bg=black} +\setbeamercolor{item}{fg=black} +\setbeamertemplate{navigation symbols}{} + +\setbeamertemplate{footline}[frame number] + +\setbeamercolor{block title}{bg=black} +\setbeamercolor{section in toc}{fg=red,bg=white} + +\AtBeginSection[]{ +\begin{frame} +\begin{block}{Overview} +\tableofcontents[sectionstyle=show/shaded,subsectionstyle=hide/hide/hide] +\end{block} +\end{frame} +} + +\AtBeginSubsection[]{ +\begin{frame}[allowframebreaks] +\begin{block}{Overview} +\tableofcontents[sectionstyle=show/hide,subsectionstyle=show/shaded/hide] +\end{block} +\end{frame} +} + + +\author{Example Author} +\title{Embedding Exercises} +\subtitle{a never-ending journey} +\makeatletter +\date{compilation date: \the\year-\two@digits{\the\month}-\two@digits{\the\day}} +\makeatother + + + +\newenvironment<>{stlist}[1][]{% + \setbeamertemplate{enumerate items}{\alph{enumi})} + \setbeamertemplate{enumerate subitem}{\arabic{enumii}.} + \setbeamertemplate{enumerate subsubitem}{\arabic{enumii}.} + \begin{enumerate}[#1] +}{\end{enumerate}} + +%embedded already sets a lot of values, see documentation +%in non-embedded mode, exercisesheets clears beamers headline +%and footline if non of the beamerwith...line arguments are used. +\usepackage[embedded]{exercisesheets} +\makeatletter +\exshset{ + strings/sheet={Missions}, + exercisespath=exercises, + subtask environment=stlist, + task restate font={\color{gray}}, + imp/.style={pointsinfo=important}, + vi/.style={pointsinfo=very important}, +} +\makeatother + +\parindent 0pt +\setlength{\parskip}{\baselineskip} + + + +\begin{document} +\begin{frame} +\maketitle +\end{frame} + +\section{Introduction} + +\begin{frame} + Let me tell you everything \pause\textbf{about embedding exercises}. +\end{frame} + +\section{Examples} + +\subsection{without a sheet environment} + + \begin{frame} + \begin{block}{} + Since our exercises are already in a dedicated subsection,\pause + we do not need an extra sheet environment. + \end{block} + \end{frame} + + \includeexercise*[imp]{exshexample-ex1} + \includeLexercise*[vi]{exshexample-ex2} + +\subsection{with a sheet environment} + +\begin{sheet}[note={The exercises are within a separated sheet + environment.}] + \includeexercise*[imp,solutions]{exshexample-ex1} +\end{sheet} + +\begingroup +\def\sheetfancy[#1]#2{\textcolor{red}{#2}}%nope, nothing happens +\exshset{sheet sectioning cmd=\sheetfancy} + +\begin{sheet}[note={This sheet header looks exactly like the first one, because \texttt{sheet sectioning cmd} is only used for +non-beamer documents.}] + \includeLexercise*[imp,solutions]{exshexample-ex2} +\end{sheet} +\endgroup + + +\end{document} + + |
