TeXShopHow to?: addcontentsline without page number

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Post Reply
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

How to?: addcontentsline without page number

Post by fja »

Well, that's what I want. I need a line in TOC, but without its page number.

I'm using:

Code: Select all

\documentclass[letterpaper,12pt,oneside]{book}…
\begin{document}…
\tableofcontents…
\addcontentsline{toc}{chapter}{ANEXOS:}
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to?: addcontentsline without page number

Post by frabjous »

\addtocontents{toc}{\contentsline {chapter}{\numberline {}ANEXOS:}{}}

instead of \addcontentsline{...} might do the trick, but depending on why you want to do this, can I suggest looking at the tocloft package for a lot more things you can do with your Table of Contents?
Last edited by frabjous on Wed Jan 06, 2010 6:52 pm, edited 1 time in total.
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

Re: How to?: addcontentsline without page number

Post by fja »

Ok, thank you. It works! ;)
Post Reply