I switched from using the standard AMS theorem package to ntheorem
so I can put alternative end marks on theorem environments (I want my examples to have an end mark, but not the same one as proofs). However, this seems to be causing another problem.
Many of my examples have subtitles, by which I mean I start them with
\begin{example}[subtitle]
,
where the subtitle is some description of the example. Some of these subtitles are long enough that they need multiple lines, which works fine with the standard AMS environment. On the other hand ntheorem seems to try to set the subtitle all on one line, giving an overfull \hbox
whenever it is long enough that it should span multiple lines (I'm not talking a character or two wider than it knows how to deal with like a usual overfull \hbox
, I mean they go through the whole margin and off the page).
This can be reproduced by
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage[thmmarks,amsmath,amsthm,thref]{ntheorem}
\newtheorem{example}{Example}
\begin{document}
\begin{example}[blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah]
Content
\end{example}
\end{document}
Is this a bug in ntheorem
or am I doing something wrong? Perhaps this is an abuse of the subtitle field. Is there a simple fix?
qedhere
for suggested workarounds.ntheorem
.