Vysazeni prikladu, cviceni

Zdenek Wagner wagner at cesnet.cz
Fri Jan 13 17:40:05 CET 2006


On Fri, 13 Jan 2006 lukas.vondr at tiscali.cz wrote:

> Projel jsem uz 4 manualy a nikde nenasel, jak mam vysazet priklady..
> Myslim tim
> text text text
> text text text
> Priklad 2.1: Vypoctete bla bla bla
>
> Jde mi o to, jak vysazet Priklad 2.1, aby se to samo cislovalo podle
> kapitol/sekci
>
> Predem dekuji vsem za radu
>
Musite si udelat vlastni citac pomoci
\newcounter{priklad}{chapter}
Pak si definujete jeho vzhled pomoci:
\newcommand\thepriklad{P\v{r}\'{\i}klad \thechapter.\arabic{priklad}}

V makru, ktere tiskne prislusny text, napisete:
\refstepcounter{priklad}\thepliklad

Pokud se ma cislovat od 1 unvitr \section, pak misto chapter a \thechapter
pouzijete section a \thesection.

Zdenek Wagner
e-mail: wagner at cesnet.cz

see also http://hroch486.icpf.cas.cz/wagner/
         http://icebearsoft.euweb.cz




More information about the csTeX mailing list