<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am trying to compile a book. There is no problem on the first pass. On the second I get an error on line 2 of the .toc file (which is generated by the usual \tableofcontents macro). The error message is totally unhelpful (perhaps a missing \item). The
first three lines of the .toc file are <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>\contentsline {chapter}{Preface}{v}{section*.1}<br>
</span>
<div>\contentsline {section}{\numberline {1}Definition of category}{1}{section.1}<br>
</div>
<div>\contentsline {subsection}{\numberline {1.1}Some constructions for categories}{2}{subsection.1.1}<br>
</div>
<span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and the error is on line 2. If I change the first occurrence of "section" to "subsection", that error goes away and then there is an error line 10 which is the toc entry for section 2.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What is going on? What likes "chapter" and "subsection", but not "section"? I am using TeXLive 2016 under Win-10.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Michael<br>
</div>
</body>
</html>