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

with tagging loaded optional arg of amsthm cannot contain brackets #759

Open
mbertucci47 opened this issue Nov 12, 2024 · 0 comments
Open
Labels
analyse something that needs further checking and perhaps code changes area: theorems and similar structures

Comments

@mbertucci47
Copy link
Contributor

The usual thing to do is place the argument in braces but that doesn't work with the tagging code.

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid}
  }
\documentclass{article}

\usepackage{amsthm}

\newtheorem{theorem}{Theorem}

\begin{document}

\begin{theorem}[{\cite[abc]{dihe:newdir}}]
text
\end{theorem}

\begin{thebibliography}{9}
\bibitem{dihe:newdir}
W.~Diffie and E.~Hellman, \emph{New directions in cryptography}, IEEE
Transactions on Information Theory \textbf{22} (1976), no.~5, 644--654.
\end{thebibliography}

\end{document}

errors with

! Argument of \@citex@checkblank has an extra }.

It works with two pairs of braces though.

\begin{theorem}[{{\cite[abc]{dihe:newdir}}}]

So I'm guessing somewhere in the code a pair of braces should be added.

@FrankMittelbach FrankMittelbach added analyse something that needs further checking and perhaps code changes area: theorems and similar structures labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyse something that needs further checking and perhaps code changes area: theorems and similar structures
Projects
None yet
Development

No branches or pull requests

2 participants