diff options
| author | Frank Fuhlbrück | 2022-01-28 18:53:11 +0100 |
|---|---|---|
| committer | Frank Fuhlbrück | 2022-01-28 18:53:11 +0100 |
| commit | deada505e9173fcc10c61b211de976af52c3b906 (patch) | |
| tree | 2ee3e7479ac81570026861c2fb305517636ed108 | |
| parent | 03a9bcf6b5547d565d000b9d1ce0f5feb9614cc7 (diff) | |
| download | exercisesheets-deada505e9173fcc10c61b211de976af52c3b906.tar.gz exercisesheets-deada505e9173fcc10c61b211de976af52c3b906.tar.bz2 exercisesheets-deada505e9173fcc10c61b211de976af52c3b906.zip | |
don't do sheet page actions for skipped sheets
| -rw-r--r-- | exercisesheets.sty | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty index 9406beb..3eb8d9f 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -585,7 +585,7 @@ \newcounter{sheetid}% only used to disambiguate hyperref labels \newenvironment{sheet}[1][]{% \pgfkeys{exsh,every sheet,#1}% - \pgfkeysvalueof{/exsh/sheet start page action}% +% \pgfkeysvalueof{/exsh/sheet start page action}% \stepcounter{sheetid}% \ifthenelse{\equal{}{\pgfkeysvalueof{/exsh/title}}}{% \numdef\exsh@tmp{\value{part}+1}% @@ -615,7 +615,9 @@ \par \begingroup \ifnum\value{page}=1\thispagestyle{empty}\fi - \pgfkeysvalueof{/exsh/sheet end page action}% + \ifexsh@isinrange + \pgfkeysvalueof{/exsh/sheet end page action}% + \fi \endgroup \ifexsh@exnumsheet \setcounter{section}{\exsh@exnumstore}% @@ -737,6 +739,7 @@ %%%%%%%%%%%%%%% BEGIN BEAMER-SPECIFIC: %%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifexsh@beamer \def\exsh@sheethead{% + \pgfkeysvalueof{/exsh/sheet start page action}% \pgfkeysgetvalue{/exsh/title}{\exsh@tmp}% \ifexsh@solutions \expandafter\edef\expandafter\exsh@tmp{\expandonce\exsh@tmp:\noexpand~\pgfkeysvalueof{/exsh/strings/solutions}}% @@ -780,6 +783,7 @@ } \else%--------- NON-BEAMER: --------------------------------------- \def\exsh@sheethead{% + \pgfkeysvalueof{/exsh/sheet start page action}% \pgfkeysgetvalue{/exsh/title}{\exsh@tmp}% \ifexsh@solutions \expandafter\edef\expandafter\exsh@tmp{\expandonce\exsh@tmp:\noexpand~\pgfkeysvalueof{/exsh/strings/solutions}}% |
