Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
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. –  Qrrbrbirlbel Nov 17 '12 at 16:02
    
I'm not sure if it's what you want, but you can try /frontmatter. –  maria Nov 17 '12 at 16:04
3  
after you put \chapter*{Intro} and afetr \addcontentsline{toc}{section}{Intro} –  maria Nov 17 '12 at 16:11
    
yeah now it worked...thanks maria –  Mazzy Nov 17 '12 at 16:19
1  
@maria Please, can you provide a minimal, but complete, code as an answer? –  egreg Nov 18 '12 at 20:48

2 Answers 2

up vote 1 down vote accepted
\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;

share|improve this answer
3  
Why not \addsec{Introduction} that avoids the need to use \addcontentsline? –  egreg Nov 18 '12 at 23:28

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}
share|improve this answer
    
In the frontmatter, you may simply use \chapter{Intro} (the non-starred version), as \frontmatter switches off chapter numbering. –  lockstep Nov 19 '12 at 15:53
    
@lockstep when I use non-starred version, there is two "Intro" lines in TOC. –  maria Nov 19 '12 at 15:56
    
Of course, you should remove \addcontentsline{toc}{section}{Intro}. –  lockstep Nov 19 '12 at 15:57
    
@lockstep Of course :) –  maria Nov 19 '12 at 16:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.