When I try to use this:
Code: Select all
\addtocontents{toc}{\contentsline{chapter}{APPENDICES}{}}
Code: Select all
\addtocontents{toc}{\contentsline{chapter}{APPENDICES}{}}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Perhaps tell us at least the first error message.saimike wrote:I get a lot of errors. What am I doing wrong here?
! Missing \endcsname inserted.
<to be read again>
\noindent
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
! Argument of \@secondoftwo has an extra }.
<inserted text>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?
! Paragraph ended before \@secondoftwo was complete.
<to be read again>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
! Argument of \@newcommand has an extra }.
<inserted text>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?
\fi \hangafter \def \noindent
! Paragraph ended before \@newcommand was complete.
<to be read again>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
! Argument of \@xargdef has an extra }.
<inserted text>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?
0]\hangafter \def \noindent
! Paragraph ended before \@xargdef was complete.
<to be read again>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
! Missing \endcsname inserted.
<to be read again>
\noindent
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
! Argument of \@secondoftwo has an extra }.
<inserted text>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?
! Paragraph ended before \@secondoftwo was complete.
<to be read again>
\par
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
! Illegal parameter number in definition of \reserved@a.
<to be read again>
\hangafter
l.62 ...toc}{\contentsline{chapter}{APPENDICES}{}}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
Code: Select all
\addcontentsline{toc}{chapter}{APPENDICES}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p