<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Earlier, I posted a question concerning index entries. &nbsp;The problem looks even more subtle than I first thought.<div><br></div><div>To recall,</div><div>In a book I am writing in latex (using makeindex to generate the index) I am running into a confusing anomaly.<div><br></div><div>The following macros are among those I have to generate index entries:</div><div>***********************************************************************************</div><div><div>\newcommand{\namerefindex}[4]{\index{#2, #1 (#3-#4)}}%prints name, date in index not text</div><div>\newcommand{\namerefsilent}[4]{#1\ &nbsp;#2\ (#3-#4)}%prints name, date in text not index</div></div><div><div>\newcommand{\nameref}[4]{#1\ &nbsp;#2\ (#3-#4)\namerefindex{#1}{#2}{#3}{#4}}%prints name, date in text&nbsp;</div></div><div><div>\newcommand{\namesubref}[5]{\index{#2, #1 (#3-#4)!#5}}%prints subentry in index</div><div>**************************************************************************************</div><div>(the usage is: \nameref{Firstname}{Lastname}{Birthdate}{Deathdate}</div><div>and in the subref, #5 is an index entry under the entry above.</div><div><br></div><div>Included in the same macro file are the following:</div><div>***********************************************************</div><div><div>\newcommand{\Descartesref}{\nameref{Ren\'e}{Descartes}{1596}{1650}}</div><div><div>\newcommand{\Fermatref}{\nameref{Pierre de}{Fermat}{1601}{1665}}</div><div>************************************************************************</div><div>and the following paragraph appears in my text:</div><div>****************************************************************</div><div><div>The idea of using a pair of numbers in this way to locate a point in the plane was pioneered in the early seventeenth cenury by \Fermatref{} and \Descartesref{}. &nbsp;By means of such a scheme, a plane curve can be identified with the \deffontcustom{locus}{locus!of equation} of points whose coordinates satisfy some equation; &nbsp;the study of curves by analysis of the corresponding equations, called \deffont{analytic geometry}, was initiated in the research of these two men. &nbsp;Actually, it is a bit of an anachronism to refer to rectangular coordinates as ``Cartesian'', since both Fermat and Descartes often used \deffontcustom{oblique coordinates}{Coordinate System!oblique}, in which the axes make an angle other than a right one.\footnote{We shall explore some of the differences between rectangular and oblique coordinates in \refer{ex}{oblique}.} &nbsp;Furthermore, Descartes in particular didn't really consider the meaning of negative values for the abcissa or ordinate.</div><div>*********************************************************************************************</div><div>Ignore the \deffontcustom and \refer commands; &nbsp;they involve totally different stuff.</div><div><br></div><div>When I run the full book text as described above, I get an error messages referring to the</div><div>paragraph quoted above:</div><div>********************************************************************************</div><div><div>LaTeX Warning: Reference `Pierre de' on page 2 undefined on input line 52.</div><div><br></div><div>! Missing \endcsname inserted.</div><div>&lt;to be read again>&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \unhbox&nbsp;</div><div>l.52 ...h cenury by \Fermatref{} and \Descartesref</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{}. &nbsp;By means of such a sc...</div><div><br></div><div>?&nbsp;</div><div>*************************************************************************************</div><div>When I replace \'e with e in the \Descartesref macro, I don't get the missing \encsname</div><div>error, but the printed text has, where the two references are, the following (I was unable to copy and paste off my pdf, so am retyping what I see; &nbsp;the stuff in [ ] is a description):</div><div>************************************************************************************</div></div></div><div>...century by ??Fermat16011665 and ??[\'e, printed properly]Descartes. By means...</div><div>**********************************************************************************</div><div>and neither entry appears in the index. &nbsp;</div><div><br></div><div><br></div><div>HOWEVER, when I isolate all of this in a test file, inserting the same paragraph there, and calling the same macros file,</div><div>everything works fine.</div><div><br></div><div>I am at a total loss as to what to even look for. &nbsp;Any suggestions would be much appreciated.</div></div></div></div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><br class="Apple-interchange-newline">Zbigniew Nitecki</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Department of Mathematics</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Tufts University</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medford, MA 02155</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">telephones:</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3843</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept.<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3234</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept. fax<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3966</font></p><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span> </div><br></div></body></html>