GeneralAdd unnumbered Sections to ToC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
perobce
Posts: 2
Joined: Tue Mar 06, 2012 11:08 am

Add unnumbered Sections to ToC

Post by perobce »

I have problem with creating table of contents. I have this code:

Code: Select all

documentclass[12pt,a4paper,fleqn]{article}
\usepackage[pdftex]{graphicx,color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{enumerate}
\usepackage[slovene]{babel}
\usepackage{mathtools}   
%
%
\begin{document}
\input{csz}
\author{?}
\title{Fire resistance of wooden elements}
\maketitle
\newpage
\tableofcontents

\newpage
\section{INTRODUCTION}
\section{DESIGNING PROCEDURES}
\subsection{Requirements}
\subsection{Methods of proof}
\subsection{Combination of the effects}
\section{SIMPLIFIED CALCULATION METHODS}
\subsection{Fire scenario}
\section*{Appendix A: PARAMETRIC FIRE EXPOSURE}
\section*{CASES}
\subsection*{CASE 1}
\subsection*{CASE 2}
\subsection*{CASE 3}
\end{document}
As we can see from the attachment, there aren't \section*{CASES},\subsection*{CASE 1},etc., included in the table of contents. I wonder what to so that this sections and subsections will be inculded in table of contents?
Attachments
Table of contents.jpg
Table of contents.jpg (27.81 KiB) Viewed 2730 times

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

Add unnumbered Sections to ToC

Post by localghost »

Add them subsequently to the ToC by inserting corresponding \addcontentsline commands right after the concerned headings. A search in the forum certainly will yield concrete solutions.


Thorsten
Post Reply