Mandatory keys for \DocumentMetadata
Ulrike Fischer
news3 at nililand.de
Wed Feb 19 16:41:53 CET 2025
Am Wed, 19 Feb 2025 14:15:16 +0100 schrieb Bruno Voisin via
tex-live:
> This works, but testing TL 2025 I'm now getting a warning
>
> LaTeX DocumentMetadata Warning: The language has not been set in
> (DocumentMetadata) \DocumentMetadata.
> (DocumentMetadata) Setting it to 'en' as fallback.
>
> The warning is suppressed by writing
>
> \DocumentMetadata{lang=en}
>
> It's harmless, but the less warnings the better,
> so you can concentrate on actual errors in the TeX log.
>
> I did not find an explicit mention that \DocumentMetadata is expected to hold at least a lang setting, so that its absence triggers a warning.
>
>
> lang seems to be the only such "mandatory" key. Is this referenced somewhere in the LaTeX doc?
Well you only get a warning, so it is not mandatory. ;-)
The main reason that is a warning is that I would like to see more
packages to pick up the main language from the MetaData, but that
will only happen if user actually start to set the main language
there.
See also
https://tex.stackexchange.com/questions/720459
But the warning is under discussion and perhaps it will disappear
again (at least if it is "en").
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the tex-live
mailing list.