cislovani obrazku a rovnic

Miroslav Fikar fikar at cvt.stuba.sk
Tue Apr 9 17:59:13 CEST 2002


Klimes Marek <xklime09 at stud.fee.vutbr.cz> writes:

> 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 ???
>
> Diky, Marek K.
>

Mam urobene pre styl book trojciselne cislovanie (rovnica 1.2.3):

\makeatletter
% trojcislove rovnice, tabulky, obrazky
\@addtoreset{equation}{section}
\def\theequation{\thesection.\arabic{equation}}
\@addtoreset{figure}{section}
\def\thefigure{\thesection.\arabic{figure}}
\@addtoreset{table}{section}
\def\thetable{\thesection.\arabic{table}}
\makeatother

Ale ako na to pozeram, tak v style article to bude robit
dvojciselne. Samozrejme ale v article nie su kapitoly (chapter), ale
len section.

M. Fikar

Priklad:

\documentclass{article}
\makeatletter
\@addtoreset{equation}{section}
\def\theequation{\thesection.\arabic{equation}}
\@addtoreset{figure}{section}
\def\thefigure{\thesection.\arabic{figure}}
\@addtoreset{table}{section}
\def\thetable{\thesection.\arabic{table}}
\makeatother

\begin{document}

\section{sss}

\begin{equation}
a=1
\end{equation}

\section{sss}

\begin{equation}
a=1
\end{equation}
\end{document}



--
mailto:fikar at cvt.stuba.sk   http://www.ka.chtf.stuba.sk/fikar/fikar.htm






More information about the csTeX mailing list