diff options
| author | Frank Fuhlbrück | 2022-09-02 15:49:59 +0200 |
|---|---|---|
| committer | Frank Fuhlbrück | 2022-09-02 15:49:59 +0200 |
| commit | ac0109ddb2113aeb5d632117183cf3ae945d5402 (patch) | |
| tree | 9a2482cdb95ff1ff1f33b46279f73eda59466b0e | |
| parent | 988d1c5db5d01e9506672e0430a11b314bf6c525 (diff) | |
| download | exercisesheets-history.tar.gz exercisesheets-history.tar.bz2 exercisesheets-history.zip | |
beamer: footer off by default, new option to switch it onhistory
| -rw-r--r-- | exercisesheets.sty | 32 | ||||
| -rw-r--r-- | exercisesheets.tex | 8 |
2 files changed, 25 insertions, 15 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty index 9c8c502..1bd926c 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -18,8 +18,8 @@ %\NeedsTeXFormat{LaTeX2e}[1994/12/01] % don't forget to update the version and date in exercisesheets.tex -\def\exsh@version{0.11} -\def\exsh@date{2022/02/11} +\def\exsh@version{0.12} +\def\exsh@date{2022/09/02} \ProvidesPackage{exercisesheets}[\exsh@date\space\exsh@version\space Typesetting of exercise sheets] \message{`Typesetting of exercise sheets' \exsh@version\space <\exsh@date>} @@ -64,6 +64,7 @@ \ifexsh@beamer \newif\ifexsh@beamerwithheadline +\newif\ifexsh@beamerwithfootline \newif\ifexsh@beameruseblocks \newif\ifexsh@defersolutiontitle \newif\ifexsh@framed @@ -170,6 +171,8 @@ \pgfkeys{exsh, beamerwithheadline/.is if=exsh@beamerwithheadline, beamerwithheadline/.default=true, + beamerwithfootline/.is if=exsh@beamerwithfootline, + beamerwithfootline/.default=true, beameruseblocks/.is if=exsh@beameruseblocks, beameruseblocks/.default=true, beamersolution/.is if=exsh@beamersolution, @@ -182,6 +185,7 @@ fragile/.default=true, beamersolution/.initial={false}, beamerwithheadline/.initial={false}, + beamerwithfootline/.initial={false}, beameruseblocks/.initial={false}, defersolutiontitle/.initial={false}, framed/.initial={false}, @@ -190,6 +194,8 @@ \pgfkeys{exsh, beamerwithheadline/.default={ignore}, beamerwithheadline/.initial={ignore}, + beamerwithfootline/.default={ignore}, + beamerwithfootline/.initial={ignore}, beamersolution/.default={ignore}, beamersolution/.initial={ignore}, defersolutiontitle/.default={ignore}, @@ -1639,16 +1645,18 @@ \setbeamertemplate{footline} {% - \leavevmode% - \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{frametitle}% - {\pgfkeysvalueof{/exsh/author font}\pgfkeysvalueof{/exsh/exauthor}} - \end{beamercolorbox}% - \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}% - \usebeamerfont{author in head/foot} - \inserttitle - \hfill\insertpagenumber - \end{beamercolorbox}}% - \vskip0pt% + \ifbool{exsh@beamerwithfootline}{% + \leavevmode% + \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{frametitle}% + {\pgfkeysvalueof{/exsh/author font}\pgfkeysvalueof{/exsh/exauthor}} + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}% + \usebeamerfont{author in head/foot} + \inserttitle + \hfill\insertpagenumber + \end{beamercolorbox}}% + \vskip0pt% + }{}% } \fi %%%%%%%%%%%%%%% END BEAMER-ONLY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/exercisesheets.tex b/exercisesheets.tex index ea02e92..914650b 100644 --- a/exercisesheets.tex +++ b/exercisesheets.tex @@ -53,7 +53,7 @@ \usepackage[english,iso]{isodate} \title{The \exsh Package} \author{Sebastian Kuhnert\and Frank Fuhlbrück} -\date{Version 0.11, \printdateTeX{2022/02/11}} +\date{Version 0.12, \printdateTeX{2022/09/02}} \begin{document} \maketitle @@ -307,6 +307,8 @@ The following \param{options} are supported: sheet head. By default, the value passed to \verb|\date| is used. \item[\option{beamerwithheadline\opt{=\param{true/false}}}] Controls whether a headline with author, subject etc. is shown on beamer slides, similar to the regular sheets. This options is off by default as headlines (and footers) take a considerable amount off space. + \item[\option{beamerwithfootline\opt{=\param{true/false}}}] + The same for the footer. \item[\option{beameruseblocks\opt{=\param{true/false}}}] Controls whether the exercise title is shown inside a beamer block (\param{true}) or a simple colorbox @@ -488,7 +490,7 @@ the exercise number seems superfluous. Furthermore, for usage in indices etc. yo \verb|\subexlref| are designed for. However, both of them still require an ordinary label, which is not allowed in exercises loaded with \verb|\loadexercise*|. -For this purpose \verb|\locallabel| can be used which is just a +For this purpose \verb|\inexlabel| can be used which is just a normal label that is not redefined to produce an error. Furthermore, we define a counter \verb|subex| (which is currently just an alias for enumi, but this might change). You can @@ -498,7 +500,7 @@ use this counter (alias) with common commands like \begin{lstlisting} \begin{exercise} \begin{enumerate} - \item \locallabel{subex:xisseven} Let $x_{\thesubex}=7$. + \item \inexlabel{subex:xisseven} Let $x_{\thesubex}=7$. \item Compute $x_{\subexnref{subex:xisseven}}+3$. \begin{solution} From \subexlref{subex:xisseven} %(a) |
