latex2e icon indicating copy to clipboard operation
latex2e copied to clipboard

"Unused global option" warning occurs

Open h20y6m opened this issue 4 years ago • 7 comments

Brief outline of the bug

If the class file loads expl3.sty before \ProcessOptions, specifying dvipdfmx as a global option will give the following warning:

LaTeX Warning: Unused global option(s):
    [dvipdfmx].

But dvipdfmx option was used by expl3.sty (l3backend-dvipdfmx.def was loaded).

Minimal example showing the bug

\RequirePackage{latexbug}
\begin{filecontents}[overwrite]{some-expl-class.cls}
\RequirePackage{expl3}
\ProcessOptions
\def\normalsize{}
\end{filecontents}
\documentclass[dvipdfmx]{some-expl-class}
\begin{document}
\end{document}

Log file (required) and possibly PDF file

unused-global-option.log

h20y6m avatar Sep 23 '21 10:09 h20y6m

it is not specific to expl3. Every global option that is "used" before \ProcessOptions is readded to the unused option list there.

u-fischer avatar Oct 16 '21 22:10 u-fischer

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Jan 03 '22 20:01 stale[bot]

This has been the behavior since beginning of LaTeX2e, which means it is not a good idea to alter it now for compatibility reasons (people may have worked around it). But we should make sure that the new key/val mechanism does better. @josephwright could you take a look at that and if it does, close this one as resolved?

FrankMittelbach avatar Jun 10 '22 12:06 FrankMittelbach

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Aug 13 '22 04:08 stale[bot]