0

I'm writing a thesis and I would create an intro that should go into table of contents. Any idea how to put it into table of contents?

this is my code

\thispagestyle{empty}
{\Huge \textbf{Intro}}

\bigskip

\bigskip

\lipsum[1]

EDIT

This is my table of contents

Table of Contents

Figures

Tables

Intro <- Here where I want put my intro

1 Chapter 1 1.1 section

4
  • At which level? \addcontentsline{toc}{<level>}{<text>} where <level> is part, chapter, … and <text> could be Intro. (Or just plain \chapter{Intro}?) This could also be something for an abstract environment or macro. Nov 17, 2012 at 16:02
  • I'm not sure if it's what you want, but you can try /frontmatter.
    – maria
    Nov 17, 2012 at 16:04
  • 3
    after you put \chapter*{Intro} and afetr \addcontentsline{toc}{section}{Intro}
    – maria
    Nov 17, 2012 at 16:11
  • 1
    @maria Please, can you provide a minimal, but complete, code as an answer?
    – egreg
    Nov 18, 2012 at 20:48

2 Answers 2

1
\documentclass{scrbook}

\begin{document}
\tableofcontents
\addcontentsline{toc}{section}{Introduction} % what looks better section or chapter?
\section*{Introduction} % * prevents the numbering. We already added it manually to toc above
\chapter{Theory}
\chapter{Experiment}
\end{document}

Example for Introduction

thanks to the comment I found a better solution in the book 2:

use one of the commands

\addpart[short]{long headline}
\addpart*{long headline}
\addchap[short]{long headline}
\addchap*{long headline}
\addsec[short]{long headline}
\addsec*{long headline}

Working example

\documentclass{scrbook}

\begin{document}
\tableofcontents

\addpart[Day 1]{Day one}
\addsec*{Introduction}
\addchap{Theory}
\addpart[Experiments]{Nice experiments}
\end{document}

Koma Script Page 115 in Kohm, Markus und Morawski, Jens-Uwe: KOMA-Script - Die Anleitung; DANTE e.V., Lehmanns Media, 4., erweiterte Aufl. 2012 592 Seiten (ISBN 978-3-86541-459-5;

1
  • 3
    Why not \addsec{Introduction} that avoids the need to use \addcontentsline?
    – egreg
    Nov 18, 2012 at 23:28
0

Well, there is the solution with \frontmatter command:

%& --translate-file=utf-8
\documentclass{book}
\usepackage[utf8]{inputenc}

\begin{document}

\frontmatter
\chapter*{Intro}
\addcontentsline{toc}{section}{Intro}

Some text 

\mainmatter

\chapter{FIRST}
 Some more text

\backmatter

\tableofcontents

\end{document}
4
  • In the frontmatter, you may simply use \chapter{Intro} (the non-starred version), as \frontmatter switches off chapter numbering.
    – lockstep
    Nov 19, 2012 at 15:53
  • @lockstep when I use non-starred version, there is two "Intro" lines in TOC.
    – maria
    Nov 19, 2012 at 15:56
  • Of course, you should remove \addcontentsline{toc}{section}{Intro}.
    – lockstep
    Nov 19, 2012 at 15:57
  • @lockstep Of course :)
    – maria
    Nov 19, 2012 at 16:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .