Text FormattingHow to make TOC -AFTER- Abstract and Dedication?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

How to make TOC -AFTER- Abstract and Dedication?

Post by ahmedsalahais »

I'm trying to learn LaTeX, however, I'm not able to make the TOC right after the Abstract and Dedication. Wherever i put the command \tableofcontents (even just before \end{document}), still the TOC appears BEFORE Abstract and Dedication.

What do i have to do?
P.S: i Want to use that command so i do not have to enter the TOC manualy item by item.

Thanks in advance,
Last edited by ahmedsalahais on Sun Mar 20, 2011 4:03 pm, edited 1 time 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to make TOC -AFTER- Abstract and Dedication?

Post by Stefan Kottwitz »

Hi ahmedsalahais,

welcome to the board!

The TOC should appear where you put the \tableofcontents command. Perhaps you did not remove it at a place before the abstract?
You could create and post a minimal working example to show us the situation.

Stefan
LaTeX.org admin
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

How to make TOC -AFTER- Abstract and Dedication?

Post by ahmedsalahais »

First of all, thanks Stefan.
Now i tried to make the minimal working example ... here's my code:

Code: Select all

\documentclass{book}

\begin{document}

\chapter{Abstract}
Any thing

\tableofcontents
\end{document}
This resulted in 3 pages. The first is TOC, the second is empty due to the lack of option 'openany', and the third is Chapter 1 Abstract.

Now I'm puzzled ... by the way i'm using Scientific Workplace 5.5 if it may make difference.

Thank you ...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to make TOC -AFTER- Abstract and Dedication?

Post by Stefan Kottwitz »

Perhaps Scientific Workplace makes a difference, but when I run LaTeX, I get

- 1st page abstract
- 2nd page empty
- 3rd page table of contents.

So, regarding LaTeX it's alright.

Stefan
LaTeX.org admin
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Re: How to make TOC -AFTER- Abstract and Dedication?

Post by ahmedsalahais »

That's good news ...
So please can you tell me what is your LaTeX dustribution and editor of choice? i know these things are personal choices mostly, but as you can see ... SW5.5 made a difference
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Re: How to make TOC -AFTER- Abstract and Dedication?

Post by ahmedsalahais »

Hmm ...
I tried MikTex 2.9 and it is working fine now. It seems to be TrueTex problem

Anyway, i appreciate your great help.
Thank you.
Post Reply