I'm writing a file in LaTeX2e with TeXshop in which I'd like some paragraphs where all lines of a paragraph after the first line are intended (as with dictionary entries). I found out about the hanging package -- such paragraph are called hanging paragraphs, which I hadn't known before -- and tried to use it. Alas, I got a "Fatal error" message.
Eventually I determined the problem is that the hanging package chokes if there is an apostrophe in math mode, such as you would find in $f'(x)$. I isolated the problem in the following short file:
\documentclass[11pt]{amsart}
\usepackage{hanging}
\begin{document}
$f'(x)$
\end{document}
That is the whole file. When I try to compile this, I get the following error message:
! TeX capacity exceeded, sorry [input stack size=5000].
'->\futurelet
\next \h@ngrqtest
l.7 $f'(
x)$
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
Can anyone tell me how to fix this problem?
I looked online to see if someone else wrote about this, and all I found was something from 2010 at http://handyfloss.wordpress.com/2006/11/30/tex-capacity-exceeded-error/, where in reply 13 Joshua Sasmor reports he found this problem. But no solution that permits usage of the hanging package was forthcoming.