diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-02-11 13:39:21 +0100 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-02-11 22:18:37 +0100 |
| commit | 57edc96daf3f418c64f3f1287edf0ffec51381ca (patch) | |
| tree | f2428b1477081aaf2d54a0b7565c09f35b203b6a /_extensions | |
| parent | 1acab21917d60b84ce04f07648562d4ccea47b4b (diff) | |
support LaTeX \DocumentMetadata to enable Tagged PDF/A
Diffstat (limited to '_extensions')
| -rw-r--r-- | _extensions/ruc-play/stylish-report/doc-class.tex | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/_extensions/ruc-play/stylish-report/doc-class.tex b/_extensions/ruc-play/stylish-report/doc-class.tex index 34eaffa..8eff486 100644 --- a/_extensions/ruc-play/stylish-report/doc-class.tex +++ b/_extensions/ruc-play/stylish-report/doc-class.tex @@ -1,3 +1,54 @@ +\DocumentMetadata{ +% modern PDF rendering: <https://tex.stackexchange.com/a/686905/309738> +$if(lang)$ + lang={$lang$}, +$endif$ +$if(pdfversion)$ + pdfversion=$pdfversion$, +$endif$ +$for(pdfstandard)$ + pdfstandard=$pdfstandard$, +$endfor$ +$if(pdftestphase)$ +testphase= + { +$for(pdftestphase)$ + $pdftestphase$, +$endfor$ + }, +$endif$ +$if(pdfdebug)$ +debug= + { +$for(pdfdebug)$ + $pdfdebug$, +$endfor$ + }, +$endif$ +$if(pdfdebugfirstaidoff)$ +debug= + { +firstaidoff= + { +$for(pdfdebugfirstaidoff)$ + $pdfdebugfirstaidoff$, +$endfor$ + }, + }, +$endif$ +} +$if(copyright)$ +% flag as rights protected <https://tex.stackexchange.com/a/712443/309738> +\ExplSyntaxOn +\pdfmeta_xmp_add:n{<xmpRights:Marked>True</xmpRights:Marked>} +\ExplSyntaxOff +$endif$ +$if(pdftestphasestrict)$ +% fatalize tagging warnings +\ExplSyntaxOn + \msg_redirect_module:nnn { tag } { warning } { error } +\ExplSyntaxOff +$endif$ \documentclass[ $if(fontsize)$ $fontsize$, @@ -20,4 +71,4 @@ $endif$ $for(classoption)$ $classoption$$sep$, $endfor$ -]{$documentclass$}
\ No newline at end of file +]{$documentclass$} |
