% Translation:
% 2006-08-26 Petr Tesarik
% 2006-11-09 Vit Zyka (check)
\startcomponent ma-cb-cz-heads
\project ma-cb
\product ma-cb-cz
\environment ma-cb-env-cz

%% \chapter[headers]{Headers}
\chapter[headers]{Nadpisy}

%% \index{headers}
\index{nadpisy}

\Command{\tex{chapter}}
\Command{\tex{paragraph}}
\Command{\tex{subparagraph}}
\Command{\tex{title}}
\Command{\tex{subject}}
\Command{\tex{subsubject}}
\Command{\tex{setuphead}}
\Command{\tex{setupheads}}

%% The structure of a document is determined by its headers.
%% Headers (heads) are created with the commands shown in
%% \in{table}[tab:headers]:
Struktura dokumentu je ur�ena nadpisy. Nadpisy (z�hlav�) se
vytv��ej� pomoc� povel� uveden�ch v \in{tabulce}[tab:nadpisy]:

%% \placetable[here][tab:headers]{Headers.}
%% \starttable[|l|l|]
%% \HL
%% \NC \bf Numbered header   \NC \bf Un-numbered header   \NC\SR
%% \HL
%% \NC \type{\chapter}       \NC \type{\title}           \NC\FR
%% \NC \type{\section}       \NC \type{\subject}         \NC\MR
%% \NC \type{\subsection}    \NC \type{\subsubject}      \NC\MR
%% \NC \type{\subsubsection} \NC \type{\subsubsubject}   \NC\MR
%% \NC $\cdots$              \NC $\cdots$                \NC\LR
%% \HL
%% \stoptable
\placetable[here][tab:nadpisy]{Nadpisy.}
\starttable[|l|l|]
\HL
\NC \bf ��slovan� nadpis  \NC \bf Ne��slovan� nadpis  \NC\SR
\HL
\NC \type{\chapter}       \NC \type{\title}           \NC\FR
\NC \type{\section}       \NC \type{\subject}         \NC\MR
\NC \type{\subsection}    \NC \type{\subsubject}      \NC\MR
\NC \type{\subsubsection} \NC \type{\subsubsubject}   \NC\MR
\NC $\cdots$              \NC $\cdots$                \NC\LR
\HL
\stoptable

\shortsetup{chapter}
\shortsetup{section}
\shortsetup{subsection}
\shortsetup{title}
\shortsetup{subject}
\shortsetup{subsubject}

%% These commands will produce a header in a
%% predefined fontsize and fonttype with some vertical
%% spacing before and after the header.
Tyto povely vytvo�� nadpis v p�edem dan� velikosti a
�ezu p�sma a p�idaj� vertik�ln� mezeru p�ed a za nadpis.

%% The heading commands can take several arguments, like in:
Povel�m pro nadpis je mo�n� zadat n�kolik parametr�, jako nap�.:

%% \starttyping
%% \title[hasselt-by-night]{Hasselt by night}
%% \stoptyping
%%
%% and
%%
%% \starttyping
%% \title{Hasselt by night}
%% \stoptyping
\starttyping
\title[hasselt-v-noci]{Hasselt v noci}
\stoptyping

a

\starttyping
\title{Hasselt v noci}
\stoptyping

%% The bracket pair is optional and used for internal
%% references. If you want to refer to this header you type for
%% example \type{\at{page}[hasselt-by-night]}.
Hranat� z�vorky jsou nepovinn� a pou��vaj� se pro odkazov�n�
uvnit� dokumentu. Pokud se chceme odk�zat na tento nadpis,
m��eme napsat nap�. \type{\at{str.}[hasselt-v-noci]}.

%% Of course these headers can be set to your own preferences
%% and you can even define your own headers. This is done by
%% the command \type{\setuphead} and \type{\definehead}.
Tyto nadpisy lze samoz�ejm� p�izp�sobit na�emu vkusu a daj�
se dokonce definovat vlastn� nadpisy. To se d�l� povelem
\type{\setuphead} a \type{\definehead}.

\doifmodeelse{bulletin} % !!! Typo
{
\shortsetup{definehead}
\shortsetup{setuphead}
}
{
\shortsetup{setuphead}
\shortsetup{definehead}
}

%% \startbuffer
%% \definehead
%%   [myheader]
%%   [section]

%% \setuphead
%%   [myheader]
%%   [numberstyle=bold,
%%    textstyle=bold,
%%    before=\hairline\blank,
%%    after=\nowhitespace\hairline]

%% \myheader[myhead]{Hasselt makes headlines}
%% \stopbuffer

%% \typebuffer

%% A new header \type{\myheader} is defined and it inherits the
%% properties of \type{\section}. It would look something
%% like this:

%% \getbuffer

\startbuffer
\definehead
  [mujnadpis]
  [section]

\setuphead
  [mujnadpis]
  [numberstyle=bold,
   textstyle=bold,
   before=\hairline\blank,
   after=\nowhitespace\hairline]

\mujnadpis[nadpis]{Hasselt m� velkou publicitu}
\stopbuffer

\typebuffer

T�m se definuje nov� typ nadpisu \type{\mujnadpis}, kter�
zd�d� vlastnosti \type{\section}. Vypadal by n�jak takto:

\getbuffer

%% There is one other command you should know now, and that is
%% \type{\setupheads}. You can use this command to set up the
%% numbering of the numbered headers. If you type:
Je�t� o~jednom povelu bysme m�li v�d�t, a~to o~\type{\setupheads}.
Pou��v� se k~nastaven� ��slov�n� pro ��slovan� nadpisy.
Pokud nap��eme:

\startbuffer
\setupheads
  [alternative=inmargin,
   separator=--]
\stopbuffer

\typebuffer

%% all numbers will appear in the margin. Section 1.1 would
%% look like 1--1.
pak se v�echna ��sla objev� na okraji. Sekce 1.1 by vypadala
jako 1--1.

%% Commands like \type{\setupheads} are typed in the
%% set up area of your input file.
Povely jako \type{\setupheads} se p��ou do deklara�n� oblasti
vstupn�ho souboru.

\shortsetup{setupheads}

\stopcomponent
