Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options used but nevertheless reported as unused global option(s) #533

Open
cabohah opened this issue Jun 22, 2024 · 1 comment
Open

Options used but nevertheless reported as unused global option(s) #533

cabohah opened this issue Jun 22, 2024 · 1 comment

Comments

@cabohah
Copy link

cabohah commented Jun 22, 2024

acmart reports options as unused global options, even if they are used. For example

\documentclass[twocolumn]{acmart}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}

results in:

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

This also happens with key=value options:

\documentclass[sigconf,twocolumn,balance=true]{acmart}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}

results in

LaTeX Warning: Unused global option(s):
    [twocolumn,balance=true].

and additionally in

Package balance Warning: You have called \balance in second column
(balance)                Columns might not be balanced.

because the \balance in \AtEndDocument is too late, but maybe this second warning is intended.

The issue with false reporting of unused global options is IMHO because of using xkeyval. Maybe you could switch to LaTeX's key-value option handling to avoid it.

See also: Unused Balance Option Warnings in ACM Template.

@cabohah
Copy link
Author

cabohah commented Jun 22, 2024

Note: The issue with options to amsart can be fixed changing acmart.cls line 177:

\DeclareOptionX{*}{\PassOptionsToClass{\CurrentOption}{amsart}}

to

\DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{amsart}}

But the issue with key-value options is not influenced by this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant