cislovani obrazku a rovnic
Tomas Davidek
Tomas.Davidek at cern.ch
Tue Apr 9 14:21:33 CEST 2002
On Tue, 9 Apr 2002, Klimes Marek wrote:
> Zdravim,
> potrebuji zmenit cislovani obrazku, tabulek a rovnic tak, aby cisla
> obsahovala i cislo aktualni kapitoly (napr. Obr. 2.1: ...) Muzete mi
> prosim nekdo poradit jak na to ???
Zdravicko,
nenapsal jste jestli v TeXu ci LaTeXu, pro LaTeX vam muzu poradit. Bud
se podivate jak je to udelane ve stylu report (tam se to tak chova),
zjistil byste ze takto:
\@addtoreset {equation}{chapter}
\renewcommand\theequation
{\ifnum \c at chapter>\z@ \thechapter.\fi \@arabic\c at equation}
\newcounter{figure}[chapter]
\renewcommand \thefigure
{\ifnum \c at chapter>\z@ \thechapter.\fi \@arabic\c at figure}
Nebo si to muzete udelat takhle:
\renewcommand\theequation{\arabic{chapter}.\arabic{equation}}
\renewcommand\thefigure{\arabic{chapter}.\arabic{figure}}
\renewcommand\thetable{\arabic{chapter}.\arabic{table}}
\newcommand{\kap}[1]{\chapter{#1} \setcounter{equation}{0}
\setcounter{figure}{0} \setcounter{table}{0}}
Pokud to chcete delat ve stylu article, jednoduse zamenite chapter za
section....
Zdravi
Tomas
E-mail : Tomas.Davidek at cern.ch,
davidek at ipnp.troja.mff.cuni.cz
More information about the csTeX
mailing list