diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-28 03:00:58 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-28 03:00:58 +0000 |
commit | f083b031d6785bf31f4b35408aca161e81b935f6 (patch) | |
tree | 71d21510e1f9fc17dd58aae5c45fab30c65c4ea0 /macros/latex/contrib/tuda-ci/tex/tudaletter.cls | |
parent | cef58753eba8ad7e2071195dbd92454febe82d32 (diff) |
CTAN sync 202107280300
Diffstat (limited to 'macros/latex/contrib/tuda-ci/tex/tudaletter.cls')
-rw-r--r-- | macros/latex/contrib/tuda-ci/tex/tudaletter.cls | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/macros/latex/contrib/tuda-ci/tex/tudaletter.cls b/macros/latex/contrib/tuda-ci/tex/tudaletter.cls index 14b3dec695..00678b431d 100644 --- a/macros/latex/contrib/tuda-ci/tex/tudaletter.cls +++ b/macros/latex/contrib/tuda-ci/tex/tudaletter.cls @@ -1,4 +1,4 @@ -%% This is file `tudaletter.cls' version 3.16 (2021/06/03), +%% This is file `tudaletter.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} \RequirePackage{expl3} \ProvidesExplClass{tudaletter} @@ -428,8 +428,33 @@ %pdfa \if_bool:N \g_ptxcd_pdfa_bool -\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 +} %%hyperref \hypersetup{hidelinks, unicode} \iow_new:N \ptxcd_xmpdata_stream |