diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamerswitch')
-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}{% |