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

Murray Eisenberg murrayeisenberg at gmail.com
Mon Feb 10 18:14:36 EST 2020


For a while I thought I had traced the source of the error to what _was_ an unmatched “$” in:

\renewcommand{\indexname}{Index}
\renewcommand{\preindexhook}{%
\emph{%
For $d\text{\emph{-ball}}$,  $d\text{\emph{-bounded set}}$, $d\text{\emph{-open set}}$, $(d,\,d')\text{\emph{-continuous map}}$, etc., see the corresponding entry \emph{ball, bounded set, open set, continuous map,} etc.%
\vskip\onelineskip}%
}
\printindex

Alas, commenting that out still gives an error when writing the .idx, but now on an index SUBitem (new log file attached).

Here’s my complete .ist, to which the error is conceivably related.

% MakeIndex style file
% output main entry <entry> as: \item \idxmark{<entry>}, 
item_0  "\n\\item \\idxmark{"
delim_0 "}, "
% not forgetting the subitem case
item_x1 "} \n \\subitem "
headings_flag 1
heading_prefix "{\\medskip\\hfill\\large\\textsf{\\textbf{"
heading_suffix "}}\\hfill}\\medskip\\nopagebreak\n”

Recall from my original messge that \idxmark is defined by:

\newcommand{\idxmark}[1]{{\let\gobbleone\relax\markboth{\sffamily\bfseries#1}{\sffamily\bfseries#1}}#1}
\providecommand\gobbleone[1]{}

I did manually go through the entire ..ind file to see if I could find an unmatched “$” in entries there, but I did not. Can any wizard with regex knowledge check that, too? So I’ve also attached the .ind file.

Murray


> On 10 Feb2020, at 5:22 PM, Ross Moore <ross.moore at mq.edu.au> wrote:
> 
> Hi Murray and Herb,
> 
>> On 11 Feb 2020, at 8:17 am, Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
>> 
>>> On 10 Feb2020, at 4:02 PM, Herbert Schulz <herbs at wideopenwest.com <mailto:herbs at wideopenwest.com>> wrote:
>>>>> 
>>> 
>>> Howdy,
>>> 
>>> How about tge log file; maybe the error is really occurring before this.
>> 
>> Gladly…the log is attached — hope it’s not scrubbed..
>> 
>> (I forgot you’re a bottom-replier, not a top-replier!)
> 
> Personally, I prefer to be a middle-replier, mixing my comments with the statements made.
> And removing stuff that is not directly about what I’m replying to.
> (That’s already in the list archives, so doesn’t need to be repeated.)
> 
> I *am* interested in finding the cause of the particular error,
> in case it arises in my own work with other people’s source documents.
> 
>> 
>> Murray
>> 
>> 
>> 
>> ---
>> Murray Eisenberg murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>
>> 503 King Farm Blvd #101  Home (240)-246-7240
>> Rockville, MD 20850-6667  Mobile (413)-427-5334
>> 
>> 
>> <topologybook.log>
> 
> 
> 
> Cheers.
> 
> Ross
> 
> 
> Dr Ross Moore
> Department of Mathematics and Statistics 
> 12 Wally’s Walk, Level 7, Room 734
> Macquarie University, NSW 2109, Australia
> T: +61 2 9850 8955  |  F: +61 2 9850 8114
> M:+61 407 288 255  |  E: ross.moore at mq.edu.au <mailto:ross.moore at mq.edu.au>
> http://www.maths.mq.edu.au <http://www.maths.mq.edu.au/>
> <image001.png>
> CRICOS Provider Number 00002J. Think before you print. 
> Please consider the environment before printing this email.
> 
> This message is intended for the addressee named and may 
> contain confidential information. If you are not the intended 
> recipient, please delete it and notify the sender. Views expressed 
> in this message are those of the individual sender, and are not 
> necessarily the views of Macquarie University. <http://mq.edu.au/> <http://mq.edu.au/>
> ----------- 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
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

---
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://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200210/cd8d474a/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topologybook.log
Type: application/octet-stream
Size: 147456 bytes
Desc: not available
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200210/cd8d474a/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200210/cd8d474a/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topologybook.ind
Type: application/octet-stream
Size: 86431 bytes
Desc: not available
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200210/cd8d474a/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200210/cd8d474a/attachment-0005.htm>


More information about the MacOSX-TeX mailing list