diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-running-nos.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-running-nos.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-running-nos.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-running-nos.html index a043d02e8aa..1a47dabf32b 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-running-nos.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-running-nos.html @@ -4,7 +4,7 @@ <h3>Running equation, figure and table numbering</h3> <p>Many LaTeX classes (including the standard <i>book</i> class) number things per chapter; so figures in chapter 1 are numbered 1.1, -1.2, and so on. Sometimes this is not appropriate for the user's +1.2, and so on. Sometimes this is not appropriate for the user’s needs. <p>Short of rewriting the whole class, one may use one of the <i>removefr</i> and <i>remreset</i> packages; both define a @@ -14,16 +14,18 @@ writes something like: <pre> \makeatletter \@removefromreset{figure}{chapter} +\makeatother </pre> -</blockquote> -and the automatic renumbering stops. You then need to redefine the +</blockquote><p> +and the automatic renumbering stops. You may then need to redefine the way in which the figure number (in this case) is printed: <blockquote> <pre> +\makeatletter \renewcommand{\thefigure}{\@arabic\c@figure} \makeatother </pre> -</blockquote> +</blockquote><p> (remember to do the whole job, for every counter you want to manipulate, within <code>\</code><code>makeatletter</code> ... <code>\</code><code>makeatother</code>). <p>The technique may also be used to change where in a multilevel @@ -32,12 +34,14 @@ structure a counter is reset. Suppose your class numbers figures as numbered per chapter, try: <blockquote> <pre> +\makeatletter \@removefromreset{figure}{section} \@addtoreset{figure}{chapter} \renewcommand{\thefigure}{\thechapter.\@arabic\c@figure} +\makeatother </pre> -</blockquote> +</blockquote><p> (the command <code>\</code><code>@addtoreset</code> is a part of LaTeX itself). <p>The <i>chngcntr</i> package provides a simple means to access the two sorts of changes discussed, defining <code>\</code><code>counterwithin</code> and @@ -47,7 +51,7 @@ these functions. <dt><tt><i>chngcntr.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/chngcntr.sty">macros/latex/contrib/misc/chngcntr.sty</a> <dt><tt><i>memoir.cls</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse</a>) <dt><tt><i>removefr.tex</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/fragments/removefr.tex">macros/latex/contrib/fragments/removefr.tex</a> (note, this is constructed as a - "fragment" for use within other packages: load by + “fragment” for use within other packages: load by <code>\</code><code>input{removefr}</code>) <dt><tt><i>remreset.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/carlisle.zip">macros/latex/contrib/carlisle</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/carlisle.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/carlisle/">browse</a>) </dl> |