[texhax] \tableofcontents and section numbering
Jan Eden
lists at jan-eden.de
Mon Dec 1 09:40:09 CET 2003
Sorry, misspelled:
\addcontentsline{file}{sec_unit}{entry}
The \addcontentsline command adds an entry to the specified list or table where...
file is the extension of the file on which information is to be written: toc (table of contents), lof (list of figures), or lot (list of tables).
sec_unit controls the formatting of the entry. It should be one of the following, depending upon the value of the file argument:
1. toc - the name of the sectional unit, such as part or subsection.
2. lof - figure
3. lot - table
entry is the text of the entry.
Forgot the "s" in the command and the obligatory arguments.
Best,
Jan
Jan Eden wrote:
>Hi,
>
>\section*{Whatever}
>\addcontentline{Whatever}
>
>should work.
>
>Best,
>
>Jan
>
>Leonardo Giantini Trabuco wrote:
>
>>Dear list,
>>
>>When I use \section*{Whatever}, that section does not appear in
>>\tableofcontents, but I want it to be there. What can I do?
>>
>>I'm trying to do something like this
>>
>>\def\thesection{}
>>\section{Whatever}
>>
>>The only problem is that my section keeps the indentation. How can I set
>>the indentation to 0pt in this case?
>>
>>Thanks in advance,
>>Leo
>>
--
Hanlon's Razor: Never attribute to malice that which can be adequately explained by stupidity.
More information about the texhax
mailing list