[OS X TeX] "\mathit allowed only in math mode" error while writing .idx

Murray Eisenberg murrayeisenberg at gmail.com
Mon Feb 10 19:35:52 CET 2020

I’m looking for any possible clues in trying to track down the error with pdflatex

  \mathit allowed only in math mode

encountered while latexmk is writing .idx.

This is occurring, in the first instance with .ind entry

	\item \idxmark{Urysohn Metrization Theorem}, \hyperpage{506}, 

The function \mainref is defined as:


But the error occurs even if I change \mainref to: \newcommand{\mainref}[1]{#1}

The document’s .ist file includes

	item_0  "\n\\item \\idxmark{"
   	delim_0 "}, "

where \idxmark is defined in my preamble by:


If I comment out the \index entries for that “Urysohn Metrization Theorem”, then the same error occurs for other entries.

I APOLOGIZE for not providing a complete, minimal working example for reproducing the error, but I think some clue might help me devise such. The document in question is of book length, with a complex source structure that includes several style files constituting the preamble.

NOTE: This error did not occur a week or two ago, despite no change to my preamble. So I think something has changed in some latex package to cause this.

Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20200210/ae1ea005/attachment.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list.