diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-06-15 11:12:37 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-06-15 11:12:37 +0200 |
commit | 07419b23985092a34d0108903ece44b570168e43 (patch) | |
tree | 710c06cb587a85053b21f33f85727efb0109b95f | |
parent | c488606c8a6d7bec46cbd497a39ea48a615da57c (diff) |
set DocumentMetadata; set copyright flag; add trailing newline
-rw-r--r-- | _extensions/js/stylish-issue/doc-class.tex | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/_extensions/js/stylish-issue/doc-class.tex b/_extensions/js/stylish-issue/doc-class.tex index a7ad74d..a9dbfaa 100644 --- a/_extensions/js/stylish-issue/doc-class.tex +++ b/_extensions/js/stylish-issue/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[ $for(babel-otherlangs)$ $babel-otherlangs$, @@ -14,4 +65,4 @@ $endif$ $for(classoption)$ $classoption$$sep$, $endfor$ -]{$documentclass$}
\ No newline at end of file +]{$documentclass$} |