diff options
Diffstat (limited to 'macros/latex/contrib/tuda-ci/tex/tudabeamer.cls')
-rw-r--r-- | macros/latex/contrib/tuda-ci/tex/tudabeamer.cls | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/macros/latex/contrib/tuda-ci/tex/tudabeamer.cls b/macros/latex/contrib/tuda-ci/tex/tudabeamer.cls index 96489f31ee..a6e20362da 100644 --- a/macros/latex/contrib/tuda-ci/tex/tudabeamer.cls +++ b/macros/latex/contrib/tuda-ci/tex/tudabeamer.cls @@ -1,4 +1,4 @@ -%% This is file `tudabeamer.cls' version 3.16 (2021/06/03), +%% This is file `tudabeamer.cls' version 3.17 (2021/07/27), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.16} -\def\filedate{2021/06/03} +\def\fileversion{3.17} +\def\filedate{2021/07/27} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{tudabeamer} [\filedate\space\fileversion\space] @@ -113,8 +113,33 @@ \ExplSyntaxOn \bool_if:NT \g_ptxcd_pdfa_bool { \UnPreventPackageFromLoading{hyperref} - \PassOptionsToPackage{a-2b}{pdfx} - \RequirePackage{pdfx} + %only apply the hack if pdfx is older than the working version + \@ifpackagelater{pdfx}{2021/07/06}{ + \PassOptionsToPackage{a-2b}{pdfx} + \RequirePackage{pdfx} + } { + \msg_new:nnnn{tudapub} {dirty-hack-pdfa} { + I~have~to~use~a~dirty~hack~to~workaround~some~incompatibilites~between~your~LaTeX~version~and~the~pdfa-mode.\\ + Please~use~pdfa=true~only~if~you~really~need~it.\\ + We~will~remove~this~hack~as~soon~as~all~incompatibilities~have~been~patched. + } { + See~the~corresponding~GitHub~Issue~for~more~information:~https://github.com/tudace/tuda_latex_templates/issues/321 + } + \msg_warning:nn {tudapub} {dirty-hack-pdfa} + %check if \par is expanable and add a dirty hack + %Thanks to Ross Moore for the support + \expandafter\ifx\csname tex_par:D\endcsname \relax + \let\pdfx@par\par + \else + \expandafter\let\expandafter\pdfx@par\csname tex_par:D\endcsname + \fi + \let\orig@par\par + \let\par\pdfx@par + \PassOptionsToPackage{a-2b}{pdfx} + \RequirePackage{pdfx} + %restore\par + \let\par\orig@par + } } \hypersetup{hidelinks, unicode} |