[OS X TeX] Problem with Figure Numbering and Glossaries

Bruno Voisin bvoisin at mac.com
Fri May 28 18:45:31 CEST 2004


Le 28 mai 04, à 18:25, Lisa Schweitzer a écrit :

> I am still (!!!) trying to clean up my dissertation in the last seconds
> before filing it and I've noticed that TexShop is doing something 
> weird. In
> figure captions, it numbers the figure properly (Figure 1.1, 1.2, 1.3) 
> but
> in the reference in the text, the reference includes the separate 
> numbering
> for each section (so instead of the nice Figure 1.3, I get Figure 
> 1.7.1.
> Ick. I just want the figures numbered consecutively throughout the 
> chapter.

I cannot help with the other question, but for this one: there's a 
package remreset.sty allowing that sort of thing:

<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=running-nos>
/Library/teTeX/share/texmf.tetex/tex/latex/carlisle/remreset.sty

For example, I wrote a document in the report class and, to get figures 
and tables numbered consecutively throughout the report, independent 
from the chapter, used:

\usepackage{remreset}
\makeatletter
\@removefromreset{figure}{chapter}
\@removefromreset{table}{chapter}
\makeatother

Regarding the situation you describe, the above FAQ says:

"The technique may also be used to change where in a multilevel 
structure a counter is reset. Suppose your class numbers figures as 
<chapter>.<section>.<figure>, and you want figures numbered per 
chapter, try:

\@removefromreset{figure}{section}
\@addtoreset{figure}{chapter}
\renewcommand{\thefigure}{\thechapter.\@arabic\c at figure}

  (the command addtoreset is a part of LaTeX itself)."

> (yes, in case you are wondering, I am trying to do all manner of 
> cosmetic
> things to the dissertation so's that people don't notice it's 
> frightful wont
> of *content*).

Good luck!

Bruno Voisin
-----------------------------------------------------
Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the macostex-archives mailing list