Skip to content

Commit

Permalink
add support for a-4f and a4-e
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Mar 26, 2024
1 parent c107b0d commit 7557969
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
3 changes: 3 additions & 0 deletions required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-03-23 Ulrike Fischer <Ulrike.Fischer@latex-project.org>
* documentmetadata-support.dtx: keys for A4-E and A4-F

2024-03-23 Yukai Chou <muzimuzhi@gmail.com>

* latex-lab-float.dtx (subsection{Patching}):
Expand Down
33 changes: 29 additions & 4 deletions required/latex-lab/documentmetadata-support.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
% for those people who are interested or want to report an issue.
%
% \begin{macrocode}
\def\documentmetadatasupportversion{1.0g}
\def\documentmetadatasupportdate{2024-02-15}
\def\documentmetadatasupportversion{1.0h}
\def\documentmetadatasupportdate{2024-03-26}
% \end{macrocode}
%
%
Expand Down Expand Up @@ -125,7 +125,8 @@
% e.g., \texttt{lang=de-DE}. If not given the default value used is |en-US|.
%
% \item[\texttt{pdfstandard}] Choice key to set the pdf standard.
% Currently |A-1b|, |A-2a|, |A-2b|, |A-2u|, |A-3a|, |A-3b|, |A-3u| and |A-4| are accepted as
% Currently |A-1b|, |A-2a|, |A-2b|, |A-2u|, |A-3a|, |A-3b|, |A-3u|, |A-4|, |A-4E|
% and |A-4F| are accepted as
% values. The casing is irrelevant, |a-1b| works too.
% Note that using these
% key doesn't mean that the document actually follows the standard. \LaTeX{}
Expand Down Expand Up @@ -421,7 +422,7 @@
% this uses internal command from pdfmeta, it should probably move there ...
,pdfstandard .code:n =
{
\exp_args:Nnx
\exp_args:Nne
\keys_set:nn {document / metadata} {_pdfstandard=\str_uppercase:n{#1}}
}
,_pdfstandard .choices:nn =
Expand All @@ -433,6 +434,30 @@
}
\AddToDocumentProperties [document]{pdfstandard}{#1}
}
,_pdfstandard / A-4F .code:n =
{
\prop_if_exist:cTF { g__pdfmeta_standard_pdf/A-4F_prop }
{
\prop_gset_eq:Nc \g__pdfmeta_standard_prop { g__pdfmeta_standard_pdf/A-4F_prop }
}
{
\prop_gset_eq:Nc \g__pdfmeta_standard_prop { g__pdfmeta_standard_pdf/A-4_prop }
\prop_gput:Nnn \g__pdfmeta_standard_prop{conformance}{F}
}
\AddToDocumentProperties [document]{pdfstandard}{A-4F}
}
,_pdfstandard / A-4E .code:n =
{
\prop_if_exist:cTF { g__pdfmeta_standard_pdf/A-4E_prop }
{
\prop_gset_eq:Nc \g__pdfmeta_standard_prop { g__pdfmeta_standard_pdf/A-4E_prop }
}
{
\prop_gset_eq:Nc \g__pdfmeta_standard_prop { g__pdfmeta_standard_pdf/A-4_prop }
\prop_gput:Nnn \g__pdfmeta_standard_prop{conformance}{E}
}
\AddToDocumentProperties [document]{pdfstandard}{A-4E}
}
,_pdfstandard / unknown .code:n =
{
\msg_warning:nnn{pdf}{unknown-standard}{#1}
Expand Down

0 comments on commit 7557969

Please sign in to comment.