%% Test file of NRP report LaTeX class
%% (c) 2008-2009 Vit Zyka
%%
%% Compilation:
%% >pdflatex nrp-report-test
%% >bibtex nrp-report-test
%% >pdflatex nrp-report-test
%% >pdflatex nrp-report-test

\documentclass{nrp-report} % or \documentclass[czech]{nrp-report} or [slovak]

\usepackage[utf8x]{inputenc}  % or [latin2] [cp1250]

\title{NRP Report -- Test \& Example File}

\author{Vít Zýka}
\affiliation{TYPOkvítek Praha}
\email{vit.zyka@seznam.cz}
%\date{}

%\author{Kropacek\aff{1}, Pazout\aff{2}}
%\affiliation{\aff{1,2} 4.A\\\aff{2} 5.B}
%\email{kropacek@u.pazoutu.cz}

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

\begin{document}
\maketitle[% this optional parameter typeset text into single column
For writing NRP report we provide files as follows:
\begin{center}
  \begin{tabular}{lcc}
    &\LaTeX&\CONTEXT\\
    template definition&\file{nrp-report.cls}&\file{nrp-cont-report.tex}\\
    minimal&\file{nrp-report-min.tex}&\file{nrp-cont-report-min.tex}\\
    test \& example&\file{nrp-report-test.tex}&\file{nrp-cont-report-test.tex}\\
    bibtex data&\file{nrp-report.bib}&\file{nrp-report.bib}\\
    bibtex style&\file{plain-cz-online.bst}&\\
  \end{tabular}
\end{center}%
\hrulefill
]

% ----------------------------------------------- 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
Table~\ref{tab:tex}.
\begin{table*}
  \begin{center}
  \caption{\TeX{} on-line information.}
  \label{tab:tex}
  \begin{tabular}{ll}
    %URL&description\\
    \hline
    \url{www.tug.org}&\TeX{} User Group\\
    \url{www.cstug.cz}&Czechoslovac \TeX{} User Group\\
    \url{www.tex.ac.uk/cgi-bin/texfaq2html}&\TeX{} FAQ\\
  \end{tabular}
  \end{center}
\end{table*}

% ----------------------------------------------- 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 \url{www.tug.org/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 Table~\ref{tab:latex}.
\begin{table*}
  \begin{center}
  \caption{\LaTeX{} on-line information.}
  \label{tab:latex}
  \begin{tabular}{ll}
    %URL&description\\
    \hline
    \url{tex.loria.fr/general/latex2e.html}&on-line reference manual\\
    \url{www.ctan.org/get/info/lshort/english/lshort.pdf}&beginners' manual\\
  \end{tabular}
  \end{center}
\end{table*}
\begin{table*} % should be here - before the page break of the page whre it occures!
  \begin{center}
  \caption{\CONTEXT{} on-line information.}
  \label{tab:context}
  \begin{tabular}{ll}%{p{.6\textwidth}l}
    %URL&description\\
    \hline
    \url{www.contextgarden.net}&wiki\\
    \url{wiki.contextgarden.net/ConTeXt_on_Excursion%2C_translations}&beginners' manual\\
    \url{texshow.contextgarden.net}&reference manual\\
    \url{www.pragma-ade.com/general/manuals/cont-eni.pdf}&manual\\
    \url{www.pragma-ade.com/general/manuals/metafun-s.pdf}&vector graphics manual\\
  \end{tabular}
  \end{center}
\end{table*}

% ----------------------------------------------- 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
\url{http://wiki.contextgarden.net/ConTeXt_Minimals}. \CONTEXT{} is
also included in the TeXLive \url{www.tug.org/texlive}.

\subsection{Information}
On-line information about \CONTEXT{} is listed in Table~\ref{tab:context}.

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

\section{Nonstandards in NRP report class}
\subsection{Bibliography}
NRP class internally works with bibliography style {\tt plain-cz-online.bst}.
This style defines several useful but nonstandard topics:
\begin{enumerate}
\item There are two new bibliography entry (document) types:
  {\tt\@BcThesis} for citation of a Bachelor's thesis and {\tt\@ElDoc}
  for electronic documents, WWW pages, electronic conferencies and
  similar on-line sources. The {\tt\@BcThesis} uses the same
  fields as similar {\tt MastersThesis} or {\tt PhDThesis}. The {\tt\@ElDoc} has
  defined folowing fields: {\tt author}, {\tt title}, {\tt crossref},
  {\tt number}, {\tt published}, {\tt edition}, {\tt version},
  {\tt year}, {\tt secondarytitle}, {\tt version}, 
  {\tt revisiondate}, {\tt citationdate}, {\tt availability},
  {\tt standardnumber}.
\item A new field {\tt URL} is added to every entry for online
  document availibility address. The field content is enclosed into
  \verb+\url{...}+ macro that ensures proper URL hyphenation.
\item Some literal text used by bibliography list of publication
  (e.g. {\it pages}, {\it in}, {\it master's thesis}, ...) are defined
  as macro. You can redefine these macros in your document to change 
  them e.g.
  $$\verb+\def\namebibbcthesis{Bakalářská práce}+$$
  for localization reason. Here is their complete list:
  \verb+\namebibavailibility+,
  \verb+\namebibbcthesis+,
  \verb+\namebibmastersthesis+,\\
  \verb+\namebibphdthesis+,
  \verb+\namebibin+,\\
  \verb+\namebibpage+,
  \verb+\namebibpages+.
\end{enumerate}

% ----------------------------------------------- Bibliography
\bibliography{nrp-report}

\begin{figure}[h]
  \centering\leavevmode
  \includegraphics[width=.5\linewidth]{lev}%
  \caption{Test figure. The PDF version of Čvut logo is included to
    the NRP package. About vector drawing in~\LaTeX{} see Bachalor's
    thesis~\cite{Marek09}.}
  \label{fig:lev}
\end{figure}

%\nocite{ConTeXt}

\end{document}

% end of nrp-report-test.tex
