GeneralTable of content problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Table of content problem

Post by Kaspars »

Code: Select all

Hello, here is my program:
\documentclass[12pt,a4paper,flqno]{article}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}

\usepackage{appendix}
\setotherlanguages{english}
\usepackage{graphicx}
\usepackage{amsmath}

\begin{document}
\tableofcontents
\begin{abstract}
\end{abstract}

\section{introduction}
text
\section{first section}
text
\section{second section}
text
\section{third section}
text
\appendix
\section{First appendix}
\section{Second appendix}
\end{document}
At the end, in my TOC I get this:
1. Introduction 1
2. First section 1
3. Second section 1
4. third section 1

But I want to get:
Introduction 1
1. First section 1
2. Second section 1
3. third section 1

Please help me...
Thanks :)
Last edited by Kaspars on Thu Feb 24, 2011 10:58 am, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table of content problem

Post by localghost »

At first, there is no document class option called »flqno« (see log file). There are only fleqn or leqno as math related options. And please check your example for functionality and minimal content. Your code is not compilable due to the missing bibliography database file. And a bibliography is not related to the problem.

Regarding the actual problem, you need a starred version of the concerned section to suppress its number. Afterwards put it manually into the ToC.

Code: Select all

\section*{Introduction}
\addcontentsline{toc}{section}{Introduction}

Thorsten
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Table of content problem

Post by Kaspars »

The problem is in numbering. I want a section - Introduction, but I don't want to number it, so the section numbering start with First Section, like I showed here:

My TOC:
1. Introduction 1
2. First section 1
3. Second section 1
4. third section 1

But I want to get:
___Introduction 1
1. First section 1
2. Second section 1
3. third section 1
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Re: Table of content problem

Post by Kaspars »

Thanks, it works :)
Post Reply