diff options
| author | Sebastian Kuhnert | 2010-02-19 12:36:32 +0000 |
|---|---|---|
| committer | Sebastian Kuhnert | 2010-02-19 12:36:32 +0000 |
| commit | 7f2c4c60c9c9ad47c413032092373faebeba3d71 (patch) | |
| tree | 7ad8b4710a33eb1fef64fe1890a8e9b7e8c217ef | |
| parent | 21a0ff7218f5ce3e3bf9b2ce694fd684019829e6 (diff) | |
| download | exercisesheets-7f2c4c60c9c9ad47c413032092373faebeba3d71.tar.gz exercisesheets-7f2c4c60c9c9ad47c413032092373faebeba3d71.tar.bz2 exercisesheets-7f2c4c60c9c9ad47c413032092373faebeba3d71.zip | |
exercisesheets.sty: improve PDF title logic for single-sheet documents
| -rw-r--r-- | exercisesheets.sty | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty index 2a967c9..a3b4d6b 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -227,7 +227,16 @@ \exsh@isinrangefalse \exsh@singularrangetrue \pgfkeysgetvalue{/exsh/only}{\exsh@temp}% - \expandafter\exsh@range@parsestart\exsh@temp\exsh@range@end + \ifthenelse{\equal{-}{\exsh@temp}}{% + \exsh@isinrangetrue + \ifnumequal{\exsh@lastsheet}{1}{% + \exsh@singularrangetrue + }{% + \exsh@singularrangefalse + }% + }{% + \expandafter\exsh@range@parsestart\exsh@temp\exsh@range@end + }% } \def\exsh@range@parsestart#1{% \ifstrequal{#1}{,}{% |
