Article View: trl
Article #1Fancy figure numbering in LaTeX
From: Soh Kam Hung
Date: Wed, 18 Nov 1992 00:52
Date: Wed, 18 Nov 1992 00:52
27 lines
1580 bytes
1580 bytes
I want figures in my document to have the section number preceeding the
figure number. The counter for the figure number should be reset at
the start of each section.
My solution at the moment is this:
\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}
At the beginning of each section, I have to reset the figure number:
\setcounter{figure}{0}
\section{blah blah blah}
I have tried the following commands, but the figure number seems to be
always reset by the \subsection command. I think the \subsection
command uses the \thesection command to generate its numbers.
\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}
\renewcommand{\thesection}{\arabic{section}\setcounter{figure}{0}}
Please email your solutions, and I will summarise and post them if
there is enough interest.
Thanks,
Soh Kam Hung, Network Management Research, | h.soh@trl.oz.au
TRL, POB 249 Clayton, Victoria 3168, Australia | +61 3 253 6638
Technical Details
Message-ID:
<1992Nov18.005229.8459@trl.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!chx400!Sirius.dfn.de!news.belwue.de!math.fu-berlin.de!informatik.tu-muenchen.de!regent!monu1.cc.monash.edu.au!monu6!bruce.cs.monash.edu.au!munnari.oz.au!titan!tmp_ip_003!sohShow Full Headers
Complete Article Headers
Newsgroups: trl,aus.tex Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!chx400!Sirius.dfn.de!news.belwue.de!math.fu-berlin.de!informatik.tu-muenchen.de!regent!monu1.cc.monash.edu.au!monu6!bruce.cs.monash.edu.au!munnari.oz.au!titan!tmp_ip_003!soh From: soh@tmp_ip_003.trl.OZ.AU (Soh Kam Hung) Subject: Fancy figure numbering in LaTeX Message-ID: <1992Nov18.005229.8459@trl.oz.au> Summary: How to do it well? Keywords: latex figure Sender: root@trl.oz.au (System PRIVILEGED Account) Organization: Telecom Research Labs, Melbourne, Australia Distribution: aus Date: Wed, 18 Nov 1992 00:52:29 GMT Lines: 27