% Translation: busaj
% Checking:    2006-11-14 zyka
\startcomponent ma-cb-cz-references
\project ma-cb
\product ma-cb-cz
\environment ma-cb-env-cz

%\chapter{Refering to text elements}
\chapter{K���ov� odkazy}

%\index{refering}
%\index{label}
\index{k���ov� reference}
\index{reference}
\index{odkazov�n�}
\index{referen�n� jm�no}

\Command{\tex{in}}
\Command{\tex{at}}
\Command{\tex{pagereference}}

%For referring to one location in a document from another you
%can use the command:
Na vytvo�en� k���ov�ho odkazu z~jednoho m�sta dokumentu na druh�
pou�ijeme p��kaz:

\shortsetup{in}

%The curly braces contain text, the brackets contain a
%logical label. If you have written a chapter header like
%this:
Slo�en� z�vorky mohou obsahovat text, kter� m� b�t vys�zen p�ed
nebo za odkazem. To je v�hodn� pro zv�t�en� klikateln� oblasti
v~interaktivn�ch dokumentech. Hranat� z�vorky pak nesou referen�n�
jm�no. Kdy� nap��eme n�zev kapitoly n�sleduj�c�m zp�sobem

%\starttyping
%\chapter[hotel]{Hotels in Hasselt}
%\stoptyping
\starttyping
\chapter[hotel]{Hotely v~Hasseltu}
\stoptyping

% then you can refer to this chapter with:
tak se na tuto kapitolu m��eme odk�zat povelem

%\starttyping
%\in{chapter}[hotel]
%\stoptyping
\starttyping
v~\in{kapitole}[hotel]
\stoptyping

%After processing the chapter number is available and the
%reference could look something like: {\em chapter 23}.
%You can use \type{\in} for any references to text elements
%like chapters, sections, figures, tables, formulae
%etc.
Po zpracov�n� dostaneme ��slo kapitoly a~odkaz vypad� nap��klad takto:
{\em v~kapitole 23}. P��kaz \type{\in} m��eme pou��t s~referen�n�m
jm�nem libovoln�ho textov�ho prvku, nap��klad kapitoly, sekce,
obr�zku, ta\-bul\-ky, vzorce, apod. 

% Another example:
Dal�� p��klad:

%\startbuffer
% There are a number of things you can do in Hasselt:

%\startitemize[n,packed]
%\item swimming
%\item sailing
%\item[hiking] hiking
%\item biking
%\stopitemize

% Activities like \in{activity}[hiking] described on \at{page}[hiking]
% are very tiring.
%\stopbuffer

\startbuffer
V~Hasseltu m��eme d�lat spoustu v�c�:

\startitemize[n,packed]
\item plavat,
\item plachtit,
\item[tramp] trampovat,
\item jezdit na kole.
\stopitemize

\in{�innost}[tramp] popsan� na \at{stran�}[tramp] je velmi nam�hav�. 
\stopbuffer

\typebuffer

% This would look like this:
Bude to vypadat takto:

\getbuffer

% As you can see, it is also possible to  refer to pages. This is done with:
Jak m��eme vid�t, je tak� mo�n� vytvo�it odkaz na str�nku. To se d�l�
p��kazem:

\shortsetup{at}

% VZ: example is already shown above
% For example with:
%Nap��klad:

%\starttyping
%\at{page}[hiking]
%\stoptyping
%\starttyping
%na \at{stran�}[tramp]
%\stoptyping

% This command can be used in combination with:
Tento p��kaz lze kombinovat s~povely:

\shortsetup{pagereference}

% and
a

\shortsetup{textreference}

% If you want to refer to the chapter {\em Hotels in Hasselt}
% you could type:
Kdy� se chceme odk�zat na kapitolu {\em Hotely v~Hasseltu}, m��eme napsat:

%\startbuffer
%Look in \in{chapter}[hotel] on \at{page}[hotel] for a complete
%overview of accomodations in \pagereference[accomodation]Hasselt.
%\stopbuffer

\startbuffer
V~\in{kapitole}[hotel] na \at{stran�}[hotel] nalezneme �pln� p�ehled 
mo�nost� ubytov�n� v~\pagereference[bydleni]Hasseltu.
\stopbuffer

\typebuffer

%A chapter number and a page number will be generated when
%processing the input file. On another spot in the document
%you can refer to \type{accomodation} with
%\type{\at{page}[accomodation]}.
P�i zpracov�n� zdrojov�ho souboru bude vygenerov�no ��slo kapitoly
a ��slo strany. Na jin�m m�st� dokumentu se m��eme odk�zat na
\type{bydleni} takto: \type{na \at{stran�}[bydleni]}.

% You can also define a set of labels separated by commas.
M��eme rovn� definovat n�kolik n�v�t� odd�len�ch ��rkami.

%\startbuffer
%\placefigure
%  [here]
%  [fig:canals,fig:boats]
%  {A characteristic picture of Hasselt.}
%  {\externalfigure[ma-cb-08][width=10cm]}
%
%There are many canals in Hasselt (see \in{figure}[fig:canals]).
%.
%.
%.
%Boats can be moored in the canals of Hasselt (see
%\in{figure}[fig:boats]).
%\stopbuffer

\startbuffer
\placefigure
  [here]
  [obr:kanaly,obr:cluny]
  {Typick� obr�zek Hasseltu.}
  {\externalfigure[ma-cb-08][width=10cm]}

V~Hasseltu je mnoho kan�l� (viz \in{obr�zek}[obr:kanaly]).
.
.
.
V~hasseltsk�ch kan�lech mohou kotvit �luny
(viz \in{obr�zek}[obr:cluny]).
\stopbuffer

\typebuffer

%This might look like this:
V�sledek m��e vypadat n�sledovn�:

\getbuffer

\stopcomponent
