When I try to use this:
Code: Select all
\addtocontents{toc}{\contentsline{chapter}{APPENDICES}{}}
Code: Select all
\addtocontents{toc}{\contentsline{chapter}{APPENDICES}{}}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis