LyX ⇒ Add Front Matter to TOC (Table of Contents) in a Thesis
Add Front Matter to TOC (Table of Contents) in a Thesis
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
Re: Add Front Matter to TOC (Table of Contents) in a Thesis
Add Front Matter to TOC (Table of Contents) in a Thesis
Add Front Matter to TOC (Table of Contents) in a Thesis
Can you provide an example. I have been playing with this command for the last 5 minutes and can get a new entry but I can't get it to say, for example,frabjous wrote:Try the \addcontentsline command.
List of Tables______________________ v
Add Front Matter to TOC (Table of Contents) in a Thesis
I also keep getting this error.frabjous wrote:Try the \addcontentsline command.
LaTeX Error: Something's wrong--perhaps a missing \item.
Description:
... {chapter}{\numberline {1}Introduction }{1}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Add Front Matter to TOC (Table of Contents) in a Thesis
However, perhaps the sample document below will provide some guidance.
Code: Select all
\documentclass{report}
\usepackage[english]{babel}
\usepackage{blindtext} % for auto-generating text
%
\title{The Color Spectrum}
\author{Roy G. Biv}
\date{\today}
%
\begin{document}
\renewcommand{\thepage}{\roman{page}}
%
\maketitle
%
\clearpage
\addcontentsline{toc}{chapter}{Acknowledgements}
\chapter*{Acknowledgements}
Thanks Mom!
%
\clearpage
\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents
%
\clearpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
%
\clearpage
\addcontentsline{toc}{chapter}{Preface}
\chapter*{Preface}
This document is silly.
%
\clearpage
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
\chapter{First Real Chapter}
\blindmathpaper % auto-generates text
This chapter ends with a figure.
\begin{figure}
A figure.
\caption{A figure.}
\end{figure}
%
\chapter{Second Real Chapter}
This chapter begins with a figure.
\begin{figure}
Another figure.
\caption{Another figure.}
\end{figure}
\blindmathpaper % more auto-generated text
%
\end{document}
Add Front Matter to TOC (Table of Contents) in a Thesis
Code: Select all
\begin{document}
\begin{doublespace}
\title{An Investigation and Application of the Finite Difference Time Domain
Method as a Tool for Solving Equalization Problems in Acoustics\\
~\\
by\\
Ryan J. Matheson}
\end{doublespace}
\date{A thesis\\
presented to the University of Waterloo\\
in fulfillment of the\\
thesis requirement for the degree of\\
Master of Science\\
in Physics\\
~\\
Waterloo, Ontario, Canada, 2010\\
~\\
© Ryan J. Matheson 2010}
\maketitle
\setcounter{page}{2}
I hereby declare that I am the sole author of this thesis. This is
a true copy of the thesis, including any required final revisions,
as accepted by my examiners. I understand that my thesis may be made
electronically available to the public.
\chapter*{{\large Abstract}}
This thesis investigates the issues in deriving the Finite Difference
Time Domain Method, including the derivation of a unique method for
exciting an FDTD system that is physically realistic in terms of acoustics.
It is also the goal of this thesis to use the FDTD method as a tool
for investigating various speaker placement configurations for use
in bass equalization. A demerit function is then developed in order
to assess how well a particular equalization method performs relative
to any others.
\chapter*{{\large Acknowledgements}}
I would like to thank my advisor John Vanderkooy and co-advisor Stanly
Lipshitz for taking me under their wings and guiding me through the
incredible field that is Acoustics. I would like to thank my collegue
and friend Scott Mallais who worked with me throughout this masters
thesis. I also would like to thank William Lewis for his invaluable
advice that lead to the optimization of the FDTD code in MATLAB.
\chapter*{{\large Dedication}}
I would like to dedicate this thesis to my entire family for always
being there for me on the sidelines cheering me on, picking me up
when I've been knocked down, and giving me a swift kick in the ass
when I needed it.
\addcontentsline{toc}{lof}{list of figures} <--my attempt that doesn't work
\tableofcontents{}
\listoffigures
\listoftables
frabjous wrote:It would probably make more sense for you to provide sample code that generates problems for you. I can't diagnose what's going wrong without seeing that.
However, perhaps the sample document below will provide some guidance.
Code: Select all
\documentclass{report} \usepackage[english]{babel} \usepackage{blindtext} % for auto-generating text % \title{The Color Spectrum} \author{Roy G. Biv} \date{\today} % \begin{document} \renewcommand{\thepage}{\roman{page}} % \maketitle % \clearpage \addcontentsline{toc}{chapter}{Acknowledgements} \chapter*{Acknowledgements} Thanks Mom! % \clearpage \addcontentsline{toc}{chapter}{Table of Contents} \tableofcontents % \clearpage \addcontentsline{toc}{chapter}{List of Figures} \listoffigures % \clearpage \addcontentsline{toc}{chapter}{Preface} \chapter*{Preface} This document is silly. % \clearpage \setcounter{page}{1} \renewcommand{\thepage}{\arabic{page}} \chapter{First Real Chapter} \blindmathpaper % auto-generates text This chapter ends with a figure. \begin{figure} A figure. \caption{A figure.} \end{figure} % \chapter{Second Real Chapter} This chapter begins with a figure. \begin{figure} Another figure. \caption{Another figure.} \end{figure} \blindmathpaper % more auto-generated text % \end{document}
Re: Add Front Matter to TOC (Table of Contents) in a Thesis
\addcontentsline{toc}{lof}{list of figures}
to
\addcontentsline{toc}{chapter}{List of Figures}
and it needs to go on the same page as the List of Figures, which is easiest to do by placing it right after a \clearpage command and right before the \listoffigures command.
If this can't be done by editing the code directly in Lyx, then I don't know how to do it. I've never used LyX.
Re: Add Front Matter to TOC (Table of Contents) in a Thesis
Add Front Matter to TOC (Table of Contents) in a Thesis
One issue is that in the code I sent you you will notice that there are no \clearpage linesfrabjous wrote:Oops, I didn't notice this was the LyX subforum. (I have to start paying attention to that.) I don't know anything about Lyx. If it allows you to mark-up the LaTeX yourself, you just need to change:
\addcontentsline{toc}{lof}{list of figures}
to
\addcontentsline{toc}{chapter}{List of Figures}
and it needs to go on the same page as the List of Figures, which is easiest to do by placing it right after a \clearpage command and right before the \listoffigures command.
If this can't be done by editing the code directly in Lyx, then I don't know how to do it. I've never used LyX.