I believe it is correct to add the abstract to my TOC but I don't know how. This Answer talking about adding the abstract chapter to the TOC. I'm using Lyx and if I output to .tex file this is what I see.
\documentclass[english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{babel}
\makeatother
\usepackage{babel}
\begin{document}
\title{My Title}
\author{My Name}
\maketitle
\tableofcontents{}
\begin{abstract} %% This isn't a chapter!
My Abstract isn't a chapter.
Abstract is created with begin{abstract}
unlike in questions I LINKED to and have been marked as a duplicate. In that example abstract is a chapter.
Does this affect the correct use of getting my Abstract into the TOC?
Assuming that the abstract and acknowledgement contents is typeset using a \chapter*{…},
Well it isn't, So what do I do in my case?
Best Answer
Within
report
, theabstract
environment is set using within atitlepage
, which defaults to putting the content on its own page. So you have to insert the ToC-writing piece using some patching (supported viaetoolbox
).I've written the ToC-entry as a
chapter
, just so the formatting seems consistentHowever, that can be changed to whatever you like.
Another way would be to write the ToC-entry within the
abstract
environment - this ensures that it falls on the same page as the Abstract: