[latex3-commits] [latex3/latex2e] UF-latex-lab-math-options: add version test (a29554b25)
github at latex-project.org
github at latex-project.org
Sun Oct 27 16:52:22 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : UF-latex-lab-math-options
Link : https://github.com/latex3/latex2e/commit/a29554b2560b3b892349784f88c120c4bfbcb665
>---------------------------------------------------------------
commit a29554b2560b3b892349784f88c120c4bfbcb665
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Oct 27 16:52:22 2024 +0100
add version test
>---------------------------------------------------------------
a29554b2560b3b892349784f88c120c4bfbcb665
required/latex-lab/latex-lab-math.dtx | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 7ef505dd7..4a1249ebe 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -1165,8 +1165,13 @@
\bool_gset_true:N \g_@@_luamml_write_bool
% \end{macrocode}
% \end{variable}
-
+%
% \begin{macrocode}
+\msg_new:nnn { tag }{ PDF-2.0-recommended }
+ {
+ The~key~#1~will~not~work~properly~with~PDF~#2.\\
+ Switching~to~PDF~2.0~is~recommended.
+ }
\keys_define:nn { __tag / setup }
{
% \end{macrocode}
@@ -1182,7 +1187,14 @@
% be issued in the preamble as luamml is not yet loaded.
% \begin{macrocode}
math/mathml/structelem .code:n =
- {\AddToHook{begindocument/end}{\luamml_structelem:}},
+ {
+ \pdf_version_compare:NnT < {2.0}
+ {
+ \msg_warning:nnne { tag }{ PDF-2.0-recommended }
+ { math/mathml/structelem }{ \pdf_version: }
+ }
+ \AddToHook{begindocument/end}{\luamml_structelem:}
+ },
% \end{macrocode}
% and a key to call the ignore flag. This should only be used locally.
% \begin{macrocode}
More information about the latex3-commits
mailing list.