diff options
author | Karl Berry <karl@freefriends.org> | 2019-06-07 21:07:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-06-07 21:07:25 +0000 |
commit | 01c5863069156c826b8b5c15312db454a51c2264 (patch) | |
tree | 803ccdac833569d0409e99070d5abdff8ba86bb9 /Master/texmf-dist/tex | |
parent | 7505e4e41b8f39a1b0869f6296bf66490f572a35 (diff) |
beamerswitch (7jun19)
git-svn-id: svn://tug.org/texlive/trunk@51341 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls b/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls index 150b22391cf..5caee0e9d24 100644 --- a/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls +++ b/Master/texmf-dist/tex/latex/beamerswitch/beamerswitch.cls @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{beamerswitch} - [2019/01/28 v1.5 Convenient mode selection in Beamer documents] + [2019/06/06 v1.6 Convenient mode selection in Beamer documents] \RequirePackage{xkeyval,xkvltxp,etoolbox,xstring,shellesc,iftex} \define@boolkey[DC]{beamerswitch}{beamer}[true]{% \ifbool{DC@beamerswitch@beamer}{% @@ -88,16 +88,22 @@ }% }% } -\IfEndWith*{\jobname}{\BeamerSuffix}{% +\IfBeginWith*{\jobname}{"}{% + \IfEndWith*{\jobname}{"}{% + \StrGobbleLeft{\jobname}{1}[\JobName]% + \StrGobbleRight{\JobName}{1}[\JobName]% + }{\let\JobName\jobname}% +}{\let\JobName\jobname} +\IfEndWith*{\JobName}{\BeamerSuffix}{% \setkeys[DC]{beamerswitch}{beamer=true} }{% - \IfEndWith*{\jobname}{\TransSuffix}{% + \IfEndWith*{\JobName}{\TransSuffix}{% \setkeys[DC]{beamerswitch}{trans=true} }{% - \IfEndWith*{\jobname}{\HandoutSuffix}{% + \IfEndWith*{\JobName}{\HandoutSuffix}{% \setkeys[DC]{beamerswitch}{handout=true} }{% - \IfEndWith*{\jobname}{\ArticleSuffix}{% + \IfEndWith*{\JobName}{\ArticleSuffix}{% \setkeys[DC]{beamerswitch}{article=true} }{% \ifbool{DC@beamerswitch@alsobeamer}{% |