Replies: 5 comments 3 replies
-
To add more context for this problem: In the RStudio console log, I see this output from the first two XeLaTeX passes to compile and resolve cross references -- it produces
But then it runs
This is when the error occurs, and the end of the console log tells me that only 7 pages were produced.
|
Beta Was this translation helpful? Give feedback.
-
Without digging fully into the issue, there are a couple of things I notice in krantz.cls: lines 1015 and 1016 appear to be conditionals. Have you confirmed that these conditionals are satisfied? \newif\if@break
\newif\if@firstauthor
\newcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\contentsname
% ... |
Beta Was this translation helpful? Give feedback.
-
From #13497, I can confidently say that the issue is from
Now, you need to look at the tex file as suggested by Carlos, to strip further down what from krantz and partials/templates (https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/pdf/pandoc) is the source of the conflict |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for follow up on this. My version of
|
Beta Was this translation helpful? Give feedback.
-
SUCCESS! It also solves the workflow issue I had in #13497 Thank you so very much for taking the time to track this down. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
My book, Visualizing Multivariate Data and Models in R is nearly done, but I've run into a serious, and mysterious problem in producing the PDF version. That is, the XeLaTeX compilation terminates with the error
Undefined control sequence: \tableofcontents
with this text in the console log:\tableofcontents
IS defined in thekrantz.cls
class file (lines 1017-1034), which is what my publisher wants. I have no idea where this! Undefined control sequence
comes from.Curiously, the output file,
index.pdf
from this pass does contain the table of contents, but nothing further is produced in this attempt to build viaRender book
.To track this down, I open the resulting
index.tex
file, generated by Quarto in TeXStudio,In this file, I see the following, generated by Quarto:
TeXStudio flags
\tableofcontents
as an error, but I've set this up to usenonstopmode
, which causes it to ignore this. I have to do another pass in TexStudio to build the book index (Tools -> Index), but then I get a usable. complete PDF.Can someone here help me solve this mystery and relieve me of some misery?
I'm not suggesting that this necessarily a Quarto problem, but there is nothing I can see in my files that would cause
\tableofcontents
to become undefined. If anyone is brave enough, you can look at theindex.tex
that I'm working with.Beta Was this translation helpful? Give feedback.
All reactions