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.

I have some attachments in my document and I would like to number them with a roman style.

How can I do this?

I tried:

  \documentclass[12pt,a4paper,oneside]{book}
  \begin{document}

  \chapter*{Atachments}
  \renewcommand{\thesection}{\Roman{section}}
  \section{my section}

  \end{document}

EDIT Before the chapter* of attachments, I have an appendix with sections A.1, A.2, A.3.

So, the number of the first section of attachments is IV instead of I.

How can I correct this?

share|improve this question
3  
You have a missing brace at the end - {\Roman{section}} works. –  Harish Kumar Jan 13 '13 at 22:48
    
Does adding the missing brace after \Roman{section} help? –  egreg Jan 13 '13 at 22:49
    
@egreg Ops for the last brace. Anyway, I still have a problem. See my edit please. –  Ford Prefect Jan 13 '13 at 23:01
    
@FordPrefect The command \chapter* doesn't reset section; add also \setcounter{section}{0} –  egreg Jan 13 '13 at 23:13
add comment

closed as too localized by lockstep, Mico, Guido, Stefan Kottwitz Jan 13 '13 at 23:38

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 3 down vote accepted

You can use \setcounter{section}{0}:

  \documentclass[12pt,a4paper,oneside]{book}
  \begin{document}
  \appendix
  \chapter{One}
  \section{one}  
  \chapter*{Attachments}
  \setcounter{section}{0}
  \renewcommand{\thesection}{\Roman{section}}  
  \section{my section}
  %
  \end{document}

enter image description here

share|improve this answer
    
And probably write correctly "Attachments". ;-) –  egreg Jan 13 '13 at 23:13
    
@egreg OOps! Corrected. Thanks :-) –  Harish Kumar Jan 13 '13 at 23:15
add comment

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