Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

And how to make them show as roman numerals in TOC?

share|improve this question

2 Answers 2

up vote 12 down vote accepted

Change the representation of the corresponding counter (section, in this case) by adding to the preamble:

\renewcommand\thesection{\Roman{section}}

EDIT: this redefinition will probably require increasing the space allowed for typesetting section numbers in the ToC; this can be done, for example, with the help of the tocloft package by adding the following lines to the preamble:

\usepackage{tocloft} 
\setlength{\cftsecnumwidth}{1.5cm}
share|improve this answer
    
and how to set space between roman numeral and item name in TOC and in general for sections? –  Kabumbus May 10 '11 at 16:17
2  
Well, you can make \thesection do anything you want, so \renewcommand\thesection{\Roman{section}\quad} would throw a quad space in. However, if you are realy getting into section styling, it is better to use a package like titlesec or a document class like memoir that really gives you fine control over such things. –  Sharpie May 10 '11 at 16:25
    
quad helps in main article but does not help in \tableofcontents =( –  Kabumbus May 10 '11 at 16:29
1  
@Kabumbus: using the tocloft package you can add to the preamble: \usepackage{tocloft} and \addtolength{\cftsecnumwidth}{1cm} –  Gonzalo Medina May 10 '11 at 16:33
4  
@Sharpie: Never define \thesection with a \quad. Euqation numbers, cross reference whould also use \thesection. –  Leo Liu May 10 '11 at 16:36

It depends on your packages. Maybe you are loading tocstyle or tocloft. Normally you can redefine l@section. See also \@dottedtocline.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.