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

ntheorem package incompatible #688

Open
mbertucci47 opened this issue Aug 28, 2024 · 0 comments
Open

ntheorem package incompatible #688

mbertucci47 opened this issue Aug 28, 2024 · 0 comments
Labels
area: theorems and similar structures currently incompatible package or class package or class that doesn't work with current version of tagging code

Comments

@mbertucci47
Copy link
Contributor

Not an exhaustive list:

  • \newtheorem is overwritten and theorems are tagged like lists
  • \listtheorems is not tagged as a TOC
  • If hyperref is not loaded, the destination name appears in the \listtheorems.
  • If hyperref is loaded, \listtheorems produces parent-child warnings.
  • The thmmarks option redefines many important environments so breaks tagging.
\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,title,math,table,firstaid}
  }
\documentclass{article}

\usepackage{amsmath}
\usepackage[
  amsmath,
  thref,
  hyperref, % parent-child warnings
  thmmarks % parent-child warnings; redefines a lot of envs
  ]{ntheorem}
\usepackage{hyperref} % see above

\title{ntheorem tagging test}

\newtheorem{theorem}{Theorem}

\theoremstyle{plain}
\theoremsymbol{\ensuremath{\clubsuit}}
\theoremseparator{.}
\theoremprework{\bigskip\hrule}
\theorempostwork{\hrule\bigskip}
\newtheorem{definition}{Definition}

\begin{document}

\listtheorems{theorem} % output is wrong

\begin{theorem}\label{thm}
Some text
\end{theorem}

\begin{theorem}[A heading]
Some more text
\end{theorem}

\ref{thm}

\thref{thm}

\begin{definition}
Some text
\end{definition}

\end{document}
@davidcarlisle davidcarlisle added the currently incompatible package or class package or class that doesn't work with current version of tagging code label Aug 28, 2024
@FrankMittelbach FrankMittelbach added the area: theorems and similar structures label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: theorems and similar structures currently incompatible package or class package or class that doesn't work with current version of tagging code
Projects
None yet
Development

No branches or pull requests

3 participants