From: José C. S. <jcs...@fc...> - 2008-10-29 09:32:02
|
On 29-10-2008 9:16, Sampo Karkola wrote: > Hi again, sorry to bother you again but I was too hasty in celebrating > the solution. Now I get all the sections under all chapters labeled as > Roman numerals. My original idea was to have only the sections > describing the articles under the chapter Results to be numbered as > Romans, and other sections under other chapters should have arabic > chapter and section numbers. > > Any advice on this? \documentclass[a4paper,12pt]{book} \newcounter{art} \newcommand\article[1]{\par\bigskip\stepcounter{art} \noindent{\Large\textbf{#1} (\Roman{art})}\par} \begin{document} \chapter{Intro} \chapter{Results} \article{First article} \label{sec:first} \article{Second article} \section{An ordinary section} Here I want to refer to the first article \ref{sec:first}. \end{document} This is far from perfect. I hope that someone else will provide a better solution. Of course, that would happen *much* faster if you were posting your problem at the comp.text.tex newsgroup instead. Best regards, Jose Carlos Santos |