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

%\chapter{Using modules}
\chapter{Extern� moduly}

%\index{module+chemic}
%\index{module+units}
%\index{module+chart}
%\index{module+pictex}
%\index{chemical structures}
%\index{flowcharts}
%\index{units}
\index{modul+bib}
\index{modul+chemic}
\index{modul+units}  % v originale asi chybne len "unit"
\index{modul+pictex}
\index{modul+chart}
\index{modul+steps}
\index{modul+narrowtt}
\index{modul+amsl}
\index{modul+nath}
\index{modul+streams}
\index{modul+gnuplot}
\index{modul+lilypond}
\index{chemick� struktury}
\index{v�vojov� diagramy}
\index{jednotky}
\index{bibliografie}
\index{pictex}
\index{stavov� diagramy}
\index{AMSmath}
\index{synchronizace text�}
\index{strojopis+�zk�}
\index{GNUplot}
\index{LilyPond}

\Command{\tex{usemodule}}

%For reasons of efficiency the author decided to implement
%some functionality of \CONTEXT\ by means of external
%modules. At this moment you can load the following modules:
Kv�li efektivnosti se autor rozhodl realizovat n�kter� funkce
\CONTEXT{}u prost�ednictv�m vn�j��ch modul�. M��eme
nap��klad zav�st n�sleduj�c� moduly:\footnote{V�ce viz seznam modul�
  na \from[www:wiki-modules].} 

%\startitemize[packed]
%\item \type{chemic} for typesetting chemical structures
%\item \type{units} for using \cap{SI} units
%\item \type{pictex} for drawing pictures (is used in
%      conjunction with module \type{chemic})
%\item \type{chart} for drawing flowcharts and organograms
%\stopitemize
\startitemize[packed]
\item \type{bib} sazba bibliografick�ch referenc� programem \BIBTEX;
\item \type{chemic} sazba chemick�ch struktur;
\item \type{units} pou�it� jednotek \cap{SI};
\item \type{pictex} kreslen� obr�zk� (pou��v� se spole�n� s~modulem \type{chemic});
\item \type{chart} n��rt v�vojov�ch diagram� a organiza�n�ch sch�mat;
\item \type{steps} n��rt stavov�ch diagram�;
\item \type{narrowtt} pou�it� u���ho strojopisu Computer Modern pro
  verbatim prost�ed�;
\item \type{amsl} implementace \AMSMATH{} p��kaz�;
\item \type{nath} p�irozen� sazba matematiky, obsahuje modul \type{amsl};
\item \type{streams} synchronizace n�kolika vstupn�ch text�
  (dvojjazy�n� sazba);
\item \type{gnuplot} p��m� z�pis \GNUPLOT{} graf�;
\item \type{lilypond} sazba notov�ch osnov programem \LILYPOND.
\stopitemize

%Loading is done in the set up area of your input file and done
%by means of:
Zaveden� se provede v~deklara�n� oblasti p��kazem:

\shortsetup{usemodule}

%We have shown a number of examples of the module
%\type{units}. Below we give two examples of the
%modules \type{chemic} and \type{chart} without any further
%explanations. These modules are described in two separate
%manuals.
Ji� jsme uvedli mno�stv� p��klad� pou�it� modulu
\type{units}. N��e bez dal��ho vysv�tlen� uv�d�me dva p��klady pou�it�
modul� \type{chemic} a~\type{chart}. Tyto moduly jsou pops�ny ve dvou
samostatn�ch p��ru�k�ch (\from[manual:chemic], \from[manual:charts]). 

%Chemical structures may look very impressive.
Chemick� struktury mohou vypadat velice p�sobiv�:

%\startbuffer
%\placeformula[-]
%\startformula
%\startchemical[scale=small,width=fit,top=3000,bottom=3000]
%  \chemical[SIX,SB2356,DB14,Z2346,SR3,RZ3,-SR6,+SR6,-RZ6,+RZ6]
%           [C,N,C,C,H,H,H]
%  \chemical[PB:Z1,ONE,Z0,DIR8,Z0,SB24,DB7,Z27,PE][C,C,CH_3,O]
%  \chemical[PB:Z5,ONE,Z0,DIR6,Z0,SB24,DB7,Z47,PE][C,C,H_3C,O]
%  \chemical[SR24,RZ24][CH_3,H_3C]
%  \bottext{Compound A}
%\stopchemical
%\stopformula
%\stopbuffer
\startbuffer
\placeformula[-]
\startformula
\startchemical[scale=small,width=fit,top=3000,bottom=3000]
  \chemical[SIX,SB2356,DB14,Z2346,SR3,RZ3,-SR6,+SR6,-RZ6,+RZ6]
           [C,N,C,C,H,H,H]
  \chemical[PB:Z1,ONE,Z0,DIR8,Z0,SB24,DB7,Z27,PE][C,C,CH_3,O]
  \chemical[PB:Z5,ONE,Z0,DIR6,Z0,SB24,DB7,Z47,PE][C,C,H_3C,O]
  \chemical[SR24,RZ24][CH_3,H_3C]
  \bottext{Slou�enina A}
\stopchemical
\stopformula
\stopbuffer

\getbuffer

%\CONTEXT\ relies on \METAPOST\ to draw these kind of
%chemical structures. Although these chemical structures are
%defined with only two or three commands, it takes some
%practice to get the right results. This is how the input
%looks:
P�i kreslen� chemick�ch struktur tohoto typu se \CONTEXT{} spol�h� na
\METAPOST. T�eba�e jsou tyto chemick� struktury definov�ny jenom
pomoc� dvou nebo t�� p��kaz�, na z�sk�n� spr�vn�ch v�sledk� je
pot�ebn� jist� praxe. Vstup m��e vypadat takto:

\typebuffer

%While using the module \type{chart} a definition of an
%organogram may look like this:
Modul \type{chart} si p�edstav�me uk�zkou definice organiza�n�ho
sch�matu. M��e vypadat n�sledovn�:

\setupFLOWcharts
  [breedte=11\bodyfontsize,
   hoogte=3\bodyfontsize,
   dx=1\bodyfontsize,
   dy=2\bodyfontsize]

\setupFLOWlines
  [pijl=nee]

\startbuffer
\startFLOWchart[organogram]
  \startFLOWcell
    \shape    {action}
    \name     {01}
    \location {2,1}
    \text     {Hasselt}
    \connect  [bt]{02}
    \connect  [bt]{03}
    \connect  [bt]{04}
  \stopFLOWcell
  \startFLOWcell
    \shape    {action}
    \name     {02}
    \location {1,2}
    \text     {Mastenbroek}
  \stopFLOWcell
  \startFLOWcell
    \shape    {action}
    \name     {03}
    \location {2,2}
    \text     {Genne}
  \stopFLOWcell
  \startFLOWcell
    \shape    {action}
    \name     {04}
    \location {3,2}
    \text     {Zwartewaterklooster}
  \stopFLOWcell
\stopFLOWchart

\FLOWchart[organogram]
\stopbuffer

\typebuffer

%The result will be:
V�sledkem bude:

\midaligned{\getbuffer}

\stopcomponent
