KAPITOLA-jak dostat pryc z hlavicky ?

Jaromir Kuben kuben at scova.vabo.cz
Tue Apr 17 08:44:10 CEST 2001



"Zdenek Wagner - Ustav chem.procesu AV" píše:
> 
> On Fri, 13 Apr 2001, Karel Krebs wrote:
> 
> > Dobrý den,
> >
> >   Pouzil jsem tedy styl z CSTANu anonchap.sty.
> >   Muhu si ted nastavil jenoduchym zpusobem jak
> >   ma vypadat Chapter, ale to co jsem chtel zmenit,
> >   tj. format hlavicky, zustalo ve starem formatu:
> >
> >   KAPITOLA 1. MERENI
> >   __________________________________
> >
> >
> >   Ja chci:
> >   1. Mereni
> >   __________________________________
> >
> >
> >   Ma-li nekdo nejaky napad budu za nej vdecny.
> >
> Nahlednete do Zpravodaju (http://bulletin.cstug.cz) do meho serialu
> LaTeXova kucharka. Jeden dil se zabyva formatovanim nadpisu kapitol.
> 
> >
> > --
> > S pozdravem,
> >  Karel
> >  karel.krebs.fei at vsb.cz
> >
> >
> 
> Zdenek Wagner
> e-mail: wagner at mbox.cesnet.cz  or  wagner at icpf.cas.cz
> 
> see also http://www.icpf.cas.cz/wagner/
>          http://members.xoom.com/z_wagner/


Pokud jde o hlavicku, melo by fungovat toto:

\documentclass[twoside]{report}
\usepackage{czech}
\usepackage{fancyhdr}

\evensidemargin0pt\oddsidemargin0pt\topmargin0pt

\pagestyle{fancy}

\makeatletter
\def\chaptermark#1{%
      \markboth {\thechapter\ #1}{}}
\def\sectionmark#1{%
      \markright {%
        \ifnum \c at secnumdepth >\z@
          \thesection \ %
        \fi
        #1}}
\makeatother

\begin{document}
\fancyhf{}
\fancyhead[RO,LE]{\bfseries\thepage}
\fancyhead[LO]{\slshape\rightmark}
\fancyhead[RE]{\slshape\leftmark}
\renewcommand{\headrulewidth}{.4pt}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyhead[RO,LE]{\bfseries\thepage}%
\renewcommand{\headrulewidth}{.4pt}}

\chapter{Pokus}
\section{Jedna}
Text.\newpage

Text.\newpage

Text.\newpage

Text.\newpage

\end{document}

Zdravi
         Jaromir Kuben




More information about the csTeX mailing list