%% Test file of NRP report for ConTeXt
%% (c) 2008 Vit Zyka
%%
%% Compilation:
%% >texexec --pdf nrp-cont-report-test
%% >bibtex nrp-cont-report-test
%% >texexec --pdf nrp-cont-report-test

\startproduct nrp-cont-report-test

\environment nrp-cont-report

\enableregime[utf8] % or [latin2] [cp1250]
%\mainlanguage[cz]

\setupbibtex[database=nrp-report] % shoul be outside columns

% -------------------------------------------------------------- URL
\useURL[url:tug][www.tug.org]
\useURL[url:cstug][www.cstug.cz]
\useURL[url:texfaq][www.tex.ac.uk/cgi-bin/texfaq2html]

\useURL[url:latexreference][tex.loria.fr/general/latex2e.html]
\useURL[url:latexshort][www.ctan.org/get/info/lshort/english/lshort.pdf]

\useURL[url:onexcursion][wiki.contextgarden.net/ConTeXt_on_Excursion%2C_translations]
\useURL[url:contextgarden][www.contextgarden.net]
\useURL[url:texshow][texshow.contextgarden.net]
\useURL[url:contextmanual][www.pragma-ade.com/general/manuals/cont-eni.pdf]
\useURL[url:metafunmanual][www.pragma-ade.com/general/manuals/metafun-s.pdf]

\useURL[url:texlive][www.tug.org/texlive]
\useURL[url:contextminimal][http://wiki.contextgarden.net/ConTeXt_Minimals]

% -------------------------------------------------------------- Title
\startTitle
  \Title{NRP Report -- Test File}
  \Author{Vít Zýka}
  \Institute{\Email{vit.zyka@seznam.cz}}
\stopTitle

\def\file#1{{\tt#1}}

\startnarrower
For writing NRP report we provide files as follows:
\par
\startalignment[middle]
  \dontleavehmode\vbox{%
  \starttable[|l|c|c|]
    \NC                     \NC \LaTeX \NC \CONTEXT \NC\FR
    \NC template definition \NC \file{nrp-report.cls} \NC \file{nrp-cont-report.tex} \NC\MR
    \NC minimal             \NC \file{nrp-report-min.tex} \NC \file{nrp-cont-report-min.tex} \NC\MR
    \NC test \& example     \NC \file{nrp-report-test.tex} \NC \file{nrp-cont-report-test.tex} \NC\MR
    \NC bibtex data         \NC \file{nrp-report.bib} \NC \file{nrp-report.bib} \NC\LR
  \stoptable}%
  \hairline
\stopalignment
\stopnarrower

\startBody

% ----------------------------------------------- TeX
\section{\TeX}
TeX is a typesetting system written by Donald E. Knuth, who says in
the Preface to his book on TeX~\cite{TeXBook} that it is
“intended for the creation of beautiful books — and especially for
books that contain a lot of mathematics”.

\subsection{How should I pronounce \TeX?}
The ‘X’ is “really” the Greek letter Chi, and is pronounced by
English-speakers either a bit like the ‘ch’ in the Scots word ‘loch’.

\subsection{Information}
Except of the \TeX{}book~\cite{TeXBook} an impressive
book about \TeX{} exists in Czech by Petr
Olšák~\cite{Olsak97}. On-line information is summarized in the
\in{Table}[tab:tex].
% place bellow due to better layout (column balancing)
%\placetable[bottom][tab:tex]{\TeX{} on-line information.}{%
%  \starttable[|l|l|]
%    \HL
%    \NC \from[url:tug] \NC \TeX{} User Group \NC\FR
%    \NC \from[url:cstug] \NC Czechoslovac \TeX{} User Group \NC\MR
%    \NC \from[url:texfaq] \NC \TeX{} FAQ \NC\LR
%  \stoptable}

% ----------------------------------------------- LaTeX
\section{\LaTeX}
LaTeX is a TeX macro package, originally written by Leslie Lamport,
that provides a document processing system. LaTeX allows markup to
describe the structure of a document, so that the user need not think
about presentation. By using document classes and add-on packages, the
same document can be produced in a variety of different layouts.

\subsection{How should I pronounce \LaTeX?}
Lamport never recommended how one should pronounce LaTeX, but a lot of
people pronounce it ‘Lay TeX’ or perhaps ‘Lah TeX’.

\subsection{Instalation}
The best \LaTeX{} installation is TeXLive \from[url:texlive]. It
works on many platforms and operating systems.

\subsection{Information}
Well known Czech beginners book about \LaTeX{} is~\cite{Rybicka99}.
Basic on-line \LaTeX{} manuals shows \in{Table}[tab:latex].
% place bellow due to better layout (column balancing)
%\placetable[bottom][tab:latex]{\LaTeX{} on-line information.}{%
%  \starttable[|l|l|]
%    \HL
%    \NC \from[url:latexreference] \NC on-line reference manual \NC\FR
%    \NC \from[url:latexshort] \NC beginners' manual \NC\LR
%  \stoptable}

% ----------------------------------------------- ConTeXt
\section{\CONTEXT}
\CONTEXT{} is a macro package developed by Hans Hagen of
Pragma-Ade. \CONTEXT{} is a document-production system based, like \LaTeX{},
on the TeX typesetting system. Whereas \LaTeX{} insulates the writer from
typographical details, \CONTEXT{} takes a complementary approach by
providing structured interfaces for handling typography, including
extensive support for colors, backgrounds, hyperlinks, presentations,
figure-text integration, and conditional compilation. It gives the
user extensive control over formatting while making it easy to create
new layouts and styles without learning the \TeX{} macro
language. ConTeXt’s unified design avoids the package clashes that can
happen with \LaTeX{}.

\CONTEXT{} also integrates MetaFun, a superset of \MetaPost{} and a powerful
system for vector graphics. MetaFun can be used as a stand-alone
system to produce figures, but its strength lies in enhancing ConTeXt
documents with accurate graphic elements.

\subsection{How should I pronounce \CONTEXT?}
\CONTEXT{} is pronounced like the word context, i.e. ‘kontekst’.

\subsection{Instalation}
For most up-to-date \CONTEXT{} installation follow the page
\from[url:contextminimals]. \CONTEXT{} is
also included in the TeXLive \from[url:texlive].

\subsection{Information}
On-line information about \CONTEXT{} is listed in \in{Table}[tab:context].
% place bellow due to better layout (column balancing)
%\placetable[bottom][tab:context]{\CONTEXT{} on-line information.}{%
%  \starttable[|l|l|]
%    \HL
%    \NC \from[url:contextgarden] \NC wiki \NC\FR
%    \NC \from[url:onexcursion] \NC beginners' manual \NC\MR
%    \NC \from[url:texshow] \NC reference manual \NC\MR
%    \NC \from[url:contextmanual] \NC manual \NC\MR
%    \NC \from[url:metafunmanual] \NC vector graphics manual \NC\LR
%  \stoptable}

% ----------------------------------------------- Typography
\section{Typography}
Among others we mention excellent book~\cite{Bringhurst01}, in
Czech~\cite{Blazej90,Pop89}. See~\cite{Polach00} about 
diploma thesis formatting.

% ----------------------------------------------- Bibliography
\completepublications

\placefigure[here][fig:lev]{Test figure.}
  {\externalfigure[lev][width=.5\textwidth]}

\stopBody

\placetable[bottom][tab:tex]{\TeX{} on-line information.}{%
  \starttable[|l|l|]
    \HL
    \NC \from[url:tug] \NC \TeX{} User Group \NC\FR
    \NC \from[url:cstug] \NC Czechoslovac \TeX{} User Group \NC\MR
    \NC \from[url:texfaq] \NC \TeX{} FAQ \NC\LR
  \stoptable
  \blank
}

\placetable[bottom][tab:latex]{\LaTeX{} on-line information.}{%
  \starttable[|l|l|]
    \HL
    \NC \from[url:latexreference] \NC on-line reference manual \NC\FR
    \NC \from[url:latexshort] \NC beginners' manual \NC\LR
  \stoptable
  \blank
}

\placetable[bottom][tab:context]{\CONTEXT{} on-line information.}{%
  \starttable[|l|l|]
    \HL
    \NC \from[url:contextgarden] \NC wiki \NC\FR
    \NC \from[url:onexcursion] \NC beginners' manual \NC\MR
    \NC \from[url:texshow] \NC reference manual \NC\MR
    \NC \from[url:contextmanual] \NC manual \NC\MR
    \NC \from[url:metafunmanual] \NC vector graphics manual \NC\LR
  \stoptable}

\stopproduct

% end of nrp-cont-report-test.tex
