Skip to content

restate key with no name leads to (,) in restated title #41

@mbertucci47

Description

@mbertucci47

If restate is given to a theorem with no name key, then the restated theorem has (,) in the title. If a name is given, then there is no issue.

\documentclass{article}
\usepackage{amsthm,thmtools,kantlipsum}

\declaretheorem{theorem}

\begin{document}

\begin{theorem}[restate=foo]
\kant[1][2]
\end{theorem}

\foo*

\begin{theorem}[restate=foobar,name=Heading]
\kant[2][1]
\end{theorem}

\foobar*

\end{document}

document-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions