From 037aae555214628582769833f92ee99211fb6972 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 Jan 2014 23:51:33 +0000 Subject: cnbwp (2jan14) git-svn-id: svn://tug.org/texlive/trunk@32550 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/cnbwp/README | 32 + Master/texmf-dist/doc/latex/cnbwp/biblio.tex | 282 +++ Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf | Bin 0 -> 185714 bytes Master/texmf-dist/doc/latex/cnbwp/cnbpaper.tex | 103 ++ Master/texmf-dist/doc/latex/cnbwp/cnbsample.bib | 280 +++ .../texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf | Bin 0 -> 246897 bytes .../texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex | 1368 +++++++++++++++ .../texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf | Bin 0 -> 251357 bytes .../texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex | 1824 ++++++++++++++++++++ Master/texmf-dist/doc/latex/cnbwp/graph18.eps | 1410 +++++++++++++++ Master/texmf-dist/doc/latex/cnbwp/graph18.gif | Bin 0 -> 17049 bytes Master/texmf-dist/doc/latex/cnbwp/graph18.jpg | Bin 0 -> 25772 bytes Master/texmf-dist/doc/latex/cnbwp/graph18.pdf | Bin 0 -> 22967 bytes Master/texmf-dist/doc/latex/cnbwp/graph18.png | Bin 0 -> 10308 bytes Master/texmf-dist/doc/latex/cnbwp/numtable.tex | 9 + Master/texmf-dist/doc/latex/cnbwp/widematrix.tex | 30 + 16 files changed, 5338 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/cnbwp/README create mode 100644 Master/texmf-dist/doc/latex/cnbwp/biblio.tex create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbpaper.tex create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbsample.bib create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf create mode 100644 Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex create mode 100644 Master/texmf-dist/doc/latex/cnbwp/graph18.eps create mode 100644 Master/texmf-dist/doc/latex/cnbwp/graph18.gif create mode 100644 Master/texmf-dist/doc/latex/cnbwp/graph18.jpg create mode 100644 Master/texmf-dist/doc/latex/cnbwp/graph18.pdf create mode 100644 Master/texmf-dist/doc/latex/cnbwp/graph18.png create mode 100644 Master/texmf-dist/doc/latex/cnbwp/numtable.tex create mode 100644 Master/texmf-dist/doc/latex/cnbwp/widematrix.tex (limited to 'Master/texmf-dist/doc/latex/cnbwp') diff --git a/Master/texmf-dist/doc/latex/cnbwp/README b/Master/texmf-dist/doc/latex/cnbwp/README new file mode 100644 index 00000000000..095473e5399 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/README @@ -0,0 +1,32 @@ +============================================================================= +Package: cnbwp Version 2013.12 1 January 2014 +============================================================================= + +The purpose of the package is to support proper formatting of Working Papers +of the Czech National Bank (WP CNB). The package was developed for CNB but it +is intended also for authors from outside CNB. + +The documentation is written both in Czech and English: +cnbwp-manual-cs.pdf = Czech manual +cnbwp-manual-en.pdf = English manual + +The doc/ directory contains not only the manual with its source files but also +a few sample files. + + +Installation: + +1. put cnbwp.cls and cnbwpsizes.clo to the directory where latex expects packages, + preferably $TEXMF/tex/latex/cnbwp + +2. put abbrv.bst to a directory where bibtex expects bst styles + preferably $TEXMF/bibtex/bst/cnbwp + +3. put all doc/* files to a directory where texdoc looks for + documentation, preferably $TEXMF/doc/cnbwp + + +The license of the package is LPPL. + +Author: Z. Wagner, http://icebearsoft.euweb.cz +Developed for the Czech National Bank diff --git a/Master/texmf-dist/doc/latex/cnbwp/biblio.tex b/Master/texmf-dist/doc/latex/cnbwp/biblio.tex new file mode 100644 index 00000000000..559c637268f --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/biblio.tex @@ -0,0 +1,282 @@ +% Requires cnbwp version 2005/12/23 or newer + +\begin{thebibliography}{29} +\manualItem[man()]{manual-minimal}{ + title = {The Definitive Computer Manual}, + note = {This is a minimal MANUAL entry}, +} + +\proceedingsItem[pro(1983)]{proceedings-minimal}{ + title = {Proc. Fifteenth Annual Symposium on the Theory of Computing}, + year = {1983}, +} + +\articleItem[Aamport(1986b)]{article-full}{ + author = {Aamport, L.~A.}, + title = {The Gnats and Gnus Document Preparation System}, + journal = {\mbox{G-Animal's} Journal}, + year = {1986b}, + volume = {41}, + number = {7}, + pages = {73+}, + month = {Jul}, + note = {This is a full ARTICLE entry}, +} + +\articleItem[Aamport(1986a)]{article-minimal}{ + author = {Aamport, L.~A.}, + title = {The Gnats and Gnus Document Preparation System}, + journal = {\mbox{G-Animal's} Journal}, + year = {1986a}, +} + +\bookItem[Knuth(1981c)]{book-full}{ + author = {Knuth, D.~E.}, + title = {Seminumerical Algorithms}, + publisher = {Addison-Wesley}, + year = {1981c}, + volume = {2}, + series = {The Art of Computer Programming}, + address = {{Reading, Massachusetts}}, + edition = {second}, + month = {10~Jan}, + note = {This is a full BOOK entry}, +} + +\bookItem[Knuth(1981)]{book-minimal}{ + author = {Knuth, D.~E.}, + title = {Seminumerical Algorithms}, + publisher = {Addison-Wesley}, + year = {1981}, +} + +\inbookItem[Knuth(1973a)]{inbook-full}{ + author = {Knuth, D.~E.}, + title = {Fundamental Algorithms}, + chapter = {1.2}, + pages = {10--119}, + publisher = {Addison-Wesley}, + year = {1973a}, + volume = {1}, + series = {The Art of Computer Programming}, + type = {section}, + address = {{Reading, Massachusetts}}, + edition = {second}, + month = {10~Jan}, + note = {This is a full INBOOK entry}, +} + +\inbookItem[Knuth(1973)]{inbook-minimal}{ + author = {Knuth, D.~E.}, + title = {Fundamental Algorithms}, + chapter = {1.2}, + publisher = {Addison-Wesley}, + year = {1973}, +} + +\bookletItem[Knvth(1988)]{booklet-full}{ + title = {The Programming of Computer Art}, + author = {Knvth, J.~C.}, + howpublished = {Vernier Art Center}, + address = {{Stanford, California}}, + month = {Feb}, + year = {1988}, + note = {This is a full BOOKLET entry}, +} + +\incollectionItem[Lincoll(1977b)]{incollection-full}{ + author = {Lincoll, D.~D.}, + title = {Semigroups of Recurrences}, + booktitle = {High Speed Computer and Algorithm Organization}, + publisher = {Academic Press}, + year = {1977b}, + editor = {Lipcoll, D.~J., D.~H. Lawrie, and A.~H. Sameh}, + number = {23}, + series = {Fast Computers}, + type = {part}, + chapter = {3}, + pages = {179--183}, + address = {New York}, + edition = {third}, + month = {Sep}, + note = {This is a full INCOLLECTION entry}, +} + +\incollectionItem[Lincoll(1977a)]{incollection-minimal}{ + author = {Lincoll, D.~D.}, + title = {Semigroups of Recurrences}, + booktitle = {High Speed Computer and Algorithm Organization}, + publisher = {Academic Press}, + year = {1977a}, +} + +\bookItem[Lipcoll et~al.(1977c)Lipcoll, Lawrie, and Sameh]{whole-collection}{ + editor = {Lipcoll, D.~J., D.~H. Lawrie, and A.~H. Sameh}, + title = {High Speed Computer and Algorithm Organization}, + publisher = {Academic Press}, + year = {1977c}, + number = {23}, + series = {Fast Computers}, + address = {New York}, + edition = {third}, + month = {Sep}, + note = {This is a cross-referenced BOOK (collection) entry}, +} + +\manualItem[Manmaker(1986)]{manual-full}{ + title = {The Definitive Computer Manual}, + author = {Manmaker, L.}, + organization = {Chips-R-Us}, + address = {Silicon Valley}, + edition = {silver}, + month = {Apr-May}, + year = {1986}, + note = {This is a full MANUAL entry}, +} + +\manualItem[Manmaker(1984)]{manual-question}{ + title = {Are Computer Manuals Useful?}, + author = {Manmaker, L.}, + organization = {Chips-R-Us}, + year = {1984}, +} + +\mastersthesisItem[Masterly(1988b)]{mastersthesis-full}{ + author = {Masterly, {\'E}.}, + title = {Mastering Thesis Writing}, + school = {Stanford University}, + year = {1988b}, + type = {Master's project}, + address = {English Department}, + month = {Jun-Aug}, + note = {This is a full MASTERSTHESIS entry}, +} + +\mastersthesisItem[Masterly(1988a)]{mastersthesis-minimal}{ + author = {Masterly, {\'E}.}, + title = {Mastering Thesis Writing}, + school = {Stanford University}, + year = {1988a}, +} + +\miscItem[Missilany(1984)]{misc-full}{ + author = {Missilany, J.-B.}, + title = {Handing out random pamphlets in airports}, + howpublished = {Handed out at O'Hare}, + month = {Oct}, + year = {1984}, + note = {This is a full MISC entry}, +} + +\inproceedingsItem[Oaho et~al.(1983a)Oaho, Ullman, and + Yannakakis]{inproceedings-minimal}{ + author = {Oaho, A.~V., J.~D. Ullman, and M.~Yannakakis}, + title = {On Notions of Information Transfer in VLSI Circuits}, + booktitle = {Proc. Fifteenth Annual Symposium on the Theory of Computing}, + year = {1983a}, +} + +\inproceedingsItem[Oaho et~al.(1983b)Oaho, Ullman, and + Yannakakis]{inproceedings-full}{ + author = {Oaho, A.~V., J.~D. Ullman, and M.~Yannakakis}, + title = {On Notions of Information Transfer in VLSI Circuits}, + booktitle = {Proc. Fifteenth Annual Symposium on the Theory of Computing}, + year = {1983b}, + editor = {Oz, W.~V. and M.~Yannakakis}, + number = {17}, + series = {All ACM Conferences}, + pages = {133--139}, + address = {Boston}, + month = {Mar}, + organization = {The OX Association for Computing Machinery}, + publisher = {Academic Press}, + note = {This is a full INPROCEDINGS entry}, +} + +\unpublishedItem[Overwood et~al.()Overwood, {\~N}et, and + \={P}ot]{unpublished-minimal2}{ + author = {Overwood, U., N.~{\~N}et, and P.~\={P}ot}, + title = {Lower Bounds for Wishful Research Results}, +} + +\unpublishedItem[Overwood et~al.(1988)Overwood, {\~N}et, and + \={P}ot]{unpublished-full2}{ + author = {Overwood, U., N.~{\~N}et, and P.~\={P}ot}, + title = {Lower Bounds for Wishful Research Results}, + month = {{Nov, Dec}}, + year = {1988}, +} + +\proceedingsItem[Oz and Yannakakis(1983)]{proceedings-full}{ + title = {Proc. Fifteenth Annual Symposium on the Theory of Computing}, + year = {1983}, + editor = {Oz, W.~V. and M.~Yannakakis}, + number = {17}, + series = {All ACM Conferences}, + address = {Boston}, + month = {Mar}, + organization = {The OX Association for Computing Machinery}, + publisher = {Academic Press}, + note = {This is a full PROCEEDINGS entry}, +} + +\phdthesisItem[Phony-Baloney(1988b)]{phdthesis-full}{ + author = {Phony-Baloney, F.~P.}, + title = {Fighting Fire with Fire: Festooning French Phrases}, + school = {Fanstord University}, + year = {1988b}, + type = {PhD Dissertation}, + address = {Department of French}, + month = {Jun-Aug}, + note = {This is a full PHDTHESIS entry}, +} + +\phdthesisItem[Phony-Baloney(1988a)]{phdthesis-minimal}{ + author = {Phony-Baloney, F.~P.}, + title = {Fighting Fire with Fire: Festooning French Phrases}, + school = {Fanstord University}, + year = {1988a}, +} + +\techreportItem[T\'{e}rrific(1988)]{techreport-full}{ + author = {T\'{e}rrific, T.}, + title = {An {$O(n \log n / \! \log\log n)$} Sorting Algorithm}, + institution = {Fanstord University}, + year = {1988}, + type = {Wishful Research Result}, + number = {7}, + address = {{Computer Science Department, Fanstord, California}}, + month = {Oct}, + note = {This is a full TECHREPORT entry}, +} + +\techreportItem[Terrific(1988)]{techreport-minimal}{ + author = {Terrific, T.}, + title = {An {$O(n \log n / \! \log\log n)$} Sorting Algorithm}, + institution = {Fanstord University}, + year = {1988}, +} + +\unpublishedItem[\"{U}nderwood et~al.()\"{U}nderwood, {\~N}et, and + \={P}ot]{unpublished-minimal}{ + author = {\"{U}nderwood, U., N.~{\~N}et, and P.~\={P}ot}, + title = {Lower Bounds for Wishful Research Results}, + note = {Talk at Fanstord University (this is a minimal UNPUBLISHED entry)}, +} + +\unpublishedItem[\"{U}nderwood et~al.(1988)\"{U}nderwood, {\~N}et, and + \={P}ot]{unpublished-full}{ + author = {\"{U}nderwood, U., N.~{\~N}et, and P.~\={P}ot}, + title = {Lower Bounds for Wishful Research Results}, + note = {Talk at Fanstord University (this is a full UNPUBLISHED entry)}, + month = {{Nov, Dec}}, + year = {1988}, +} + +\miscItem[Wagner()]{url-demo}{ + author = {Wagner, Z.}, + title = {Internet Home Page}, + note = {\url{http://icebearsoft.euweb.cz}}, +} + +\end{thebibliography} diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf b/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf new file mode 100644 index 00000000000..d0d7be5de20 Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.tex b/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.tex new file mode 100644 index 00000000000..839cbde596c --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.tex @@ -0,0 +1,103 @@ +\documentclass{cnbwp} +\usepackage{graphicx} +\usepackage{dcolumn,verbatim} +\usepackage[figuresright]{rotating} % for sideways tables + +% End of the preamble + +\begin{document} +\title{Sample Template for Writing the Working Papers of the Czech National Bank, a Long Title Is +Used} +\author{Ferdinand Mravenec}{Czech National Bank, Division A, ferda@mravenec.cz} +\author{Brouk Pytl\'ik}{Czech National Bank, Division B, brouk@pytlik.cz} +\author{Beru\v{s}ka Sedmite\v{c}n\'a}{Czech National Bank, Division B, beruska@louka.cz} +\acknowledge{This work was supported by Czech National Bank Research Project No. .\\ +The authors would like to thank ...\\ +The views expressed in this paper are those of the authors and not necessarily those of the Czech +National Bank.} +\maketitle + +\begin{abstract} +This is the template of the Working Papers. This environment should contain the abstract. The JEL +codes and keywords must appear below but after the Czech abstract. +\end{abstract} + +\begin{abstrakt} +Toto je \v{c}esk\'y abstrakt k p\v{r}\'ikladu pou\v{z}it\'i \v{s}ablony Working Papers. N\'asleduje po anglick\'em abstraktu, +po n\v{e}m se uvedou k\'ody JEL a kl\'i\v{c}ov\'a slova. +\end{abstrakt} + +\JEL{B6, B12, B52, Z80} + +\Keywords{Template, working paper, table, figure, references} + +\begin{nontechsummary} +This part of the document is devoted to the nontechnical summary. +\end{nontechsummary} + +\section{Section} +The document is organized in sections and subsections as shown below. + +\subsection{Images} +The images are inserted preferably using the ``graphicx'' package. The caption should be placed +above the picture, see the sample below. + +\begin{figure}[hbt] +\caption{Sample of Graphics} +\ifpdf +\includegraphics[width=\textwidth]{graph18.pdf} +\else +\includegraphics[width=\textwidth]{graph18.eps} +\fi +\medskip +\Note{This example shows inclusion a vector image.} +\Source{gnuplot} +\end{figure} + +\subsection{Numerical Tables} +Numerical tables make use of the ``dcolumn'' package for alignment on the decimal dot. The sample is +given below. + +\begin{table}[hbt] +\caption{Numerical table}\medskip +\input{numtable} +\end{table} + +\subsection{Wide rotated tables} +Wide tables must be rotated. They usually take the whole page. + +\input{widematrix} + +\section{Preparing Bibliography} +The bibliography was prepared using the Bib\TeX\ database. These are selected sample citations: +\begin{itemize} +\item \verb:\cite{article-minimal}:: +\cite{article-minimal} +\item \verb:\cite{book-full}:: +\cite{book-full} +\item \verb:\cite{url-demo}:: +\cite{url-demo} +\end{itemize} + +\nocite{*} + +The listing of the source Bib\TeX\ file is below. + +{\small +\verbatiminput{cnbsample.bib}} + +\bibliographystyle{abbrvcnb} +\bibliography{cnbsample} + +\appendix +\section{Optional Annex} + +Optional annex is added after \verb.\appendix.. Usual sectioning commands serve for structuring the +document. + +\subsection{Optional Subsection} +Subsections can also be used. + +\section{Another Section} +This is the second section in the appendix. +\end{document} diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbsample.bib b/Master/texmf-dist/doc/latex/cnbwp/cnbsample.bib new file mode 100644 index 00000000000..5d6bc0e1b9a --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/cnbsample.bib @@ -0,0 +1,280 @@ + + +@string{ACM = {The OX Association for Computing Machinery}} + +@string{STOC = {Symposium on the Theory of Computing}} + +@article{article-minimal, + author = "L. A. Aamport", + title = "The Gnats and Gnus Document Preparation System", + journal = "\mbox{G-Animal's} Journal", + year = "1986a", +} + +@article{article-full, + author = "L. A. Aamport", + title = "The Gnats and Gnus Document Preparation System", + journal = "\mbox{G-Animal's} Journal", + year = "1986b", + volume = "41", + number = "7", + pages = "73+", + month = "Jul", + note = "This is a full ARTICLE entry", +} + +@inbook{inbook-minimal, + author = "Donald E. Knuth", + title = "Fundamental Algorithms", + publisher = "Addison-Wesley", + year = "1973", + chapter = "1.2", +} + +@inbook{inbook-full, + author = "Donald E. Knuth", + title = "Fundamental Algorithms", + volume = "1", + series = "The Art of Computer Programming", + publisher = "Addison-Wesley", + address = "{Reading, Massachusetts}", + edition = "second", + month = "10~Jan", + year = "1973a", + type = "section", + chapter = "1.2", + pages = "10--119", + note = "This is a full INBOOK entry", +} + +@book{book-minimal, + author = "Donald E. Knuth", + title = "Seminumerical Algorithms", + publisher = "Addison-Wesley", + year = "1981", +} + +@book{book-full, + author = "Donald E. Knuth", + title = "Seminumerical Algorithms", + volume = "2", + series = "The Art of Computer Programming", + publisher = "Addison-Wesley", + address = "{Reading, Massachusetts}", + edition = "second", + month = "10~Jan", + year = "1981c", + note = "This is a full BOOK entry", +} + +@booklet{booklet-full, + author = "Jill C. Knvth", + title = "The Programming of Computer Art", + howpublished = "Vernier Art Center", + address = "{Stanford, California}", + month = "Feb", + year = "1988", + note = "This is a full BOOKLET entry", +} + +@incollection{incollection-minimal, + author = "Daniel D. Lincoll", + title = "Semigroups of Recurrences", + booktitle = "High Speed Computer and Algorithm Organization", + publisher = "Academic Press", + year = "1977a", +} + +@incollection{incollection-full, + author = "Daniel D. Lincoll", + title = "Semigroups of Recurrences", + editor = "David J. Lipcoll and D. H. Lawrie and A. H. Sameh", + booktitle = "High Speed Computer and Algorithm Organization", + number = "23", + series = "Fast Computers", + chapter = "3", + type = "part", + pages = "179--183", + publisher = "Academic Press", + address = "New York", + edition = "third", + month = "Sep", + year = "1977b", + note = "This is a full INCOLLECTION entry", +} + +@book{whole-collection, + editor = "David J. Lipcoll and D. H. Lawrie and A. H. Sameh", + title = "High Speed Computer and Algorithm Organization", + booktitle = "High Speed Computer and Algorithm Organization", + number = "23", + series = "Fast Computers", + publisher = "Academic Press", + address = "New York", + edition = "third", + month = "Sep", + year = "1977c", + note = "This is a cross-referenced BOOK (collection) entry", +} + +@manual{manual-minimal, + title = "The Definitive Computer Manual", + note = "This is a minimal MANUAL entry", +} + +@manual{manual-full, + author = "Larry Manmaker", + title = "The Definitive Computer Manual", + organization = "Chips-R-Us", + address = "Silicon Valley", + edition = "silver", + month = "Apr-May", + year = "1986", + note = "This is a full MANUAL entry", +} + +@manual{manual-question, + author = "Larry Manmaker", + title = "Are Computer Manuals Useful?", + organization = "Chips-R-Us", + year = "1984", +} + +@mastersthesis{mastersthesis-minimal, + author = "{\'E}douard Masterly", + title = "Mastering Thesis Writing", + school = "Stanford University", + year = "1988a", +} + +@mastersthesis{mastersthesis-full, + author = "{\'E}douard Masterly", + title = "Mastering Thesis Writing", + school = "Stanford University", + type = "Master's project", + address = "English Department", + month = "Jun-Aug", + year = "1988b", + note = "This is a full MASTERSTHESIS entry", +} + +@misc{misc-full, + author = "Joe-Bob Missilany", + title = "Handing out random pamphlets in airports", + howpublished = "Handed out at O'Hare", + month = "Oct", + year = "1984", + note = "This is a full MISC entry", +} + + +@inproceedings{inproceedings-minimal, + author = "Alfred V. Oaho and Jeffrey D. Ullman and Mihalis Yannakakis", + title = "On Notions of Information Transfer in VLSI Circuits", + booktitle = "Proc. Fifteenth Annual " # STOC, + year = "1983a", +} + +@inproceedings{inproceedings-full, + author = "Alfred V. Oaho and Jeffrey D. Ullman and Mihalis Yannakakis", + title = "On Notions of Information Transfer in VLSI Circuits", + editor = "Wizard V. Oz and Mihalis Yannakakis", + booktitle = "Proc. Fifteenth Annual " # STOC, + number = "17", + series = "All ACM Conferences", + pages = "133--139", + month = "Mar", + year = "1983b", + address = "Boston", + organization = ACM, + publisher = "Academic Press", + note = "This is a full INPROCEDINGS entry", +} + +@proceedings{proceedings-minimal, + title = "Proc. Fifteenth Annual " # STOC, + year = "1983", +} + +@proceedings{proceedings-full, + editor = "Wizard V. Oz and Mihalis Yannakakis", + title = "Proc. Fifteenth Annual " # STOC, + number = "17", + series = "All ACM Conferences", + month = "Mar", + year = "1983", + address = "Boston", + organization = ACM, + publisher = "Academic Press", + note = "This is a full PROCEEDINGS entry", +} + +@phdthesis{phdthesis-minimal, + author = "F. Phidias Phony-Baloney", + title = "Fighting Fire with Fire: Festooning French Phrases", + school = "Fanstord University", + year = "1988a", +} + +@phdthesis{phdthesis-full, + author = "F. Phidias Phony-Baloney", + title = "Fighting Fire with Fire: Festooning French Phrases", + school = "Fanstord University", + type = "PhD Dissertation", + address = "Department of French", + month = "Jun-Aug", + year = "1988b", + note = "This is a full PHDTHESIS entry", +} + +@techreport{techreport-minimal, + author = "Tom Terrific", + title = "An {$O(n \log n / \! \log\log n)$} Sorting Algorithm", + institution = "Fanstord University", + year = "1988", +} + +@techreport{techreport-full, + author = "Tom T\'{e}rrific", + title = "An {$O(n \log n / \! \log\log n)$} Sorting Algorithm", + institution = "Fanstord University", + type = "Wishful Research Result", + number = "7", + address = "{Computer Science Department, Fanstord, California}", + month = "Oct", + year = "1988", + note = "This is a full TECHREPORT entry", +} + +@unpublished{unpublished-minimal, + author = {Ulrich \"{U}nderwood and Ned {\~N}et and Paul \={P}ot}, + title = "Lower Bounds for Wishful Research Results", + note = "Talk at Fanstord University (this is a minimal UNPUBLISHED entry)", +} + +@unpublished{unpublished-full, + author = {Ulrich \"{U}nderwood and Ned {\~N}et and Paul \={P}ot}, + title = "Lower Bounds for Wishful Research Results", + month = "{Nov, Dec}", + year = "1988", + note = "Talk at Fanstord University (this is a full UNPUBLISHED entry)", +} + +@unpublished{unpublished-minimal2, + author = "Ulrich Overwood and Ned {\~N}et and Paul \={P}ot", + title = "Lower Bounds for Wishful Research Results", +} + +@unpublished{unpublished-full2, + author = "Ulrich Overwood and Ned {\~N}et and Paul \={P}ot", + title = "Lower Bounds for Wishful Research Results", + month = "{Nov, Dec}", + year = "1988", +} + +@misc{url-demo, + author = "Zden\v{e}k Wagner", + title = "Internet Home Page", + note = "\url{http://icebearsoft.euweb.cz}" +} + diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf new file mode 100644 index 00000000000..1c5cb8c3cf5 Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex new file mode 100644 index 00000000000..61fbe6bc176 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex @@ -0,0 +1,1368 @@ +\documentclass[12pt]{article} +% Must be compiled by XeLaTeX +\def\CNBtitle{Návod\ k\ použití\ třidy\ cnbwp} +\usepackage{cnbwp-manual} +\setdefaultlanguage{czech} +\title{Návod k použití třídy \fn{cnbwp} pro psaní Working~Papers~ČNB} +\author{Zdeněk Wagner}\date{verze 2013.12} +\def\?li{\discretionary{-}{-}{-}li} +\begin{document} +\maketitle + +\begin{abstract}\noindent +Tento návod vysvětluje způsob psaní Working Papers České národní banky s použítím typografického +systému \LaTeX. Úvodní kapitoly se věnují popisu třídy \fn{cnbwp}, jež byla pro tyto účely +vytvořena. Samostatná kapitola popisuje způsob přípravy seznamu literatury. V následujících +kapitolách jsou uvedeny rady pro tvorbu a vkládání obrázků a tabulek. Kapitola~\ref{odevzdani} +obsahuje doporučení, v jaké podobě je nutné dokument odevzdat, kapitola~\ref{korektury} je vhodná +pro jazykové korektory. Jména maker, balíčků, souborů a programů, o nichž se v tomto návodu píše, +jsou setříděna v \hyperref[index]{rejstříku}. Součástí návodu jsou i vzorové soubory, jejichž výčet +najdete v kapitole~\ref{vzor}. +Třída s návodem i se vzorovými soubory byly vypracovány pro Českou národní banku. +\end{abstract} + +\tableofcontents + +\section{Typografické konvence}\label{typokon} +V tomto dokumentu bude užíváno několik typů písma se speciálním významem. Text tištěný +\texttt{neproporcionálním písmem} bude určen pro výpisy částí kódu tak, jak musí být uvedeny ve +zdrojovém souboru v \LaTeX{}u. Může se objevit i přímo v textu při popisu nějakého makra. V textu +se tedy může vyskytnout \cmd{usepackage} apod. Jména parametrů a jiných proměnných objektů budou +zapisována \textit{kurzívou}. V kapitole popisující způsob vytváření seznamu literatury budeme +používat zápis \bibi, kde \textit{typ} bude nahrazovat část jména makra. Budou tím obecně myšlena +makra \cmd{bookItem}, \cmd{miscItem} a další. + +Pro zápis jmen souborů, balíčků a tříd bude použit \fn{bezpatkový font}. Příklad vidíte v názvu +dokumentu i v abstraktu. Výjimkou bude zápis URL, kde potřebujeme jisté speciální znaky. URL proto +budeme též tisknout \texttt{neproporcionálním písmem}, např. +\zwurl{ftp://ftp.cstug.cz/pub/tex/CTAN/}, ale zde nedojde k nedorozumění. Stejným způsobem budeme +zapisovat i plné názvy souborů s uvedenou cestou, např. +\zwurl{/usr/share/texmf-dist/tex/latex/cnb/cnbwp.cls}. Tyto dlouhé názvy lze rozdělit na více +řádků, přičemž není uveden rozdělovník. + +Zdůrazněný text bude tištěn \textbf{tučným fontem}, protože kurzíva je již použita k jinému účelu. +Tučné písmo je užito i v nadpisech. V takové případě budou jména souborů, balíčků a tříd tištěna +\textbf{\fn{tučným bezpatkovým písmem}}. + +\pozor Odstavec, začínající velkým tučným červeným vykřičníkem, upozorňuje na velmi důležitou +informaci. Nerespektování uvedeného pokynu obvykle způsobí, že při zpracování dokumentu dojde k +závažné chybě, případně k chybě s exotickým hlášením, takže její příčinu nebude snadné najít. + +\section{Instalace}\label{instalace}\index{instalace} +Veškerá makra pro psaní Working Papers České národní banky jsou implementována v třídě +\fn{cnbwp.cls}. Třída je distribuována v archivním souboru \fn{cnbwp.zip}. Soubor je v archivu +uložen s cestou odpovídající standardu TDS~(\TeX\ Directory Structure). Způsob instalace se +nepatrně liší v závislosti na konkrétní distribuci \TeX{}u. + +\subsection{\MikTeX}\label{inst.miktex} +Soubor \fn{cnbwp.zip} rozbalíme do adresáře \url{X:\localtexmf}, kde \texttt{X:} označuje disk, na +němž je \MikTeX{} instalován (obvykle~\texttt{C:}). Poté otevřeme menu +\zwurl{Start/Programy/MikTeX/MikTeX Options}. Na kartě Roots si ověříme, že \url{X:\localtexmf} je +v seznamu prohledávaných adresářů. Pokud není, přidáme jej. Pak stiskneme tlačítko \texttt{Refresh +FNDB}. Úspěšnost instalace lze ověřit příkazem: + +\begin{verbatim} +findtexmf cnbwp.cls +\end{verbatim} + +\noindent Při úspěšné instalaci bude vypsána plná cesta k souboru \fn{cnbwp.cls}. + +\pozor Adresář \url{X:\localtexmf} je určen pro místní soubory, které nejsou standardní součástí +\MikTeX u. Pokud přeinstalujete \MikTeX\ novou verzí, nebude tento adresář přepsán, takže o soubory +nepřijdete. + +\subsection{\teTeX}\label{inst.tetex} +Tato distribuce je standardem v unixových systémech a je dostupná i pro OS/2 resp. eComStation. +Uvedeme si pouze instalaci v Linuxu. Instalace v OS/2 je obdobná. Liší se jen tím, že pro +oddělování adresářů je užito zpětné lomítko a musíme explicitně zadat označení disku, na nějž jsme +\teTeX\ nainstalovali. + +Soubor \fn{cnbwp.zip} rozbalíme do adresáře \url{/usr/share/texmf-local}. Při instalaci v unixových +systémech je nutno dohlédnout na to, aby soubor +\url{/usr/share/texmf-local/tex/latex/cnb/cnbwp.cls} neměl DOSové konce řádků. Po rozbalení souboru +je obvykle nutné obnovit souborovou databázi příkazem \texttt{mktexlsr}. + +Z této distribuce vychází i \TeXLive, proto vše, co bude popsáno v následující kapitole, platí i +pro \teTeX. + +\subsection{\TeXLive}\label{inst.tl} +\TeXLive\ je oblíbenou multiplatformní distribucí \TeX{}u. Vychází ze stejných zdrojů jako +\hyperref[inst.tetex]{\teTeX}, instalace je tedy podobná. Adresář, do nějž rozbalíme +\fn{cnbwp.zip}, je většinou \url{/usr/local/texlive/texmf-local} v unixových systémech, +\url{X:\TeXLive\texmf-local} ve +Windows. \TeXLive\ však lze nainstalovat do libovolného adresáře a dokonce můžeme mít instalováno +několik verzí \TeXLive\ současně. Adresář, do nějž máme \fn{cnbwp.zip} rozbalit, zjistíme příkazem: + +\begin{verbatim} +kpsewhich --expand-var=$TEXMFLOCAL +\end{verbatim} +\index{kpsewhich} + +Adresářový strom \url{texmf-local} je sdílen všemi verzemi \TeXLive\ nainstalovaných na daném +počítači. Při instalaci novější verze \TeXLive\ budou soubory nalezeny automaticky. + +\pozor Distribuce \TeXLive\ obvykle vyžaduje po přidání souborů spuštění programu +\texttt{mktexlsr}. V distribucích pro Windows pro tento účel existuje i položka v Menu \TeXLive. +Pokud programem \texttt{mktexlsr} neobnovíme databázi a před jménem adresáře s třídou \fn{cnbwp} +jsou uvedeny dva vykřičníky, \LaTeX\ nebude schopen třídu najít. Chceme\?li zjistit, zda \LaTeX\ +třídu najde, použijeme příkaz: + +\begin{verbatim} +kpsewhich cnbwp.cls -progname latex +\end{verbatim} + +\noindent +Pokud je vše v pořádku, příkaz vypíše plnou cestu k souboru \fn{cnbwp.cls}. + +\subsection{\emTeX}\label{inst.emtex} +Tato distribuce je zastaralá, Eberhard Mattes ji už neudržuje. Je vhodnější přejít na jinou +distribuci. Pokud přesto chcete používat \emTeX, rozbalte \fn{cnbwp.zip} do pomocného adresáře, v +adresáři \url{X:\emtex\texinput\latex2e} vytvořte podadresář \fn{cnbwp} a do něj zkopírujte soubory +\fn{cnbwp.cls} a \fn{cnbwpsizes.clo}. + +\subsection{Scientific Word}\label{inst.sciword} +Návod je psán pro verzi 5.5. V této verzi rozbalte \fn{cnbwp.zip} do adresáře \url{X:\sw55\TCITeX}, +v jiných verzích se pravděpodobně bude lišit jméno kořenového adresáře. Scientific Word nedodržuje +zcela přesně TDS, jména adresářů obsahují malá i velká písmena. Souborové systémy FAT a NTFS však +malá a velká písmena nerozlišují, takže by to nemělo způsobit žádný problém. + +\subsection{Jiné distribuce}\label{inst.other} +Při instalaci třídy \fn{cnbwp} do jiných distribucí je nutno řídit se manuálem dodávaným s +příslušnou distribucí. Současné distribuce jsou založeny obvykle na \fn{web2c} a dodržují standard +TDS, proto lze postupovat obdobně jako při instalaci pro \hyperref[inst.tl]{\TeXLive, viz +kap.~\ref*{inst.tl}}. + +\subsection{Zpracování dokumentů ze Scientific Wordu v~jiných +distribucích}\label{sciword.elsewhere} +Dokumenty vytvořené Scientific Wordem vyžadují určitá makra definobvaná v souborech v adresáři +\fn{SWmacros}. Tyto soubory jsou volně šiřitelné. Chcete\?li tedy dokument zpracovat v jiné +distribuci, zkopírujte celý adresář do \url{texmf-local/tex/latex} resp \url{localtexmf/tex/latex} +podle toho, jakou distribuci používáte. + +\pozor Nezapomeňte, že v některých distribucích musíte po přidání souborů obnovit databázi buď +příkazem \texttt{mktexlsr}, nebo z menu. + +\section{Testování instalace}\label{test.inst} +V mnoha distribucích lze správnost instalace otestovat příkazem \texttt{kpsewhich}, jak bylo uvedeno +v kapitole~\ref{inst.tl}. Můžeme tak ověřit, že \LaTeX\ dokáže najít třídu \fn{cnbwp} i makra z +adresáře \fn{SWmacros}. Nemáme\?li program \texttt{kpsewhich} ve své distribuci, stačí napsat +jednoduchý dokument: + +\begin{verbatim} +\documentclass{cnbwp} +\begin{document} +Hello world. +\end{document} +\end{verbatim} + +\noindent +Pokud \LaTeX\ při jeho zpracování nahlásí: + +\begin{verbatim} +! LaTeX error: file `cnbwp.cls' not found +\end{verbatim} + +\noindent +znamená to, že třída není instalována správně. V takovém případě si znovu ověřte správnost svého +postupu podle příslušné kapitoly. + +\section{Struktura dokumentu}\label{struktura} +Working paper je běžným dokumentem psaným v \LaTeX{}u, skládá se tedy z obvyklých částí: z +preambule a z těla dokumentu. Do preambule patří vše, co je uvedeno před příkazem +\cmd{begin\{document\}}. Zvláštní částí těla dokumentu je seznam literatury. Tomu bude věnována +samostatná \hyperref[references]{kapitola~\ref*{references}}. + +\subsection{Preambule}\label{preambule}\index{preambule} +Všechna základní makra jsou implementována v třídě \fn{cnbwp}. Každý dokument musí proto začínat +příkazem: + +\begin{verbatim} +\documentclass{cnbwp} +\end{verbatim} + +Příkaz \xx\cmd{documentclass} umožňuje zadávání parametrů v hranatých závorkách před jménem třídy. +Tak je tomu i v tomto případě. Třída \fn{cnbwp} je odvozena z třídy \fn{article} a přebírá všechny +parametry. Formát Working Papers je však pevně stanoven, proto parametry, jež mění +rozměry papíru, velikost písma a počet sloupců, jsou ignorovány. + +V třídě \fn{cnbwp} lze použít několik nových parametrů. První z nich se týká číslování obrázků a +tabulek. Standardně jsou tabulky a obrázky číslovány nehierarchicky. +Způsob číslování lze volit. Nastavuje se těmito parametry: + +\vb\noindent +\begin{tabular}{@{}Rl} +hierarchicalnumbering & hierarchické číslování \\ +simplenumbering & jednoduché číslování +\end{tabular}\label{numbering}\index{hierarchicalnumbering}\index{simplenumbering}\vb + +Pokud není žádný z těchto parametrů uveden, případně jsou uvedeny oba, bude se používat +jednoduché číslování. + +Popisky obrázků a tabulek jsou standardně zarovnány na levý okraj. V některých dokumentech může +vypadat esteticky lépe, budou\?li popisy zarovnány na střed. Zarovnání pro celý dokument nastavíme +těmito parametry: + +\vb\noindent +\begin{tabular}{@{}Rl} +standardcaptions & zarovnání popisků vlevo \\ +centeredcaptions & zarovnání popisků na střed +\end{tabular}\label{captions}\index{standardcaptions}\index{centeredcaptions}\vb + +Není\?li uveden žádný z těchto parametrů, nebo jsou uvedeny oba, budou popisky obrázků a tabulek +zarovnány vlevo. + +Za určitých okolností je nutné některé popisky zarovnat jinak než ostatní popisy v dokumentu. Pro +tento účel slouží makra, která budou vysvětlena později v kapitole~\ref{body}. + +Třída \fn{cnbwp} načítá implicitně balíčky, které jsou pro formátování Working Papers nezbytné. Jsou +to \xx\fn{ifpdf}, \xx\fn{mathptmx}, \xx\fn{fontenc} s parametrem T1, \xx\fn{babel} s parametry +czech a english, \xx\fn{natbib}, \xx\fn{url} a \xx\fn{keyval}. Parametry, uvedené v hranatých +závorkách v +příkazu \xx\cmd{documentclass}, jsou automaticky poslány všem těmto balíčkům, jakož i dalším +balíčkům, +které si zavedete sami později. Nejčastěji budete pravděpodobně specifikovat parametry pro balíček +\fn{natbib}. Budete\?li chtít změnit zápis citací z formátu autor-rok na číslované, použijete: + +\begin{verbatim} +\documentclass[numbered]{cnbwp} +\end{verbatim} +\index{numbered} + +Nyní můžete příkazem \xx\cmd{usepackage} načíst další balíčky potřebné pro +formátování svého +dokumentu. Lze uvést v jednou příkazu \cmd{usepackage} více balíčků oddělených čárkami, např.: + +\begin{verbatim} +\usepackage{graphicx,amsmath,dcolumn} +\end{verbatim} + +Makro \cmd{usepackage} též umožňuje uvádění parametrů v hranatých závorkách. Tyto parametry jsou +poslány pouze balíčkům uvedeným v daném příkaze. Pak ovšem nelze stejným příkazem načíst více +balíčků, protože by \LaTeX\ hlásil, že parametry nejsou v balíčku implementovány. Musíme použít +např.: + +\begin{verbatim} +\usepackage{amsmath,dcolumn} +\usepackage[dvips]{graphicx} +\usepackage[figuresright]{rotating} +\end{verbatim} + +Všem balíčkům budou poslány též parametry uvedené v příkazu \xx\cmd{documentclass}. Parametr +\texttt{draft} lze tedy specifikovat globálně: + +\begin{verbatim} +\documentclass[draft]{cnbwp} +\usepackage{graphicx} +\end{verbatim} + +\noindent +Můžeme jej však také použít jen s balíčkem \fn{graphicx}: + +\begin{verbatim} +\documentclass{cnbwp} +\usepackage[draft]{graphicx} +\end{verbatim} + +\noindent +V obou případech budou obrázky nahrazeny obdélníkovým rámečkem velikosti obrázku, v němž bude +vytištěno jméno souboru. V prvním případě budou navíc přetečené (over\-ful) boxy označeny na okraji +černými obdélníčky. + +\pozor Balíček \xx\fn{hyperref} používá jinou definici makra \xx\cmd{url} než balíček \xx\fn{url}. +Tato +definice navíc způsobuje konflikty při zápisu odkazů. Třída \fn{cnbwp} proto zkopíruje definici +\cmd{url} z balíčku \fn{url} do pomocného makra \cmd{CNBurl} a po provedení \cmd{begin\{document\}} +je definice makra \cmd{url} obnovena tak, aby odpovídala balíčku \fn{url}. Chcete\?li používat makro +z balíčku \fn{hyperref}, uložte si jej po zavedení balíčku do makra s vhodným názvem, např. pomocí: + +\begin{verbatim} +\let\MYurl\url +\end{verbatim} + +\pozor +Nikdy neměňte definici makra \cmd{url}. Makra pro formátování seznamu literatury na jeho definici +spoléhají. Makro \cmd{url} může být použito v databázi citací zpracovávané \BibTeX em, takže v +dokumentu jej nemusíte přímo vidět. Při změně definice bude \LaTeX\ hlásit podivné chyby a +formátování části dokumentu se pravděpodobně zcela zhroutí. + +\pozor +\LaTeX\ nevyžaduje používání oddělených jmenných souborů pro jednotlivé balíčky. Může se tedy stát, +že balíčky obsahují konfliktní definice, jež způsobí těžko předvídatelné chyby. Kromě výše zmíněné +kolize nelze současně s balíčkem \xx\fn{url} použít balíček \xx\fn{path}. Proto je vhodné začínat s +minimálním dokumentem a používat jen ty balíčky, jež jsou pro zpracování skutečně nezbytné. Kolize +je nutno hledat a odstraňovat metodou pokusu a omylu. Někdy pomůže i změna pořadí zavádění balíčků. + +V závěru preambule je vhodné definovat vlastní makra potřebná v celém dokumentu. Pro definici maker +se zvlášť hodí příkaz \xx\cmd{DeclareRobustCommand}. Má stejnou syntaxi jako \xx\cmd{newcommand}. +Liší se jen tím, že definované makro je robustní. Při použití takto definovaného makra v příkazech +\cmd{section} a \cmd{subsection} nemusíte používat \xx\cmd{protect}. + +\subsection{Titulní stránka}\label{titlepage} +Working Paper musí vždy začínat titulní stránkou, která se skládá z několika součástí. Jim budou +věnovány následující podkapitoly. + +\subsubsection{Nadpis}\label{nadpis} +Nadpis je na pomezí preambule a těla dokumentu. Ve skutečnosti některá makra lze uvést již v +preambuli. Přesněji řečeno, makra, definující název, jména autorů a poděkování, lze zapsat kamkoliv mezi +\cmd{documentclass} a \cmd{maketitle}. Jejich uvedení na samém začátku souboru tedy může +být užitečné. + +Název práce zadáváme jako argument makra \xx\cmd{title}. Název bude vytištěn později, až uvedeme +příkaz \xx\cmd{maketitle}, ale dostane se též do záhlaví: + +\begin{verbatim} +\title{Fidlovačka aneb žádný hněv a žádná rvačka} +\end{verbatim} + +Jména autorů zapisujeme pomocí makra \xx\cmd{author}, které vyžaduje dva parametry. V prvním +parametru je uvedeno plné jméno, v druhém parametru název instituce. Makro se uvede pro každého +autora samostatně např. takto: + +\begin{verbatim} +\author{Kapitán Nemo}{Nautilus} +\author{Robinson Crusoe}{Pustý ostrov} +\end{verbatim} + +Makro \xx\cmd{maketitle} doplní před jméno posledního autora spojku „and“ podle britských pravidel, +tj. čárka je uvedena pouze v případě, že práce má více než dva autory. +Jména autorů jsou též přenesena do záhlaví. + +\subsubsection{Poděkování}\label{ack} +Poděkování je nepovinnou součástí Working Paper. Uvádíme jej v argumentu makra +\xx\cmd{acknowledge}. + +Název práce bude vytištěn uvedením makra \xx\cmd{maketitle}. Toto makro se musí vyskytovat až za +\cmd{begin\{document\}}. + +\subsubsection{Abstrakt}\label{abstrakt} +Práce musí obsahovat abstrakt ve dvou jazycích, nejprve anglicky, pak česky. Anglický abstrakt +uvádíme v prostředí \xx\texttt{abstract}, český v prostředí \xx\texttt{abstrakt}, tj. například takto: + +\begin{verbatim} +\begin{abstract} +Place the abstract here. + +The abstract may contain more than one paragraph. A blank line should be left +between the paragraphs. No blank line is needed at the end of the abstract. +\end{abstract} + +\begin{abstrakt} +Zde uvedeme abstrakt práce. + +Abstrakt může obsahovat více odstavců. Mezi odstavci ponecháme +prázdný řádek. Na konci abstraktu prázdný řádek být nemusí. +\end{abstrakt} +\end{verbatim} + +V prostředí \xx\texttt{abstrakt} je automaticky aktivováno české dělení slov. + +\subsubsection{JEL Codes}\label{jel} +JEL codes uvádíme v makru \xx\cmd{JEL}: + +\begin{verbatim} +\JEL{E22, E23, E32, E52} +\end{verbatim} + +\subsubsection{Klíčová slova}\label{kwd} +Klíčová slova jsou posledním elementem titulní stránky. Zadáváme je pomocí výše zmíněného makra +\xx\cmd{Keywords}: + +\begin{verbatim} +\Keywords{Nautilus, moře, 2000 mil, velryba, malström} +\end{verbatim} + +\subsection{Nontechnical Summary}\label{nontech} +Nontechnical Summary je text v rozsahu přibližně jedné stránky a v dokumentu je vytištěn na +samostatné straně. Zapisuje se, podobně jako abstrakt, do prostředí \xx\texttt{nontechsummary}: + +\begin{verbatim} +\begin{nontechsummary} +V tomto prostředí zapisujeme Nontechnical Summary. Nadpis bude vyvořen +automaticky a nebude číslován. + +Text se obvykle skládá z několika odstavců, jež jsou od sebe odděleny +prázdným řádkem. +\end{nontechsummary} +\end{verbatim} + +\pozor +Makro \hyperref[kwd]{\xx\cmd{Keywords}} a prostředí \xx\texttt{nontechsummary} vynucují přechod na +novou +stránku. Pokud oba tyto elementy chybí a stránkový +zlom je vynucen ručně příkazem \cmd{newpage} nebo \cmd{clearpage}, nebude část dokumentu +naformátována správně. + +\subsection{Makra pro tělo dokumentu}\label{body} +Tělo dokumentu je psáno stejně jako by byla použita běžná třída \fn{article}. Sekce tedy uvádíme +makrem \xx\cmd{section}, podsekce \xx\cmd{subsection}. Je implementován i příkaz +\xx\cmd{subsubsection}. S členěním až na \xx\cmd{paragraph} a \xx\cmd{subparagraph} nebylo při +návrhu počítáno, ale syntaktická chyba při použítí těchto maker nevznikne. + +Popisky tabulek a obrázků zapisujeme do makra \xx\cmd{caption}. Popisek bude zarovnán podle toho, +jaký +parametr jsme uvedli v preambuli (viz \hyperref[captions]{str.~\pageref*{captions}}). Chceme\?li +jeden popisek zarovnat jinak, uvedeme explicitně \xx\cmd{standardcaption} pro zarovnání vlevo a +\xx\cmd{centeredcaption} pro zarovnání na střed. Způsob číslování vždy odpovídá parametrům uvedeným +v preambuli, jež jsou vysvětlena \hyperref[numbering]{na straně~\pageref*{numbering}}. V dokumentu +jej změnit nelze. Z typografického hlediska to ani nemá smysl. + +V popisu tabulky či obrázku lze uvést poznámku pomocí makra \xx\cmd{Note} a informaci o zdroji +pomocí makra \xx\cmd{Source}. Tato makra se zpravidla uvádějí až pod makrem \xx\cmd{caption} podle +tohoto příkladu: + +\begin{verbatim} +\Note{Value Added Tax (VAT), Excises (E), Personal Income Tax (PIT), + Social Security Contributions (SSC), Inheritance Tax (IT), + Corporate Income Tax (CIT), Other Age-Specific Revenues (OR).} +\Source{CNB} +\end{verbatim} + +\section{Seznam literatury}\label{references} +Seznam literatury (bibliografii) lze zapisovat dvěma způsoby. V obou případech je k vlastnímu +formátování využit balíček \xx\fn{natbib}, jenž je automaticky načítán třídou \fn{cnbwp}. +Vzhled dokumentu tedy nezávisí na na tom, která metoda byla pro zápis seznamu literatury zvolena. + +V kapitole~\ref{bibtex} bude stručně uveden způsob vytváření seznamu literatury při použití +\BibTeX{}u. V kapitole~\ref{makra} a jejích podkapitolách budou podrobně vysvětlena makra vytvořená +pro Working Papers České národní banky. + +\subsection{Zápis pomocí \BibTeX{}u}\label{bibtex}\index{BibTeX@\BibTeX} +Použití \BibTeX{}u je popsáno v dokumentu Orena Patashnika \uv{\BibTeX ing}, jenž je součástí +běžných distribucí \TeX{}u. Využijeme stylu \xx\fn{abbrvcnb} odvozeného z bibliografických stylů balíčku +\xx\fn{natbib}. Předpokládejme, že bibliografickou databázi máme uloženu v souboru +\fn{odkazy.bib}. V \LaTeX ovém dokumentu pak uvedeme: + +\begin{verbatim} +\bibliographystyle{abbrvcnb} +\bibliography{odkazy} +\end{verbatim} +\index{abbrvnat}\index{bibliography@\cmd {bibliography}}\index{bibliographystyle@\cmd +{bibliographystyle}} + +\noindent +Po zpracování dokumentu \LaTeX{}em spustíme \BibTeX: + +\begin{verbatim} +bibtex dokument +\end{verbatim} + +\noindent +(Místo slova \textit{dokument} doplňte název souboru, zde jsme předpokládali, že dokument je uložen +v souboru \fn{dokument.tex}.) Pak je nutno zpracovat dokument dvakrát \LaTeX{}em. Výjimečně je +nutný ještě třetí průchod, pokud po doplnění odkazů do textu došlo ke stránkovému posunu. + +URL dokumentů jsou většinou dlouhé řetězce, v nichž nefunguje automatické dělení slov, případně se +slova dělí na nevhodných místech a může dojít ke zmatení. Problém je řešen v souladu se standardy +pro zápis URL\index{URL} v balíčku \xx\fn{url}, který je též implicitně načítán třídou \fn{cnbwp}. +URL se obvykle vyskytuje v položce \textit{note}\index{note}. Tato položka by tedy měla být psána +způsobem: + +\begin{verbatim} +note = "\url{ftp://ftp.cstug.cz/pub/tex/CTAN/}", +\end{verbatim} +\index{url@\cmd {url}} + +\subsection{Zápis pomocí speciálních maker}\label{makra} +Seznam literatury můžeme psát speciálními makry přímo v \LaTeX ovém souboru v prostředí +\xx\texttt{thebibliography}. Toto prostředí má jeden povinný parametr, z nějž se určuje šířka +potřebná +pro pořadové číslo. \BibTeX{} do tohoto parametru zapíše počet citací. Lze však uvést jakýkoliv +text vhodné šířky, například \texttt{XX}, jak je použito v příkladu (viz +\hyperref[priloha]{Příloha}). Jednotlivé citace jsou zapisovány ve tvaru: + +\medskip\noindent +\bibi\texttt{[}\textit{text citace}\texttt{]}\texttt{\{}\textit{návěští}\texttt{\}}% +\texttt{\{}\textit{obsah citace}\texttt{\}} + +\medskip\noindent +Místo slova \textit{typ} musíme uvést odpovídající typ citované práce. Použijeme identifikátor +odvozený ze standardních typů definovaných v \BibTeX{}u. Jejich seznam a popis bude uveden v +\hyperref[typy]{kapitole~\ref*{typy}}. + +První dva parametry (nepovinný a povinný) mají stejný význam jako u makra \xx\cmd{bibitem}. Povinný +parametr \textit{návěští} je využíván při citování v textu v makru \xx\cmd{cite}, nepovinný +parametr +\textit{text citace} obsahuje údaj, který je v místě citace zapsán v textu. Tento parametr má +obecně tvar: + +\medskip\noindent +\texttt{[}\textit{krátký text}\texttt{(}\textit{rok}\texttt{)}\textit{dlouhý text}\texttt{]} + +\medskip +Balíček \fn{natbib} dokáže volit mezi uvedením krátkého a dlouhého textu. Pokud má citovaná +práce pouze jednoho autora, \textit{dlouhý text} se neuvádí. Celý parametr pak můžeme zapsat ve +tvaru: + +\begin{verbatim} +[Pytlík(1984)] +\end{verbatim} + +Obě varianty se uvádějí u prací s více autory. Chceme\?li například citovat knihu vydanou v roce +1984, jejímiž autory jsou Brouk Pytlík, Ferda Mravenec a Bába Krtonožka, zapíšeme parametr ve +tvaru: + +\begin{verbatim} +[Pytlík et.~al.(1984)Pytlík, Mravenec a Krtonožka] +\end{verbatim} + +\pozor +Při zpracování \BibTeX em jsou informace do makra \bibi\ vytvářeny automaticky. Pokud zadáváme +informace ručně, musíme správně doplnit parametr v hranatých závorkách. Informace v kulatých +závorkách tedy musí být identická s hodnotou pole \;year , jak je uvedeno mimo jiné v prvních dvou +položkách v příkladu v příloze~\ref{priloha}. \BibTeX\ seřadí citace abecedně, při přímém zápisu +musí citace správně seřadit autor. + +Při volbě formátu textu citace vycházíme z požadavků, jak má výsledný text vypadat. Pokud +nepožadujeme dlouhou variantu odkazů, nemusíme ji v makru \bibi\ uvádět. + +Balíček \xx\fn{natbib} nutně vyžaduje kulaté závorky v nepovinném parametru. Pokud není znám rok +zveřejnění citované práce, musíme uvést alespoň prázdné závorky~\texttt{()}. + +V parametru \textit{obsah citace} zadáváme odkaz na citovanou práci. Formát parametru bude popsán v +\hyperref[obsah]{kapitole~\ref*{obsah}}. + +\subsubsection{Typy citovaných prací}\label{typy} +Makra použitá pro citace prací vycházejí ze standardních typů definovaných v \BibTeX{}u. Zde +uvedeme jejich výčet a stručný popis včetně seznamu povinných a nepovinných položek. Význam položek +a způsob jejich zápisu bude vysvětlen v \hyperref[obsah]{následující kapitole}. + +\begin{description} +\item[\xx\cmd{articleItem}] článek v časopisu. Povinné položky: \;author , \;title , \;journal , +\;year . Nepovinné položky: \;volume , \;number , \;pages , \;month , \;note . + +\item[\xx\cmd{bookItem}] kniha s uvedeným vydavatelem. Povinné položky: \;author \ nebo \;editor , +\;title , \;publisher , \;year . Nepovinné položky: \;volume \ nebo \;number , \;series , \;address +, \;edition , \;month , \;note . + +\item[\xx\cmd{bookletItem}] vytištěná a svázaná publikace bez uvedeného nakladatele a instituce. +Povinná položka: \;title . Nepovinné položky: \;author , \;howpublished , \;address , \;edition , +\;month , \;year , \;note . + +\item[\xx\cmd{conferenceItem}] viz \xx\cmd{inproceedingsItem}. + +\item[\xx\cmd{inbookItem}] část knihy, obvykle kapitola nebo rozmezí stránek. Povinné položky: +\;author \ nebo \;editor , \;title , \;chapter \ a/nebo \;pages , \;publisher , \;year . Nepovinné +položky: \;volume \ nebo \;number , \;series , \;type , \;address , \;edition , \;month , \;note . +Význam položky \;type \ bude vysvětlen \hyperref[type]{na straně~\pageref*{type}}. + +\item[\xx\cmd{incollectionItem}] část knihy mající vlastní název. Povinné položky: \;author , +\;title +, \;booktitle , \;publisher , \;year . Nepovinné položky: \;editor , \;volume \ nebo \;number , +\;series , \;type , \;chapter , \;pages , \;address , \;edition , \;month , \;note . +Položka \;type \ má stejný význam jako u předchozího typu citace a je vysvětlena \hyperref[type]{na +straně~\pageref*{type}}. + +\item[\xx\cmd{inproceedingsItem}] článek ve sborníku konference. Povinné položky: \;author , +\;title , +\;booktitle , \;year . Nepovinné položky: \;editor , \;volume \ nebo \;number , \;series , \;pages , +\;address , \;edition , \;month , \;organization , \;publisher , \;note . + +\item[\xx\cmd{manualItem}] technická dokumentace. Povinná položka: \;title . Nepovinné položky: +\;author , \;organization , \;address , \;edition , \;month , \;year , \;note . + +\item[\xx\cmd{mastersthesisItem}] diplomová práce. Povinné položky: \;author , \;title , \;school , +\;year . Nepovinné položky: \;type , \;address , \;month , \;note . + +\item[\xx\cmd{miscItem}] jiný typ užívaný v případě, že se nic jiného nehodí. Má pouze nepovinné +položky \;author , \;title , \;howpublished , \;month , \;year , \;note . + +\item[\xx\cmd{phdthesisItem}] disertační práce. Povinné položky: \;author , \;title , \;school , +\;year . Nepovinné položky: \;type , \;address , \;month , \;note . + +\item[\xx\cmd{proceedingsItem}] sborník konference. Povinné položky: \;title , \;year . Nepovinné +položky: \;editor , \;volume \ nebo \;number , \;series , \;address , \;month , \;organization , +\;publisher , \;note . + +\item[\xx\cmd{techreportItem}] zpráva publikovaná školou nebo jinou institucí obvykle v číslované +sérii. Povinné položky: \;author , \;title , \;institution , \;year . Nepovinné položky: \;type , +\;number , \;address , \;month , \;note . + +\item[\xx\cmd{unpublishedItem}] dokument mající autora a název, avšak formálně nepublikovaný. +Povinné položky: \;author , \;title , \;note . Nepovinné položky: \;month , \;year . + +\end{description} + + +\subsubsection{Specifikace položek}\label{obsah} +V posledním parametru maker \bibi\ je zapsán obsah jednotlivých položek citované práce. Položky se +uvádějí ve tvaru: + +\begin{verbatim} +{jméno1 = hodnota1, jméno2 = hodnota2, jméno3 = hodnota3} +\end{verbatim} + +\noindent +Mezery okolo znaků rovnítek a čárek, oddělujících jednotlivé položky, jsou ignorovány. +Ignorují +se též prázdné položky. Lze tedy napsat více čárek za sebou, čárku před první položkou a za +poslední +položkou. Všude, kde je povolena mezera, smíme též ukončit řádek. Kromě toho \TeX{} ignoruje +všechny mezery na počátku řádku. Seznam literatury proto můžeme zapisovat přehledně podobným +stylem, jaký je použit v \hyperref[priloha]{příloze}. + +Položky se vzájemně oddělují čárkami. Pokud má být uvedena čárka v hodnotě položky, musíme celou +hodnotu uzavřít do složených závorek. Tento případ se bude nejčastěji vyskytovat při citaci prací s +více autory. Má\?li publikace pouze dva autory, jejichž jména jsou spojena spojkou \textit{a} (v +anglických pracích spojkou \textit{and}), budeme psát + +\begin{verbatim} +author = Ferda Mravenec a Brouk Pytlík, ... +\end{verbatim} + +\noindent +Zde čárka ukončuje položku. Máme\?li více autorů, musíme jejich jména uzavřít do závorek takto: + +\begin{verbatim} +author = {Ferda Mravenec, Brouk Pytlík a Bába Krtonožka}, ... +\end{verbatim} + +\noindent +První čárka (uvnitř závorek) je součástí seznamu autorů, druhá čárka ukončuje položku. V +anglických pracích uvádíme čárku před \textit{and} v případě, kdy citace má více než dna +autory. + +\pozor Zapomenutá +čárka nebo vynechané závorky okolo hodnoty obsahující čárku mají za následek chybové hlášení o +neznámé položce s podivným jménem. Někdy se kvůli chybám tohoto typu může dokonce ztratit velká +část seznamu literatury i následujících částí dokumentu. + +V databázových souborech určených pro zpracování \BibTeX{}em často používáme složené závorky, jimiž +zabraňujeme konverzi na malá či velká písmena. \LaTeX\ žádné konverze neprovádí, proto závorky +nepotřebujeme. Můžeme však použít různá makra, např. \xx\cmd{mbox} pro zabránění nevhodnému dělení, +\xx\cmd{-} k určení vhodného místa dělení slova, a dokonce si můžeme přímo uvnitř prostředi +\xx\texttt{thebibliography} definovat vlastní makra, jež budou v ostatních částech dokumentu +neznámá (nebo definovaná jinak). + +Položky mohou být zapsány v libovolném pořadí, lze však použít pouze následující: + +\begin{description} +\xitem[address] adresa nakladatele nebo instituce (např. školy u diplomových a disertačních prací) +\xitem[author] jména autorů v tom formátu, jak mají být uvedena, na rozdíl od \BibTeX{}u nedochází +k žádnému přeformátování (křestní jméno nebude zkráceno na iniciálu apod.). +\xitem[booktitle] název knihy, jejíž část je citována. +\xitem[chapter] číslo kapitoly. +\xitem[edition] vydání, mělo by to být pořadové číslo, které může být zadáno i slovně, např. +\textit{Second}. +\xitem[editor] jména editorů, zapisují se ve stejném formátu jako jména autorů. +\xitem[howpublished] způsob, jak byla zveřejněna práce neobvyklého typu. +\xitem[institution] instituce, která sponzorovala technickou zprávu (\cmd{techreportItem}). +\xitem[journal] jméno časopisu, resp. jeho zkratka. +\xitem[month] měsíc zveřejnění práce, v této položce lze uvést i den. +\xitem[note] vysvětlující poznámka. Tato položka je sice uvedena v příkladech v +\hyperref[priloha]{příloze}, ale v praxi ji budete užívat jen zřídka. Slouží k uvedení +URL\index{URL} prací +zveřejněných na Internetu, přičemž pro automatické a správné dělení dlouhých URL na více řádků se +používá balíček \xx\fn{url} načítaný třídou \fn{cnbwp}. URL tedy budete zadávat ve tvaru: + +\begin{verbatim} +note = \url{ftp://ftp.cstug.cz/pub/tex/CTAN/}, ... +\end{verbatim} + +\xitem[number] číslo časopisu, technické zprávy nebo práce vydávané v sérii. +\xitem[organization] organizace, která pořádala konferenci, nebo vydala manuál. +\xitem[pages] rozmezí stran. +\xitem[publisher] jméno vydavatele. +\xitem[school] škola, kde byla obhájena diplomová nebo disertační práce. +\xitem[series] jméno série (edice) knih. +\xitem[title] název práce. +\xitem[type] typ práce\label{type}, např. \textit{Research Note}. V citacích \xx\cmd{inbookItem} a +\xx\cmd{incollectionItem} specifikuje text odpovídající položce \;chapter \index{chapter}. Standardně +se doplní \texttt{chapter}, ale můžete zadat např. \texttt{section} nebo \texttt{kapitola}. +\xitem[volume] svazek časopisu nebo vícesvazkové knihy. +\xitem[year] rok vydání, u nepublikovaných prací rok napsání. +\end{description} + +Členění na položky nemusí být dodržováno zcela striktně. Můžeme informace oddělit do samostatných +položek: + +\begin{verbatim} +publisher = John Wiley \& Sons, address = New York, ... +\end{verbatim} + +Seznam literatury, zapsaný přímo v \LaTeX ovém dokumentu, zřejmě nebude sloužit pro další strojové +zpracování. Může být proto účelné spojení obou informací do jedné položky: + +\begin{verbatim} +publisher = {John Wiley \& Sons, New York}, ... +\end{verbatim} + +\noindent Zde jsme museli použít závorky, protože spojená informace obsahuje čárku. + +Makra automaticky doplňují tečky nebo čárky za jednotlivé položky, ale pouze v případě, že text +nekončí interpunkčním znaménkem. Mějme název zapsaný: + +\begin{verbatim} +title = Can we spend less money for more music?, ... +\end{verbatim} + +\noindent V tomto případě nebude interpunkční znaménko doplněno, a to ani v případě, kdyby celý +název byl uzavřen ve složených závorkách. + +\subsection{Jak zvolit typ citované práce} +Typ citované práce musíme zvolit jak při zápisu do databáze pro \BibTeX, tak při použití maker +\bibi. Názvy typů jsou intuitivní a správná volba by měla být snadná. Ve sporných případech pomůže, +když si uvědomíme, které položky jsou povinné a které nepovinné. Zvolíme takový typ, jehož +struktura odpovídá účelu. + +Některé položky jsou zdánlivě nadbytečné, např. diplomové (\xx\cmd{mastersthesisItem}) a disertační +(\xx\cmd{phdthesisItem})\footnote{V \BibTeX{}u \xx\texttt{@mastersthesis} a +\xx\texttt{@phdthesis}.} práce +jsou formátovány zcela stejně, liší se jen defaultní hodnota nepovinné položky \;type . Chceme\?li +citovat obdobnou publikaci, např. habilitační práci, můžeme použít kterýkoliv typ a specifikujeme +nepovinnou položku: + +\begin{verbatim} +type = Habilitační práce, ... +\end{verbatim} + +Práce dostupné pouze z Internetu nejsou formálně publikovány. Používá se pro ně +\xx\cmd{unpublishedItem}, v \xx\BibTeX{}u \texttt{@unpublished}. URL práce se uvede v položce +\;note \index{note}, jak bylo uvedeno výše. + +\subsection{Technická poznámka} +V příkazu \cmd{documentclass} lze uvádět nepovinné parametry v hranatých závorkách. Tyto parametry +jsou poslány jak třídě \fn{article}, z níž je třída \fn{cnbwp} odvozena, tak všem načítaným +balíčkům. Lze tedy specifikovat parametry pro balíček \xx\fn{natbib}. Například parametrem +\xx\texttt{numbered} změníme citace ve tvaru autor-rok na číslované. + +\pozor +Poslední parametr maker \bibi\ je zpracován pomocí balíčku \xx\fn{keyval}. Z toho vyplývá, že +smíme používat výhradně deklarované položky. Nelze vytvořit neznámou položku pro přidání komentáře, +který se nemá tisknout. Takový pokus vede k chybě při zpracování dokumentu. Komentáře zapisujeme za +znak \textit{procento} jako v běžných \LaTeX ových textech. + +Nepovinný parametr a první povinný parametr maker \bibi\ jsou beze změny předány makru +\xx\cmd{bibitem}. + +V případě, že požadovanému účelu nevyhovuje žádný z typů uvedených v kapitole~\ref{typy}, lze +použít přímo makro \xx\cmd{bibitem} a vše naformátovat ručně. + +\section{Vkládání obrázků a~tabulek do textu}\label{vkladani} +Obrázky a tabulky vkládáme do textu prostřednictvím plovoucích prostředí \xx\texttt{figure} a +\xx\texttt{table}. V hranatých závorkách uvádíme nepovinně parametr, kde má být plovoucí objekt +umístěn. Tyto parametry \LaTeX\ ovšem chápe pouze jako doporučení. Nelze\?li jim vyhovět, pokusí se +o umístění plovoucího objektu na samostatnou stránku. Není\?li ani to možné, umístí příslušný +plovoucí objekt a všechny následující na konec dokumentu resp. kapitoly (v případě knih). Je tedy +nutno povolit více možností, aby si \LaTeX\ mohl vybrat. Uvedení samotného specifikátoru +[h]\index{h@[h]} obvykle vede právě k tomu, že je plovoucí objekt odsunut na samostatnou stránku či +konec dokumentu. O vynucené umístění plovoucího objektu na konkrétní místo si povíme v +kapitole~\ref{vynucene}. + +\pozor Zde je vhodné místo k vysvětlení rozdílu mezi makry \xx\cmd{newpage} a \xx\cmd{clearpage} či +\xx\cmd{cleardoublepage}. První dvě vynutí přechod na novou stránku, \cmd{cleardoublepage} na +lichou stránku\footnote{To platí pouze pro oboustranně tištěné dokumenty, které mají explicitně či +implicitně specifikován parametr \xx\texttt{twoside}. Třída \fn{cnbwp} jej deklaruje implicitně.}. +Makra \cmd{clearpage} a \cmd{cleardoublepage} navíc vytisknou všechny dosud neumístěné plovoucí +objekty uschované ve vyrovnávací paměti. + +Algoritmus umisťování plovoucích objektů se řídí hodnotami několika registrů. Hodnoty jsou voleny +pro běžné dokumenty, ale pro technické zprávy s mnoha tabulkami a obrázky nemusí být vyhovující. +Registr \xx\cmd{topfraction} určuje maximální část stránky, kterou smí zabrat plovoucí objekt +nahoře, \xx\cmd{bottomfraction} analogicky vymezuje maximální podíl stránky pro plovoucí objekty +umístěné dole a \xx\cmd{textfraction} je minimální část stránky, již musí zabírat text. Registry se +mění příkazem \xx\cmd{renewcommand}, neboť se jedná o makra. V dokumentech s mnoha plovoucími +objekty je můžeme nastavit na extrémní hodnoty pomocí: + +\begin{verbatim} +\renewcommand\topfraction{.99} +\renewcommand\bottomfraction{.99} +\renewcommand\textfraction{.01} +\end{verbatim} + +Plovoucí stránka je vytvořena pouze tehdy, pokud plovoucí objekty zaujímají alespoň část +definovanou v rexistru \xx\cmd{floatpagefraction}. Tuto hodnotu obvykle není nutno měnit. + +\LaTeX\ má ještě čítače, jimiž nastavujeme nejvyšší povolený počet plovoucích objektů. Čítač +\xx\texttt{topnumber} určuje maximální počet plovoucích objektů nahoře, \xx\texttt{bottomnumber} +dole a \xx\cmd{totalnumber} omezuje celkový počet všech plovoucích objektů na stránce. Obvykle je +nemusíte měnit, k modifikacím by bylo nuno přistoupit jen v případě, že by dokument obsahoval velký +počet velmi malých plovoucích objektů\footnote{Pak by ale stálo za úvahu jejich seskupení s +využitím balíčku \xx\fn{subfigure}.}. Hodnoty se nastavují příkazem \xx\cmd{setcounter}, například: + +\begin{verbatim} +\setcounter{totalnumber}{17} +\end{verbatim} + +\pozor Aktuální hodnoty registrů lze zjistit různými způsoby. Zde si předvedeme použití příkazů +\TeX{}u \xx\cmd{show} a \xx\cmd{showthe}. První z nich slouží k zobrazení definice makra. Použijeme +jej tedy ke zjištění hodnoty registru typu \textit{fraction}. Registr typu \textit{number} musíme +vypsat pomocí \cmd{showthe}. Následující dva řádky vypíší aktuální hodnoty registrů +\cmd{topfraction} a \cmd{topnumber}: + +\begin{verbatim} +\show\topfraction +\showthe\value{topnumber} +\end{verbatim} + +\noindent Na terminálu a v log-souboru (zde jsme vypustili prázdné řádky) pak najdeme výpis podobný +tomuto: + +\begin{verbatim} +> \topfraction=\long macro: +->.7. +l.875 \show\topfraction + +> 2. + \c@topnumber +l.876 \showthe\value{topnumber} +\end{verbatim} + +\noindent Zjistili jsme tedy, že \cmd{topfraction} = 0.7 a \texttt{topnumber} = 2. Tečky na konec +definic přidávají příkazy \cmd{show} a \cmd{showthe}. + +\subsection{Vynucené umístění plovoucího objektu na konkrétní místo}\label{vynucene} +V některých případech se stává, že plovoucí objekt \textbf{musí} nezbyně být na jistém konkrétním +místě. Potřebujeme tedy \LaTeX{}u sdělit, že specifikátor nemyslíme jako doporučený, nýbrž jako +kategorický příkaz. K tomu slouží specifikátor [H]\index{H@[H]}. Původně byl implementován v +balíčku \xx\fn{here}, ale ten již není v běžných distribucích. Tento specifikátor je nyní +implementován v balíčku \xx\fn{float}. + +\pozor Při použití specifikátoru [H] prostředí přestává být plovoucím. \LaTeX\ jej umístí na +požadované místo bez ohledu na to, zda se do zbývajícího prostoru na stránce vejde. Používejte +proto tento specifikátor až ve finální verzi dokumentu. + +\section{Příprava obrázků}\label{obrazky} +Tato kapitola se bude věnovat práci s obrázky. Nejprve si vysvětlíme rozdíly mezi hlavními +grafickými formáty. Dále si popíšeme, jak načteme obrázky do dokumentu, a nakonec uvedeme několik +postupů, jak obrázky připravovat a jak opravit obrázky vytvořené špatně napsanými programy. + +\subsection{Grafické formáty}\label{graform} +Obrázky podle formátu dělíme na dva základní typy: bitmapové a vektorové. Bitmapové obrázky +představují matici hodnot (rastr), přičemž každý prvek nese informaci o barvě zobrazeného bodu +nenulové +velikosti. Vektorové obrázky se liší tím, že jsou v nich křivky popsány matematickými rovnicemi a +ke každé křivce je přidána informace o tloušťce čáry, její barvě, případně o barvě, jíž má být +vyplněna ohraničená plocha. K převodu na rastr dochází až v okamžiku zobrazení na monitoru či +tisku. + +Zdálo by se, že není velký rozdíl ve výsledku, protože vektorový obrázek se také musí vyrastrovat, +ale opak je pravdou. Zásadní rozdíl je v tom, že každé zobrazovací či tiskové zařízení má jiné +rozlišení, tj. jinou hustotu rastru. Vektorový obrázek se rastruje v okamžiku zobrazení, je tedy +rastrován na konkrétní rozlišení. Záleží též na velikosti a tvaru tiskových bodů. Podle toho se +určuje barva bodů, jež jsou matematicky na hranici mezi obarvenou a neobarvenou částí roviny. +Rasterizační algoritmus zobrazovacího zařízení je vypočte tak, aby křivky vypadaly hladce. + +Při zobrazení bitmapového obrázku je nutno zachovat předepsanou velikost, přestože byl vytvořen pro +jiné rozlišení. Nezbývá tedy jiná možnost než body dopočítat interpolací. V bitmapovém obrázku již +nemáme informaci, zda bod ležel na nějaké křivce. Přestože ovladač příslušného zažízení zná +velikost a tvar tiskových bodů, nemá dost informací, aby je při rastrování mohl použít. + +Příklad vektorového a bitmapového grafu je uveden na obrázku~\ref{vectbitfig}. Obrázek je jedním z +demonstračních příkladů dodávaných s programem gnuplot. Ze stejného zdroje byla vytvořena vektorová +i bitmapová podoba. + +\begin{figure}[p] +{\centering +\includegraphics[width=.61\textwidth]{graph18.pdf} + +\hrule \vskip 2dd + +\includegraphics[width=.61\textwidth]{graph18.png} + +\hrule \vskip 2dd + +\includegraphics[width=.61\textwidth]{graph18.jpg} + +} +\caption{Srovnání vektorového obrázku (nahoře) s~bitmapovým s~bezztrátovou kompresí (uprostřed) +a~ztrátovou kompresí JPEG (dole)}\label{vectbitfig} +\end{figure} + +Horní obrázek je vektorový. Byl exportován jako EPS\index{EPS} (Encapsulated +Post\-Script\index{Encapsulated PostScript}) a převeden na PDF, aby mohl být načten pdf\TeX em nebo +\XeTeX em. Na +obrazovce mohou být křivky zubaté, protože rozlišení obrazovky je malé, ale po vytištění na +kvalitní tiskárně zuby zmizí. + +Střední obrázek byl exportován ve formátu PNG\index{PNG} (Portable Network Graphics\index{Portable +Network Graphics}). Rozdíl v kvalitě zobrazení je zřejmý, zejména výrazné je zhoršení kvality +písma. Při určitém zvětšení mohou zcela zmizet osy. Osy zůstanou zubaté i po vytištění na tiskárně +s vysokým rozlišením, neboť, jak již bylo napsáno, ovladač příslušného zařízení neví, že body měly +ležet na jedné přímce, a pouze \uv{schody} přepočítá na jiné rozlišení. + +Rastrová data zabírají příliš mnoho paměti. V obrázcích se však vyskytují opakované sekvence barev +a jednobarevné plochy. Data lze tedy uložit ekonomičtěji využitím nějakého kompresního algoritmu. +Kompresní algoritmy dělíme do dvou skupin, na bezztrátové a ztrátové. Bezztrátové algoritmy se +vyznačují tím, že lze dekompresí obnovit původní data. U ztrátových algoritmů to v principu nelze. + +Formát PNG, použitý na středním obrázku, používá bezztrátový kompresní algoritmus. Spodní obrázek +byl uložen ve formátu využívajícím ztrátovou kompresi JPEG\index{JPEG}\footnote{Vyslovuje se +\textit{jay peg}.}. Tento algoritmus vyvinulo +konsorcium Joint Photographic Expert Group\index{Joint Photographic Expert Group} pro ukládání +barevných fotografií. Výzkumem bylo zjištěno, které obrazové elementy lidské oko nerozezná. Není +tedy na závadu, jsou\?li z fotografie odstraněny. Kvalita není zhoršena a výrazně se zmenší velikost +souboru. Kvalitu obrázku lze ovlivnit, ale i při nejvyšší kvalitě zobrazení (nejméně účiné +kompresi) je vždy komprese ztrátová. Formát se nazývá JFIF\index{JFIF} (JPEG File Interchange +Format\index{JPEG File Interchange Format}) a soubory mají nejčastěji příponu \xx\texttt{jpg}, méně +často \xx\texttt{jpeg}, \xx\texttt{jff} nebo \xx\texttt{jfif}. + +Spodní obrázek byl vytvořen v nízkém rozlišení, vhodném pouze pro obrazovku, a uložen úmyslně s +nastavenou nízkou kvalitou, aby bylo na první pohled zřejmé, že při použití ztrátové komprese +dochází k rozmazání a k vytvoření barevných artefaktů, zejména v téměř jednobarevných plochách. + +\pozor +Pamatujme si, že obrázky vždy vytváříme v takovém formátu, který nejlépe odpovídá jejich +charakteru. Grafy a diagramy jsou vždy matematické objekty, které lze popsat rovnicemi známými z +analytické geometrie. Komplikované křivky jsou přitom obvykle aproximovány Bézierovými křivkami. +Obrázky tedy vytvoříme ve vektorovém formátu. Bitmapové formáty používáme pouze pro obrázky, které +nemají matematickou reprezentaci. Přednost dáváme formátům s bezztrátovou kompresí. Grafické +formáty se ztrátovou kompresí používáme \textbf{výhradně na barevné fotografie a na nic jiného}! + +Ohledně grafických formátů panuje mnoho nepravdivých pověr. Jednou z nich je domněnka, že formát +EPS\index{EPS} je vektorový. Je to pravda pouze částečná. Formát EPS je v zásadě Post\-Script s +jistými omezeními. Soubor může obsahovat jak vektorovou, tak bitmapovou grafiku, a to dokonce +jejich kombinaci. Při ukládání obrázku ve formátu EPS tedy záleží na tom, jakým programem jsme jej +vytvořili. Pokud byl obrázek nakreslen bitmapovým editorem, jakými jsou např. +Photoshop\index{Photoshop} nebo Gimp\index{Gimp}, bude i výsledný EPS bitmapový. Totéž platí o +formátu PDF\index{PDF}. Oba formáty povolují u bitmapových obrázků bezztrátovou i ztrátovou +kompresi. + +Mnoho lidí se omylem domnívá, že není rozdílu mezi formáty PS\index{PS} +(Post\-Script\index{PostScript}) a EPS\index{EPS}. Bohužel se tímto velmi oblíbeným omylem nechali +svést i někteří autoři komerčních programů. EPS povoluje pouze podmnožinu jazyka Post\-Script a +vyžaduje nějaké informace navíc, aby programy dokázaly vložit obrázek do dokumentu. Některé +programy však vytvářejí postscriptové soubory, jež se jen tváří jako EPS. V některých případech to +nevadí, ale často takový obrázek vložit nelze, protože to způsobí podivné chyby (poškodí se +následující obrázek, ztratí se část textu, nebo i celý zbytek dokumentu). Expert někdy dokáže +takový soubor opravit, ale může to vyžadovat několikahodinové studium. Naštěstí existují nástroje, +které takovou nápravu zvládnou\label{poprava}. Zmíníme se o nich v kapitole~\ref{oprava}. + +Další pověra se týká bitmapového formátu TIFF\index{TIFF} (Tagged Image File Format\index{Tagged +Image File Format}, soubory mají obvykle příponu \xx\texttt{tif}). Obvykle se tvrdí, že tento +formát používá bezztrátovou kompresi. Ve skutečnosti si však při ukládání můžeme kompresi zvolit. +Máme na výběr několik bezztrátových algoritmů, dokonce lze obrázek uložit zcela bez komprese, ale +můžeme též použít ztrátovou kompresi JPEG. + +\subsection{Načtení obrázku do dokumentu}\label{incgraph} +V kapiole~\ref{vkladani} jsme se věnovali plovoucím prostředím a metodám, jak vložit plovoucí +objekt do textu. Nyní se zaměříme na to, jak do plovoucího prostředí načteme vlastní obrázek. + +\TeX\ je program napsaný pro zpracování textu. Kromě primitivní grafiky tvořené vodorovnými a +svislými úsečkami a znaky ze speciálně připravených fontů nelze žádné obrázky přímo vytvářet. +Neexistuje ani příkaz pro vložení obrázku. \TeX\ má ovšem příkaz \xx\cmd{special}, který není vůbec +interpretován a jeho argument je pouze poslán výstupnímu zařízení. Záleží na příslušném ovladači, +jak s takovým povelem naloží. Mluvíme\?li o tom, jak se do \TeX ových či \LaTeX ových dokumentů +vkládají obrázky, máme vždy na mysli nějaký konkrétní ovladač zařízení. + +Working Papers České národní banky jsou zveřejňovány ve formátu PDF\index{PDF}. Zaměříme se tedy na +dvě nejběžnější metody, jak získat PDF z textu psaného v \LaTeX u. První možností je konverze +souboru DVI na \xps\ programem \xx\fn{dvips}. Postscriptový soubor pak převedeme na PDF nějakým +programem (existují komerční i volně šiřitelné programy). Druhou možností je přímá tvorba +PDF\index{PDF} programem \xpdftex. + +Při použití programu \fn{dvips} je optimálním grafickým formátem EPS\index{EPS}, a to jak pro +bitmapové, tak pro vektorové obrázky. Program \pdftex\ umí načíst přímo obrázky ve formátech +JFIF\index{JFIF} a PNG\index{PNG}, ale ty jsou bitmapové a budeme je používat jen zřídka. Vektorové +obrázky musíme připravit ve formátu PDF. Pro převod z EPS do PDF lze využít komerční Adobe +Distiller\index{Distiller}\index{Adobe Distiller}. Stejnou funkci však nabízí i program +\xx\fn{epstopdf}. Ten však vyžaduje \xgs\ a \xx\fn{perl}. Zmíněné programy jsou volně šiřitelné a +existují pro všechny operační systémy. + +Obrázek lze načíst různými způsoby. Nejpohodlnějším je zřejmě využití balíčku \xx\fn{graphics}. +Makro \xx\cmd{includegraphics} má jeden povinný parametr, jímž je jméno souboru obsahujícího +obrázek. V nepovinném parametru v hranatých závorkách lze uvést řadu rozličných pokynů ve tvaru +\textit{klíč=hodnota}. Syntaxe je stejná jako u makra \bibi, jež bylo popsáno v +kapitole~\ref{obsah}, pouze místo složených závorek používáme závorky hranaté, neboť první +parametr je nepovinný. I zde jsou parametry zpracovány pomocí balíčku \xx\fn{keyval}. + +Podrobný popis příkazu \cmd{includegraphics} najdete v souboru \xx\fn{grfguide.ps}, jenž je +součástí distribuce. Zde si popíšeme pouze několik základních parametrů: + +\begin{description} +\xitem[scale] je poměr zmenšení či zvětšení. Zmenšení na polovinu dosáhneme zadáním +\texttt{scale=.5}. +\xitem[width] specifikujeme požadovanou šířku. Rozměr lze zadat v libovolných jednotkách, ale i +jako podíl jiných rozměrů. Požadujeme\?li šířku 75\,\% šířky textu, použijeme +\verb;width=.75\textwidth;. +\xitem[height] určuje výšku obrázku. Uvedeme\?li současně \texttt{height} i \texttt{width}, dojde k +distorzi obrázku. Použijeme\?li pouze jeden z těchto parametrů, druhý z nich se dopočte tak, aby +poměr stran zůstal zachován. +\xitem[clip]\label{clip} způsobí oříznutí na ohraničovací rámeček. Některé programy (např. Quatro) +vytvářejí +vadné EPS, jež vymažou své okolí. Pokud při vložení obrázku zmizí část textu nad ním nebo vedle +něho, vyzkoušejte použití parametru \texttt{clip} (bez uvedení rovnítka a hodnoty). +\xitem[page] používáme pouze při vkládání obrázku z vícestránkového souboru PDF\index{PDF}. +Zadáváme jím pořadové číslo stránky, kterou chceme vložit. +\end{description} + +\subsection{Příprava vektorového obrázku}\label{makevectfig} +Připravujeme\?li vektorový obrázek, musíme především použít grafický editor nebo obdobný program, +který skutečně pracuje s vektorovou reprezentací. Obrázek pak musíme převést do formátu, který +lze do dokumentu načíst, tj. EPS nebo PDF. Výhodou je, pokud program umí soubor v tomto formátu +zapsat přímo. V opačném případě si musíme pomoci nějakou náhradní metodou. + +V následujících podkapitolách si popíšeme několik běžných programů a ukážeme si úskalí, jež nás +mohou potkat. + +\subsubsection{Gnuplot}\label{gnuplot}\index{gnuplot} +Gnuplot je flexibilní volně šiřitelný program pro kreslení matematických grafů. Je dostupný pro +všechny operační systémy. Byl jím vytvořen obrázek~\ref{vectbitfig}. Umožňuje výstup v mnoha +formátech včetně EPS\index{EPS}, nové verze i v PDF\index{PDF}. + +Program nabízí bohaté možnosti ovlivňování barvy křivek i bodů a tvaru bodů. Tyto možnosti závisí +na zvoleném výstupním formátu, dokonce stejný typ křivky může být v různých výstupních formátech +zobrazen jinou barvou. Informaci získáte nejlépe pomocí příkazu \texttt{test}, jíž získáte +testovací obrazec představující všechny možnosti příslušného formátu. Chcete\?li zjistit, jaké +možnosti poskytuje výstup ve formátu EPS, použijte příkazy: + +\begin{verbatim} +set term postscript eps color solid lw 2 18 +set output "test.eps" +test +set output +quit +\end{verbatim} + +\noindent +Testovací obrazec bude v souboru \fn{test.eps} v aktuálním adresáři. + +\subsubsection{Corel Draw}\label{corel}\index{Corel Draw} +Corel Draw je komerční editor vektorových obrázků. Nabízí funkci exportu do formátu EPS. Nesmíme +však zapomenout, že Corel Draw obsahuje spoustu písem, jež nejsou dostupná na jíných počítačích. +Při exportu do EPS je proto musíme převést do křivek. Počínaje verzí~8 již tuto akci program +provede automaticky. + +\subsubsection{Adobe Illustrator}\label{ai}\index{Illustrator}\index{Adobe Illustrator} +Adobe Illustrator je komerční vektorový editor, jehož nativní formát AI\index{AI} je založen na +\ps{}u. Otevřeme\?li soubor v běžném textovém editoru, na první pohled jej nerozeznáme od EPS. \ps\ +je však programovací jazyk, jenž má s \TeX em jeden společný rys: umožňuje definici uživatelských +příkazů (operátorem \texttt{def}). Formát AI sice obsahuje postscriptové příkazy, ale pro jejich +interpretaci je nutno mít nadefinována makra, jež má Adobe Illustrator v sobě. Pokud vložíte do +jiného dokumentu přímo obrázek ve formátu AI, vše bude zdánlivě fungovat, ale jen do chvíle, kdy se +pokusíte dokument vytisknout. Na stránce, obsahující tento obrázek, interpret \ps{}u nahlásí chybu +typu \texttt{undefined}. Nezapomeňte proto uložit obrázek ve formátu EPS. + +\subsection{Virtuální tiskárny}\label{virt} +Virtuální tiskárny představují náhradní řešení pro případ, že program nemá výstup do formátu EPS. +Metoda je ovšem použitelná pouze v případě, že používáme vektorový editor. Bitmapový grafický +editor i při použití virtuální tiskárny vytvoří bitmapový EPS či PDF. + +\subsubsection{Tiskárny s~výstupem do \ps{}u}\label{virtps} +Na trhu jsou dostupné tiskárny s podporou \xps{}u. Pro tyto tiskárny existují ovladače, jež jsou +běžnou součástí instalačního CD operačního systému (Windows, Mac~OS, OS/2, eComStation). Některé +tiskárny podporují více komunikačních jazyků, jakými jsou PCL\index{PCL} a HPGL\index{HPGL}. +Použití takového ovladače ve funkci virtuální tiskárny není vhodné, neboť na začátku a na konci +vygenerovaného souboru jsou obvykle příkazy jazyka PJL\index{PJL} nebo obdobného, jimiž se zapíná a +vypíná interpret jazyka \xps. Takové příkazy nám pro další zpracování napáchají více škody než +užitku. Nejlepší jsou většinou tiskárny Apple Writer, případně speciální virtuální ovladače +získané z \url{http://www.adobe.com}. Chceme\?li vytvářet barevné obrázky ve formátu EPS\index{EPS}, +musíme nainstalovat ovladač barevné tiskárny. Ovladač černobílé tiskárny totiž může převést barvy +na stupně šedi. + +Chceme\?li nainstalovat virtuální tiskárnu ve Windows, je důležité z několika možností zvolit tu +nejlepší. Tiskárnu instalujeme jako lokální a nepřipojíme ji k žádnému fyzickému zařízení, nýbrž k +souboru. Pokud ovladač umožňuje nastavení funkcí, zapneme formát EPS, požadujeme konverzi fontů na +Type~1 a jejich vkládání do dokumentu. Při tisku \textbf{nesmíme zaškrtnout tisk do souboru}, ale +vyčkáme, až nás ovladač k zadání jména souboru sám vyzve. + +\subsubsection{Tiskárny s~výstupem do PDF}\label{virtpdf} +Virtuální tiskárnu s výstupem do PDF\index{PDF} nabízí komerční Adobe +Acrobat\index{Acrobat}\index{Adobe Acrobat}. Existuje též řada sharewarových programů generujících +PDF, jež se nainstalují jako virtuální tiskárny. Všechny mají svůj vlastní instalační program. Opět +se snažíme, je\?li to možné, zapnout konverzi fontů na Type~1 a vkládání fontů do dokumentu. + +\subsection{Oprava vadných souborů EPS a~PDF}\label{oprava}\index{EPS}\index{PDF} +V kapitole~\ref{poprava}, na straně~\pageref{poprava}, jsme se zmínili o tom, že obrázky v +souborech EPS a PDF mohou být poškozeny. Nyní si popíšeme, jak je lze opravit. + +První častou chybou je nesprávný či nevhodný ohraničovací rámeček (BoundingBox\index{BoundingBox}). +Ohraničovací rámeček označuje rozměry obrázku v souboru EPS. Podle specifikace musí být veškerý +obrázek uvnitř rámečku, ale není řečeno, že musí být rámeček těsný. Pokud je ohraničovací rámeček +příliš velký, není to chyba, ale není to užitečné. Podle této informace totiž program vkládá +obrázek do dokumentu. Je\?li ohraničovací rámeček příliš velký, vynechá program okolo obrázku velké +volné místo. Nápravy nejlépe dosáhneme volně šiřitelným programem \xgs\ a jeho pohodlnou +nadstavbou \xgv. Potřebujeme oba programy, pro Linux exisuje řada různých nadstaveb (např. +\xx\fn{ggv} pro Gnome). Přepneme orientaci obrázku na Portrait a zvolíme funkci s nepřiliš vhodným +názvem \texttt{PS~to~EPS}. Funkce totiž nekonvertuje \ps\ na EPS, pouze vygeneruje těsný +ohraničovací rámeček se správnými rozměry. V naprosté většině případů funguje správně automatické +nastavení. Ruční nastavení využijeme v případech, kdy automat selže, nebo v případech, kdy se +chceme části obrázku zbavit a plánujeme použití parametru +\hyperref[clip]{\texttt{clip}}\index{clip} v makru \xx\cmd{includegraphics}. + +\pozor \gv\ neumí zjistit potřebnou velikost papíru pro zobrazení obrázku ve formátu EPS. Navíc +některé programy, zejména virtuální tiskárny, nevloží obrázek do levého dolního rohu. Pokud vidíte +pouze prázdnou stránku, zkuste v menu Media zvolit větší velikost papíru. + +Rozměry stránky v souboru PDF změníme pomocí plného Adobe Acrobatu\index{Acrobat}\index{Adobe +Acrobat}, jenž tuto funkci nabízí. Neznám volně šiřitelnou alternativu. + +Horší situace nastane, jestliže se soubor pouze tváří jako EPS. Nejjednodušší je případ, kdy na +začátku a na konci souboru máme příkazy PJL\index{PJL} nebo jiného jazyka. \xgv\ si s nimi obvykle +poradí, ale problémy vzniknou při vkládání obrázku. Náprava je snadná. Soubor otevřeme v obyčejném +textovém editoru a vymažeme vše před prvním výskytem znaků \texttt{\%!PS} (v EPS musí být na +začátku prvního řádku) a vše za textem \texttt{\%\%EOF}. Při základní znalosti \ps{}u lze napravit +i další chyby, obvykle stačí vymazat zakázané příkazy, ale tato úloha může být i pro experta značně +obtížná. Nejpohodlnější je převedení takového obrázku na PDF, buď Adobe +Distillerem\index{Distiller}\index{Adobe Distiller}, nebo programem \xx\fn{ps2pdf} obsaženým v +distribuci \xgs{}u (případně programem \xx\fn{epstopdf}). Pokud nechceme nebo nemůžeme zpracovat +dokument \pdftex em, převedeme PDF zpět na EPS. Použijeme buď plný Adobe +Acrobat\index{Acrobat}\index{Adobe Acrobat} (funkce Save As EPS), nebo program \xx\fn{pdftops} s +parametrem \texttt{-eps}. Program \fn{pdftops} je součástí volně šiřitelného \fn{xpdf}, viz +\url{http://www.foolabs.com/xpdf/}. \gs\ též nabízí konverzi PDF na EPS, ale bohužel přitom +vyrastruje fonty. Takový obrázek pak ovšem není použitelný. + +\section{Příprava tabulek}\label{tabulky} +Tabulky jsou důležitou součástí odborných článků. Užitečné však mohou být jen v případě, že jsou +uspořádány přehledně. Nad tvorbou tabulek obvykle strávíme nejdelší část přípravy dokumentu. V této +kapitole si předvedeme několik technik, jež práci při sazbě tabulek usnadní a umožní dosažení +požadovaného vzhledu. + +\subsection{Zarovnání sloupce na desetinnou tečku}\label{dcolumnuse} +V tabulkách často používáme desetinná čísla, přičemž počet číslic v jednotlivých číslech téhož +sloupce se může lišit. Přitom je nutné, aby čísla byla zarovnána na desetinnou tečku. Prostředí +\xx\texttt{tabular} takovou možnost nenabízí, ale řešení lze nalézt v použití balíčku +\xx\fn{dcolumn}. Tento balíček přidává do prostředí \texttt{tabular} sloupec typu D. Specifikace +sloupce typu D vyžaduje tři parametry: separátor použitý ve zdrojovém textu, separátor, jenž má být +vytištěn a maximální počet desetinných míst. Bude\?li poslední parametr záporný, bude desetinná +tečka uprostřed sloupce, což může vést k tomu, že sloupec bude příliš široký. První dva parametry +budou většinou shodné, ale nemusí to tak být nutně. Předpokládejme, že jsme tabulku exportovali z +nějakého tabulkového programu, kde jsou používány desetinné čárky. My však chceme mít desetinné +tečky. Abychom nemuseli zasahovat do souboru, využijeme možnosti nabízené prvními dvěma parametry. +Příklad najdete v tabulce~\ref{numtable} a zdrojový kód příkladu na obrázku~\ref{numtablesrc}. + +\begin{table}[hbt] +\caption{Demonstrace tabulky se zarovnáním na desetinnou tečku}\label{numtable}\vb[.5] +\centering +\input{numtable} +\end{table} + +\begin{figure}[hbt] +\caption{Zdrojový kód tabulky~\ref{numtable}}\label{numtablesrc}\vb[.5] +\hrule +\verbatiminput{numtable} +\hrule +\end{figure} + +Nadpis ve sloupci typu D by nebyl umístěn správně. Musíme proto použít makro \xx\cmd{multicolumn}, +v němž dané buňce změníme zarovnání. Všimněte si, že součástí specifikace zarovnání je +\textbf{následující} svislá čára, nikoliv předcházející. Tu musíme uvádět pouze u prvního sloupce. +Pokud by nadpis \textit{Jméno} měl být z nějakého (v tomto případě nerozumného) důvodu zarovnán +vpravo, museli bychom použít: + +\begin{verbatim} +\multicolumn{1}{|r|}{\bfseries Jm\'eno} +\end{verbatim} + +Definice nového typu sloupce je umožněna tím, že je implicitně zaveden balíček \xx\fn{array}. Ten +uživatelům nabízí makro \xx\cmd{newcolumntype}, jímž se nové typy definují. Syntaxe se podobá makru +\cmd{newcommand} s tím rozdílem, že definujeme typ sloupce, nikoliv makro, a nelze deklarovat +nepovinný parametr s defaultní hodnotou. Kdybychom si v příkladu z obrázku~\ref{numtablesrc} +definovali nový typ sloupce: + +\begin{verbatim} +\newcolumntype{d}[1]{D{,}{.}{#1}} +\end{verbatim} + +\noindent +mohli jsme preambuli tabulky zapsat přehledněji: + +\begin{verbatim} +\begin{tabular}{|l|d{2}d{1}|} +\end{verbatim} + +V tabulce jsme nastavili ještě rozměr \xx\cmd{extrarowheight}, jenž je definován též v balíčku +\xx\fn{array}. Písmena s českými diakritickými znaménky jsou moc vysoká a mezi textem a linkou by +nebyla téměř žádná mezera. Rozměrový registr \cmd{extrarowheight} zvětšuje mezeru mezi textem a +linkou nad ním. Parametr v hranatých závorkách makra \verb;\\; zvětšuje pouze mezeru pod textem. + +\subsection{Široké tabulky}\label{siroke} +Některé tabulky mohou být velmi široké. Jedinou možností, jak je vytisknout, je otočení o +$90^{\circ}$. Docílíme toho použitím balíčku \xx\fn{rotating} a prostředím +\xx\texttt{sidewaystable}. (Analogicky lze otočit i obrázky v prostředí +\xx\texttt{sidewaysfigure}.) Balíček \fn{rotating} bohužel otáčí tabulky jinak na lichých a jinak +na sudých stránkách, což je z typografického hlediska nepřípustné. Abychom tento problém +odstranili, musíme balíček zavést v preambuli následujícím způsobem: + +\begin{verbatim} +\usepackage[figuresright]{rotating} +\end{verbatim} + +Ukázku široké tabulky, jež obsahuje matici náhodných čísel vypočtenou v programu \fn{Octave} +příkazem $5 \times \mbox{randn}(20, 10)$, vidíte v tab.~\ref{widetable}, zdrojový kód najdete na +obrázku~\ref{widetablesrc}. Tabulka bude otočena tak, že levý okraj bude umístěn na spodní okraj +sazebního obrazce (tj. zarovnán se spodním okrajem textu na jiných stránkách). To jen zřídka působí +esteticky. Lépe vypadá vycentrovaná tabulka, čehož dosáhneme příkazem \xx\cmd{centering}. Je nutno +též vycentrovat popisek explicitním uvedením \xx\cmd{centeredcaption} místo \xx\cmd{caption}. + +\input{widematrix} + +\begin{sidewaysfigure}[p] +\caption{Zdrojový kód tabulky \ref{widetable}}\vb[.5]\label{widetablesrc} +\small +\hrule +\verbatiminput{widematrix} +\end{sidewaysfigure} + +Centrování tabulky nemusí být vždy žádoucí. Vzhled stránky lze upravit posunem. Stránku připravíme +bez centrování a vytiskneme, nebo zobrazíme v \xgv\ (tento program umožňuje odměřování). +Předpokládejme, že chceme tabulku posunout o 27\,mm směrem k hornímu okraji stránky. Musíme tedy o +tuto velikost zvětšit levý okraj plovoucího prostředí. Zařídíme to tím, že hned na jeho počátku +nastavíme: + +\begin{verbatim} +\begin{sidewaystable}[p]% začátek otočené tabulky +\setlength{\leftskip}{27mm} +\end{verbatim} + +\noindent +Tento příkaz posune tabulku i standardní popisek, ale nebude správně fungovat při použití +\xx\cmd{centeredcaption}. + +\pozor +Všimněte si, že příkaz \xx\cmd{label} musí být uveden uvnitř plovoucího prostředí, k němuž se +vztahuje, a to až za makrem \cmd{caption} nebo jeho alternativou definovanou v třídě \fn{cnbwp}. +Pokud jej uvedete mimo toto prostředí nebo před makrem \cmd{caption}, bude se vztahovat k +\cmd{section} či \cmd{subsection}, v níž se vyskytuje. + +\section{Předání dokumentu ke korektuře a~ke zveřejnění}\label{publish} +Pravidla pro předávání dokumentů a k provádění korektur mohou být upravena Českou národní bankou. V +této kapitole budou uvedeny obecné instrukce vycházející ze zdravého rozumu a ze zkušeností se +sdílením dokumentů mezi počítači s různými operačními systémy v multilinguálním prostředí. + +\subsection{Příprava dokumentu k~odevzdání}\label{odevzdani} +Při přípravě dokumentu k odevzdání je nutno mít na zřeteli, že jazykový korektor nemusí být +expertem na \LaTeX, a dokonce vůbec nemusí mít žádnou distribuci \TeX{}u nainstalovánu. Je tedy +nutno odevzdat soubor, který lze vytisknout běžnými snadno instalovatelnými programy, nejlépe tedy +ve formátu PDF, v nouzi jako \ps. + +Při psaní dokumentu omezte počet příkazů \cmd{input} a \cmd{include}. Jejich nadměrné užívání vede +spíše k nižší přehlednosti. + +V dokumentech nepoužívejte písmena s diakritickými znaménky. Je příliš mnoho kódóvání češtiny a +slovenštiny a různé distribuce \TeX{}u nakládají s kódováním různě. Počítejte spíše s tím, že s +dokumentem bude pracovat mírně poučený laik, jenž si s překódováním nemusí vědět rady. Diakritická +znaménka tedy zadávejte vždy pomocí \TeX ových sekvencí. + +Všechny soubory, nutné pro sazbu dokumentu, musí být v jednom adresáři, nebo (raději výjimečně) v +podadresářích adresáře s hlavním dokumentem. Příkaz + +\begin{verbatim} +\includegraphics{d:/projects/figures/image1.eps} +\end{verbatim} + +\noindent +je špatný hned ze dvou důvodů: + +\begin{enumerate} +\item Autor dokumentu může zapomenout, že nezbytbý soubor je v jiném adresáři, a zapomene jej +přibalit. +\item Osoba, zpracovávající dokument, může mít jinak rozdělený diskový prostor a příkaz pak bude +hlásit, že požadovaný soubor nebyl nalezen. +\end{enumerate} + +Uživatelé unixových systémů by měli odolat poušení použít v takových případech symbolické linky. +Jednak se snadno stane, že k dokumentu nepřibalí soubory, ale jen symbolické linky, a kromě toho +musí být dokument zpracovatelný i na souborovém systému, který symbolické linky nepodporuje. +Použijete\?li podadresáře, zadávejte jména relativně, např.: + +\begin{verbatim} +\includegraphics{figures/image1.eps} +\end{verbatim} + +\noindent Vždy však uvažte, zda je vytváření podadresářů skutečně nezbytné. Uložení všech +příbuzných souborů v jednom adresáři je obvykle pro nezasvěceného člověka přehlednější. + +\pozor +The \TeX book uvádí, že jméno souboru je ukončeno znakem mezera. Vzhledem k oblíbenosti mezer +firmou Microsoft existují distribuce, jež si s tím dovedou poradit. Je to však \textbf{velmi +nestandardní rozšíření}, které nemusí fungovat ani na témže operačním systému s jinou distribucí +\TeX{}u. Ještě horší problém představují názvy adresářů a souborů obsahující písmena s +diakritickými znaménky. Jejich funkčnost závisí na příliš mnoha faktorech, nejen na distribuci +\TeX{}u, ale i na nastavení locales v operačním systému. Použití takových jmen je nutno se vyhnout, +neboť s vysokou pravděpodobností způsobí problémy. + +Všechny potřebné soubory je nutno zabalit do jediného archivu, a to i s adresářovou strukturou. +Optimální je formát ZIP. Zejména v případě, kdy se dokument skládá z mnoha souborů, přidáme krátký +informativní text v souboru pojmenovaném \fn{readme.txt}. + +\subsection{Provádění korektur}\label{korektury} +Základní typografické pravidlo říká, že korektury se nikdy neprovádějí na obrazovce počítače, vždy +se provádějí na vytištěném textu na papíře. Prvním krokem korektury je tedy vytištění dokumentu +dodaného ve formátu PDF či \ps. + +Dokumenty určené pro zpracování v \LaTeX{}u jsou obyčejné textové soubory. Na jejich editaci +nepotřebujeme žádný specializovaný program, ty jen ulehčují práci. Ve Windows je můžeme otevřít +např. v programu \fn{notepad}. + +\TeX\ byl vytvořen v době, kdy se texty do počítače zadávaly na děrných štítcích. Proto nezáleží na +tom, jak je text rozdělen na řádky a kolik mezer je mezi slovy. Důležité je, aby mezi odstavci byl +vynechán prázdný řádek. + +Hlavní dokument může načítat jiné soubory pomocí příkazů \cmd{input} nebo \cmd{include}, přičemž +jméno načítaného souboru je zadáno v parametru tohoto makra. Příponu \texttt{.tex} není nutno +uvádět. + +Formátování textu se ovlivňuje příkazy, jež začínají zpětným lomítkem. Některé z nich mají +argumenty zapsané ve složených, někdy v hranatých závorkách. Tyto příkazy nesmí být při korektuře +změněny. + +\pozor +Korektor smí opravovat pouze slova, která vidí ve vytištěné verzi. Nesmí zasahovat do formátovacích +značek, neboť by to mohlo vážně poškodit dokument při následném zpracování. Nemá\?li korektor +jistotu, zda smí něco v dokumentu opravit, je lepší, když opravu označí na papíře nebo v +samostatném souboru a o její zanesení požádá autora. + +Jako zajímavá alternativa se nabízí provádění korektur v souboru PDF. Korektury je nutno povolit +pomocí plné verze programu Adobe Acrobat\index{Acrobat}\index{Adobe Acrobat}, pro vlastní zápis +korektur postačí Acrobat Reader\index{Acrobat Reader}. + +\section{Vzorové soubory}\label{vzor} +Součástí tohoto manuálu je několik vzorových souborů. Hlavní šablona dokumentu je v souboru +\xx\fn{cnbpaper.tex} a celý dokument je převeden do formátu PDF (soubor \xx\fn{cnbpaper.pdf}) +pomocí pdf\LaTeX{}u. Soubor ovšem lze zpracovat i běžným \LaTeX em a programem \fn{dvips}. + +Některé ukázky jsou uloženy v samostatných souborech, jednak proto, aby byla zaručena jejich +konzistence s tímto návodem, a jednak proto, aby uživatel při psaní svého textu nemusel pracovat s +dlouhým vzorovým dokumentem. + +Tabulka~\ref{numtable}, předvádějící zarovnání na desetinnou tečku, se nachází v souboru +\xx\fn{numtable.tex}. V souboru není uveden příkaz \cmd{caption} ani plovoucí prostředí. Tyto +příkazy najdete v hlavní šabloně dokumentu. + +Širokou tabulku~\ref{widetable} najdete v souboru \xx\fn{widematrix.tex}. V tomto případě soubor +obsahuje též příkazy pro definici prostředí. + +Soubory \xx\fn{graf18.eps} a \xx\fn{graf18.pdf} jsou vektorové grafy z obrázku~\ref{vectbitfig}. +Šablona používá balíček \xx\fn{ifpdf} pro zjištění, zda je používán pdf\LaTeX, a podle toho bude +načten soubor ve správném formátu. Pokud není v distribuci balíček \fn{ifpdf} obsažen, předpokládá +se, že pdf\LaTeX\ není k dispozici. + +Soubor \xx\fn{biblio.tex} obsahuje seznam literatury zapsaný pomocí maker z kapitoly~\ref{makra}. +Celý výpis je uveden v \hyperref[priloha]{Příloze}. + +Soubor \xx\fn{cnbsample.bib} obsahuje bibliografickou databázi pro \BibTeX. Z tohoto +souboru byl vygenerován výše zmíněný soubor \fn{biblio.tex}. + +Pokud budete používat soubor \fn{cnbpaper.tex} jako šablonu svého dokumentu, zamyslete se nad tím, +které balíčky skutečně potřebujete. Nepotřebné příkazy \cmd{usepackage} vymažte. Je možné, že +budete potřebovat nějaké další balíčky. Jedním z nich může být \xx\fn{amsmath}. + +\section{Změny, verze 2013.12} +V prosinci 2013 byly provedeny tyto změny: +\begin{enumerate} +\item Zrušeny přepínače 11pt a 12pt pro nastavení velikosti písma v dokumentu. +\item Změna způsobu zadávání autorů, změna syntaxe makra \cmd{author}. +\item Zrušena makra \xx\cmd{shortauthor} a \xx\cmd{shorttitle} +\item Změna použití makra \cmd{acknowledge}. +\item Přidáno prostředí \texttt{abstrakt} pro český abstrakt. +\item Automaticky zaveden balíček \fn{babel} pro aktivaci českých vzorů dělení v prostředí +\texttt{abstrakt}. +\item Úpravy formátování nadpisů podle nových požadavků. +\item Implementována nová makra \cmd{Note} a \cmd{Source}. +\item Upraveno formátování jmen autorů v bibliografickém stylu \fn{abbrvcnb}. +\item Balíček \fn{times} nahrazen balíčkem \fn{mathptmx}. +\item Aktualizován manuál. +\end{enumerate} + +\appendix +\section{P\v{r}\'iloha}\label{priloha} +V příloze je uveden příklad všech typů prací zapsaných pomocí maker z kapitoly~\ref{makra} a jejích +podkapitol. Položku \;note \ obvykle používat nebudete. + +Celý příklad je dostupný též v souboru \xx\fn{biblio.tex}. + +{\small +\verbatiminput{biblio}} + +\printindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf new file mode 100644 index 00000000000..6881164f27f Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex new file mode 100644 index 00000000000..c77626f57dd --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex @@ -0,0 +1,1824 @@ +\documentclass[12pt]{article} +% Must be compiled by XeLaTeX +\def\CNBtitle{Manual\ for\ Using\ the\ cnbwp\ Class} +\usepackage{cnbwp-manual} +\setdefaultlanguage{english} +\title{Manual for Using the \fn{cnbwp} Class to Write CNB~Working~Papers} +\author{Zdeněk Wagner}\date{version 2013.12} +\begin{document} +\maketitle + +\begin{abstract}\noindent This manual explains how to write Czech National Bank Working Papers +using the \LaTeX typesetting system. The opening sections describe the \fn{cnbwp} class created +for this purpose. A separate section tells you how to prepare a list of references. The subsequent +sections give more generally applicable advice for creating and inserting figures and tables. +Section~\ref{publish} tells you the form in which the document has to be submitted and how the +document is edited. The names of the macros, packages, files and programs mentioned in this manual +are listed in the \hyperref[index]{index}. The manual also includes sample files, which are listed +in Section~\ref{vzor}. The class, the manual and the sample files were prepared for the Czech +National Bank. Martin Cincibuch from the CNB contributed significantly to the structure and content +of this document. \end{abstract} + +\tableofcontents + +\section{Typographical Conventions}\label{typokon} Several font types with special meanings will be +used in this document. Text printed in \texttt{non-proportional font} will be used for printing out +pieces of code as they should be written in the source file in \LaTeX{}. This font may also appear +directly in the text in descriptions of macros. This means that \cmd{usepackage} and suchlike may +occur in the text. Names of parameters and other variable objects will be written in +\textit{italics}. In the section describing how to create a list of references we will use \bibi, +where \textit{typ} will substitute for part of the name of a macro. This will generally mean the +macros \cmd{bookItem}, \cmd{miscItem} etc. + +For the names of files, packages and classes we will use \fn{sans-serif font}. Examples can be seen +in the document title and in the abstract. The exception to this will be URLs, where we need some +special characters. We will, therefore, print URLs in \texttt{non-proportional font} as well, e.g. +\zwurl{ftp://ftp.cstug.cz/pub/tex/CTAN/}, but this should not cause any confusion. We will also +write full file names with paths in the same way, e.g. +\zwurl{/usr/share/texmf-dist/tex/latex/cnb/cnbwp.cls}. These long names can be split across more +than one line without hyphenation. + +Emphasised text will be printed in \textbf{bold font}, as italics are already being used for a +different purpose. Bold font is also used in the headings. In such cases, names of files, packages +and classes will be printed in \textbf{\fn{bold sans-serif font}}. + +\pozor A large bold exclamation mark at the start of a paragraph indicates very important +information. Ignoring the instructions given in such a paragraph will cause a major error or an +error with a strange message (such that the cause of the error will be difficult to track down) to +occur during document preparation. + +\section{Installation}\label{instalace}\index{installation} All macros used for writing CNB Working +Papers are implemented in the \fn{cnbwp.cls} class. The class is distributed in the archive file +\fn{cnbwp.zip}. The file is saved in the archive with a path conforming to the TDS~(\TeX\ Directory +Structure) standard. The installation method varies slightly depending on the specific \TeX{} +distribution. + +\subsection{\MikTeX}\label{inst.miktex} Extract the \fn{cnbwp.zip} file to the \url{X:\localtexmf} +directory, where \texttt{X:} denotes the disk on which \MikTeX{} is installed +(usually~\texttt{C:}). Then open the menu \zwurl{Start/Programy/MikTeX/MikTeX Options}. On the +Roots tab, check that \url{X:\localtexmf} is on the list of directories searched. If not, add it. +Then click \texttt{Refresh FNDB}. To determine whether \LaTeX\ will locate the class, use +the command: + +\begin{verbatim} +findtexmf cnbwp.cls +\end{verbatim} + +\noindent If everything is OK, the command will print the full path for the \fn{cnbwp.cls} +file. + +\pozor The \url{X:\localtexmf} directory is intended for local files that are not a +standard +component of \MikTeX. If you update \MikTeX\, this directory will not be overwritten, so +you will +not lose the files. + +\subsection{\teTeX}\label{inst.tetex} This distribution is the standard in Unix systems +and is also +available for OS/2 and eComStation. We will describe the installation in Linux only. The +installation in OS/2 is similar, differing only in that a backslash is used to separate +the +directories and the name of the disk on which \teTeX\ has been installed must be entered +explicitly. + +Extract the \fn{cnbwp.zip} file to the \url{/usr/share/texmf-local} directory. When +installing in +Unix systems, you must make sure that the +\url{/usr/share/texmf-local/tex/latex/cnb/cnbwp.cls} file +does not have DOS line ends. Once the file has been extracted, the file database usually +needs to +be refreshed using the \texttt{mktexlsr} command. + +\TeXLive\ is based on this distribution, so everything described in the following +section applies to \teTeX\ as well. + +\subsection{\TeXLive}\label{inst.tl} \TeXLive\ is a popular multiplatform \TeX{} distribution. It +comes from the same sources as \hyperref[inst.tetex]{\teTeX}, so the installation is similar. The +directory to which \fn{cnbwp.zip} should be extracted is usually +\url{/usr/local/texlive/texmf-local} in Unix +systems and \url{X:\TeXLive\texmf-local} in Windows. However, \TeXLive\ may be installed +in any +directory and you can even have several versions of \TeXLive\ installed simultaneously. +The +directory to which \fn{cnbwp.zip} should be extracted can be determined using the command: + +\begin{verbatim} +kpsewhich --expand-var=$TEXMFLOCAL +\end{verbatim} +\index{kpsewhich} + +The \texttt{texmf-local} directory tree is shared by all \TeXLive\ versions installed on +a computer. If a newer version is installed, the files will automatically be found. + +\pozor The \TeXLive\ distribution usually requires \texttt{mktexlsr} to be run after the files have +been added. In distributions for Windows there is even an item in the \TeXLive menu for this +purpose. If the database is not refreshed using \texttt{mktexlsr} and two exclamation marks are +given in front of the name of the directory containing the \fn{cnbwp} class, \LaTeX\ will not be +able to locate the class. To determine whether \LaTeX\ will locate the class, use the command: + +\begin{verbatim} +kpsewhich cnbwp.cls -progname latex +\end{verbatim} + +\noindent If everything is OK, the command will print the full path for the \fn{cnbwp.cls} file. + +\subsection{\emTeX}\label{inst.emtex} This distribution is obsolete and Eberhard Mattes no longer +maintains it. It is better to switch to another distribution. However, if you do want to use +\emTeX, extract \fn{cnbwp.zip} to an auxiliary directory, create a \fn{cnb} subdirectory +in +\url{X:\emtex\texinput\latex2e} and copy \fn{cnbwp.cls} and \fn{cnbwpsizes.clo} into it. + +\subsection{Scientific Word}\label{inst.sciword} This manual is written for version 5.5. In this +version, extract \fn{cnbwp.zip} to \url{X:\sw55\TCITeX}. In other versions the name of the root +directory will probably differ. Scientific Word does not adhere strictly to TDS, as the directory +names contain both lower-case and upper-case letters. However, the FAT and NTFS file systems are +not case sensitive, so this should not cause any problems. + +\subsection{Other Distributions}\label{inst.other} To install the \fn{cnbwp} class in other +distributions you will need to follow the instructions given in the manual supplied with the +relevant distribution. The current distributions are usually based on \fn{web2c} and conform to the +TDS standard, so the installation procedure is analogous to that for \hyperref[inst.tl]{\TeXLive, +see section~\ref*{inst.tl}}. + +\subsection{Preparing Documents from Scientific Word in Other +Distributions}\label{sciword.elsewhere} Documents created using Scientific Word require specific +macros defined in files in the \fn{SWmacros} directory. These files are freely distributable. So if +you want to process a document in another distribution, copy the entire directory to +\url{texmf-local/tex/latex} or \url{localtexmf/tex/latex}, depending on which distribution you are +using. + +\pozor Remember that in some distributions after adding files you have to refresh the database +either using the \texttt{mktexlsr} command or from the menu. + +\section{Testing the Installation}\label{test.inst} In many distributions the installation can be +tested using the \texttt{kpsewhich} command, as mentioned in section~\ref{inst.tl}. This enables +you to check whether \LaTeX\ is able to locate the \fn{cnbwp} class and the macros from the +\fn{SWmacros} directory. If you do not have \texttt{kpsewhich} in your distribution, all you need +to do is write a simple document: + +\begin{verbatim} +\documentclass{cnbwp} +\begin{document} +Hello world. +\end{document} +\end{verbatim} + +\noindent +If, when processing this document, \LaTeX\ returns with: + +\begin{verbatim} +! LaTeX error: file `cnbwp.cls' not found +\end{verbatim} + +\noindent the class is not installed correctly. In this event, check whether you followed the +instructions given in the relevant section correctly. + +\section{Document Structure}\label{struktura} A working paper is a standard document written in +\LaTeX{} and thus consists of the standard parts: a preamble and a document body. Everything +preceding the command \cmd{begin\{document\}} is part of the preamble. The list of references is a +special part of the document body and is dealt with separately in +\hyperref[references]{section~\ref*{references}}. + +\subsection{Preamble}\label{preambule}\index{preamble} +All the main macros are implemented in the \fn{cnbwp} class. Each document must therefore start with the command: + +\begin{verbatim} +\documentclass{cnbwp} +\end{verbatim} + +The \xx\cmd{documentclass} command allows parameters to be entered in square brackets before the +class name. This case is no exception. \fn{cnbwp} is derived from the \fn{article} class and +assumes all its parameters. The Working Papers format is a fixed one, however, so parameters that +alter the paper size, the font size, and number of columns are ignored. + +A number of new parameters may be used in the \fn{cnbwp} class. The first of these concerns the +numbering of figures and tables. By default, tables and figures are numbered +nonhierarchically. The numbering mode can be changed. It is set using +the following parameters: + +\vb\noindent +\begin{tabular}{@{}Rl} +hierarchicalnumbering & hierarchical numbering \\ +simplenumbering & simple numbering +\end{tabular}\label{numbering}\index{hierarchicalnumbering}\index{simplenumbering}\vb + +If neither of these parameters is specified, or if both are specified, simple numbering +will +be used. Hierarchical numbering can be activated with the command: + +\begin{verbatim} +\documentclass[hierarchicalnumbering]{cnbwp} +\end{verbatim} + +Figure and table captions are left-aligned by default. In some documents it may look better +aesthetically if the captions are centred. The alignment for the document as a whole is set using +the following parameters: + +\vb\noindent +\begin{tabular}{@{}Rl} +standardcaptions & captions left-aligned \\ +centeredcaptions & captions centred +\end{tabular}\label{captions}\index{standardcaptions}\index{centeredcaptions}\vb + +If neither of these parameters is specified, or if both are specified, the figure and table +captions will be left-aligned. + +In some circumstances it is necessary to align some captions differently than other captions in the +document. This can be done using macros that will be explained later on in section~\ref{body}. + +The \fn{cnbwp} class implicitly loads the packages needed for formatting Working Papers. These +packages are: \xx\fn{ifpdf}, \fn{mathptmx}, \fn{fontenc} with T1 parameter, \fn{babel} +with czech and english parameters, \xx\fn{natbib}, \xx\fn{url} and \xx\fn{keyval}. The +parameters +specified in square brackets in the \xx\cmd{documentclass} command are automatically sent to all +these packages as well as to any other packages that you might load later on. You will probably +most often specify parameters for the \fn{natbib} package. If you wish to change the citation style +from author-year to numbered format, use: + +\begin{verbatim} +\documentclass[numbered]{cnbwp} +\end{verbatim} +\index{numbered} + +The parameters can be used in any combination you like. It does not matter which order you list +them in. If, then, you want a base font size of 10.95\,pt, centred captions and numbered literature +references, you can write: + +\begin{verbatim} +\documentclass[centeredcaptions,numbered,11pt]{cnbwp} +\end{verbatim} + +Using the \xx\cmd{usepackage} command you can now load the other packages you need to format your +document. In a single \cmd{usepackage} command you can specify two or more packages separated by +commas, e.g.: + +\begin{verbatim} +\usepackage{graphicx,amsmath,dcolumn} +\end{verbatim} + +The \cmd{usepackage} macro also lets you specify parameters in square brackets. These parameters +are only sent to the packages specified in the given command. However, you cannot then load more +than one package using the same command, as \LaTeX\ would display a message stating that the +parameters are not implemented in the package. You need to use, for instance: + +\begin{verbatim} +\usepackage{amsmath,dcolumn} +\usepackage[dvips]{graphicx} +\usepackage[figuresright]{rotating} +\end{verbatim} + +The parameters specified in the \xx\cmd{documentclass} command will be sent to all packages. Thus +the parameter \texttt{draft} can be specified globally: + +\begin{verbatim} +\documentclass[draft]{cnbwp} +\usepackage{graphicx} +\end{verbatim} + +\noindent +However, you can also use it with the \fn{graphicx} package only: + +\begin{verbatim} +\documentclass{cnbwp} +\usepackage[draft]{graphicx} +\end{verbatim} + +\noindent In both cases the figures will be replaced by a rectangular box of the same size as the +figure and the file name will be printed inside this box. In the first case, moreover, overfull +boxes will be indicated by black rectangles in the margin. + +\pozor The \xx\fn{hyperref} package uses a different definition of the \xx\cmd{url} macro than the +\xx\fn{url} package. In addition, this definition causes conflicts in the bibliography. The +\fn{cnbwp} class therefore copies the \cmd{url} definition from the \fn{url} package to an +auxiliary macro \cmd{CNBurl}, and after \cmd{begin\{document\}} is executed the \cmd{url} macro +definition is refreshed so that it corresponds to the \fn{url} package. If you wish to use the +macro from the \fn{hyperref} package, save it after loading the package in a macro with a suitable +name, e.g. using: + +\begin{verbatim} +\let\MYurl\url +\end{verbatim} + +\pozor Never change the \cmd{url} macro definition, as the macros for formatting the list of +references depend on this definition. The \cmd{url} macro may be used in the citation database +drawn up by \BibTeX, so you will not necessarily see it directly in the document. If the definition +is changed, \LaTeX\ will display strange error messages and the formatting of part of the document +will probably crash completely. + +\pozor \LaTeX\ does not require the use of separate name files for each package. Packages may +therefore contain conflicting definitions that can cause unpredictable errors. Besides the +conflicts mentioned above, the \xx\fn{path} package cannot be used at the same time as the +\xx\fn{url} package. It is therefore a good idea to begin with a minimal document and only use +those packages which are absolutely necessary for processing. Conflicts have to be located and +eliminated by trial and error. Sometimes it also helps to change the order in which you load the +packages. + +At the end of the preamble you should define your own macros needed throughout the document. The +\xx\cmd{DeclareRobustCommand} command is especially useful for defining macros. It has the same +syntax as \xx\cmd{newcommand}. The only difference is that the defined macro is robust. When using +macros defined in this way in the \cmd{section} and \cmd{subsection} commands, you do not need to +use \xx\cmd{protect}. + +In some cases you will need to adjust the margin settings, as some printer drivers ignore the +margins set in the file and move the text. Before you start making changes, check your printer's +properties. Some drivers always default to letter format, which means that you have to change the +format to A4 before each print job. If the margins still disagree, make adjustments in the +registers \xx\cmd{hoffset} (to move the text horizontally) and \xx\cmd{voffset} (to move the text +vertically). For instance, if you need to move the text 5\,mm to the right and 3\,mm upwards, +write: + +\begin{verbatim} +\hoffset=5mm +\voffset=-3mm +\end{verbatim} + +You can ascertain the values by printing out a test figure in \xx\fn{a4-portrait.pdf}. + +\subsection{Title Page}\label{titlepage} A Working Paper must always start with a title page, which +is made up of several components. The following subsections will deal with each of these in turn. + +\subsubsection{Title}\label{nadpis} The title lies at the boundary between the preamble and the +document body. In fact, some macros can be put in the preamble. More precisely, the macros defining +the title, the names of the authors and the acknowledgements can be written anywhere +between \cmd{documentclass} and +\cmd{maketitle}. It can thus be useful to place them right at the beginning of the file. + +The title of the work is written as the argument of the \xx\cmd{title} macro. The title +will be +printed later, after you write the \xx\cmd{maketitle} command, but it will also be put in +the +header: + +\begin{verbatim} +\title{Twelfth Night, or What You Will} +\end{verbatim} + + +The names of the authors are entered using the \xx\cmd{author} macro that requires two +parameters. The first parameter conains the full name. The authors' institution is +entered in the second argument , e.g. as follows: + +\begin{verbatim} +\author{Captain Nemo}{Nautilus} +\author{Robinson Crusoe}{Desert Island} +\end{verbatim} + +\subsubsection{Acknowledgements}\label{ack} Acknowledgements are an optional part of a +Working +Paper. They are written in the argument of the \xx\cmd{acknowledge} macro. + +The title will be printed by specifying the \xx\cmd{maketitle} macro. This macro must +come after \cmd{begin\{document\}}. + +\subsubsection{Abstract}\label{abstrakt} +The English abstract should be placed in the \xx\texttt{abstract} environment, the Czech +abstract should appear in the \xx\texttt{abstrakt} environment, i.e. as follows: + +\begin{verbatim} +\begin{abstract} +Place the abstract here. + +The abstract may contain more than one paragraph. A blank line should be left +between the paragraphs. No blank line is needed at the end of the abstract. +\end{abstract} + +\begin{abstrakt} +Zde uvedeme abstrakt práce. + +Abstrakt může obsahovat více odstavců. Mezi odstavci ponecháme +prázdný řádek. Na konci abstraktu prázdný řádek být nemusí. +\end{abstrakt} +\end{verbatim} + +Czech hyphenation rules are activated automatically in the \texttt{abstrakt} environment. + +\subsubsection{JEL Codes}\label{jel} +JEL codes should be put in the \xx\cmd{JEL} macro: + +\begin{verbatim} +\JEL{E22, E23, E32, E52} +\end{verbatim} + +\subsubsection{Keywords}\label{kwd} +Keywords are the final element of the title page. They are entered using the aforementioned \xx\cmd{Keywords} macro: + +\begin{verbatim} +\Keywords{20,000 leagues, maelstrom, Nautilus, sea, whale} +\end{verbatim} + +The CNB requires keywords to be given in alphabetical order. However, the above macro does not +perform this task, so authors must do it themselves. + +\subsection{Nontechnical Summary}\label{nontech} The Nontechnical Summary is about one page long +and is printed on a separate page in the document. Like the abstract, it is written in the +\xx\texttt{nontechsummary} environment: + +\begin{verbatim} +\begin{nontechsummary} +Write the Nontechnical Summary in this environment. The title will be +created automatically and will not be numbered. + +The text usually consists of several paragraphs separated by blank lines. +\end{nontechsummary} +\end{verbatim} + +\pozor The \hyperref[kwd]{\xx\cmd{Keywords}} macro and the \xx\texttt{nontechsummary} environment +force a page break. If both these elements +are missing and the page break is forced manually using the \cmd{newpage} or \cmd{clearpage} +command, part of the document will be incorrectly formatted. + +\subsection{Macros for the Document Body }\label{body} The body of the document is written in the +same way as with the \fn{article} class. Sections are therefore specified using the +\xx\cmd{section} macro and subsections using the \xx\cmd{subsection} macro. The +\xx\cmd{subsubsection} command is also implemented. Subdivision to \xx\cmd{paragraph} and +\xx\cmd{subparagraph} was not envisaged in the design, but no syntax error will occur if these +macros are used. + +Table and figure captions are written in the \xx\cmd{caption} macro. The captions will be aligned +according to the parameter specified in the preamble (see +\hyperref[captions]{page~\pageref*{captions}}). If you wish to align a caption +differently, you +must explicitly specify \xx\cmd{standardcaption} to left-align it and +\xx\cmd{centeredcaption} to +centre it. The numbering format always corresponds to the parameters specified in the +preamble, +which are explained \hyperref[numbering]{on page~\pageref*{numbering}}. It cannot be +changed in the +document. This would be nonsensical from the typographical perspective anyway. + +The description of a table or a figure may contain a note entered by using the +\xx\cmd{Note} macro and information on a source entered by using a \xx\cmd{Source} macro. +They are usually placed below the \xx\cmd{caption} macro as follows: + +\begin{verbatim} +\Note{Value Added Tax (VAT), Excises (E), Personal Income Tax (PIT), + Social Security Contributions (SSC), Inheritance Tax (IT), + Corporate Income Tax (CIT), Other Age-Specific Revenues (OR).} +\Source{CNB} +\end{verbatim} + +\section{References}\label{references} The list of references (bibliography) can be +written in two +ways: either using the \BibTeX{} system, or not using it. In either case the +\xx\fn{natbib} +package, which is automatically loaded by \fn{cnbwp}, is used for the actual formatting. +Consequently, the appearance of the document does not depend on the method chosen for +writing the +list of references. + +Parameters can be transferred to the \xx\fn{natbib} package as follows. Optional +parameters can be +written in square brackets in the \cmd{documentclass} command. These parameters are sent +both to +the \fn{article} class, from which the \fn{cnbwp} is derived, and to all the loaded +packages. Thus +it is possible to specify parameters for the \xx\fn{natbib} package. For example, the +citation +style can be changed from author-year to numbered format using the \xx\texttt{numbered} +parameter. + +The method for creating a list of references using \BibTeX{} will be described briefly in +section~\ref{bibtex}. The macros created for Czech National Bank Working Papers will be +explained +in detail in section~\ref{makra} and the subsections thereof. + +\subsection{Writing References Using \BibTeX{}}\label{bibtex}\index{BibTeX@\BibTeX} The +use of +\BibTeX{} is described in Oren Patashnik's document \uv{\BibTeX ing}, which comes as part +of the +standard \TeX{} distributions. We will make use of the \xx\fn{abbrvcnb} style derived +from the \xx\fn{natbib} bibliographic +styles. Let's assume that you have a bibliography database stored in a file called +\fn{references.bib}. You should then place the following in the \LaTeX document: + +\begin{verbatim} +\bibliographystyle{abbrvcnb} +\bibliography{references} +\end{verbatim} +\index{abbrvnat}\index{bibliography@\cmd {bibliography}}\index{bibliographystyle@\cmd +{bibliographystyle}} + +\noindent +Once the document has been processed by \LaTeX{}, run \BibTeX: + +\begin{verbatim} +bibtex document +\end{verbatim} + +\noindent (In place of the word \textit{document} write the file name; here we have assumed that +the document is stored in a file called \fn{document.tex}.) The document then needs to be processed +twice by \LaTeX{}. Occasionally a third pass is required if a page shift occurs after the +references are added to the text. + +Document URLs are usually long strings in which automatic hyphenation does not work or the words +are hyphenated in inappropriate places, hence confusion can arise. This problem is solved in +conformity with the standards for writing URLs\index{URLs} in the \xx\fn{url} package, which is +also implicitly loaded by the \fn{cnbwp} class. The URL usually appears in a +\textit{note}\index{note} field. This field should therefore be written as follows: + +\begin{verbatim} +note = "\url{ftp://ftp.cstug.cz/pub/tex/CTAN/}", +\end{verbatim} +\index{url@\cmd {url}} + +\subsection{Writing References Using Special Macros}\label{makra} The list of references can be +written using special macros directly in the \LaTeX file in the \xx\texttt{thebibliography} +environment. This environment has one required parameter, which sets the width needed for the +ordinal. \BibTeX{} enters the number of the citations in this parameter. You may, however, specify +any text of suitable width, for instance \texttt{XX}, as used in the example (see the +\hyperref[priloha]{Appendix}). Each citation is written in the following format: + +\medskip\noindent +\bibi\texttt{[}\textit{citation text}\texttt{]}\texttt{\{}\textit{label}\texttt{\}}% +\texttt{\{}\textit{citation content}\texttt{\}} + +\medskip\noindent In place of the word \textit{type} you need to specify the relevant type of work +cited. We will use an identifier derived from the standard types defined in \BibTeX{}. A list and +description of these can be found in \hyperref[typy]{section~\ref*{typy}}. + +The first two parameters (optional and required) have the same meaning as for the \xx\cmd{bibitem} +macro. The required parameter \textit{label} is used when citing text in the \xx\cmd{cite} macro. +The optional parameter \textit{citation text} contains the information that is written in the text +at the citation location. This parameter has the general format: + +\medskip\noindent +\texttt{[}\textit{short text}\texttt{(}\textit{year}\texttt{)}\textit{long text}\texttt{]} + +\medskip \pozor The final parameter of \bibi\ macros is processed using the \xx\fn{keyval} package. +This means that only declared fields may be used. It is not possible to create an unknown field to +add a comment that is not meant to be printed. Such an attempt will lead to an error during the +processing of the document. Comments are written after a \textit{procento} sign, as in standard +\LaTeX texts. + +The optional parameter and the first required parameter of \bibi\ macros are transferred unchanged +to the \xx\cmd{bibitem} macro. + +The \fn{natbib} package can choose between short and long text. If the cited work has only one +author, \textit{dlouhý text} is not specified. The entire parameter can then be written in the +following format: + +\begin{verbatim} +[Mouse(1984)] +\end{verbatim} + +Both options are specified for works with more than one author. If, for example, you want to cite a +book issued in 1984 written by Mickey Mouse, Donald Duck and Bugs Bunny, the parameter should be +written in the following format: + +\begin{verbatim} +[Mouse et.~al.(1984)Mouse, Duck and Bunny] +\end{verbatim} + +\pozor +\BibTeX\ generates all pieces of information for the \bibi\ macro automatically. If the +information is entered manually, the parameter in the square brackets must be properly +formatted. Especially, the value in the round parentheses must be identical to the +\texttt{year} value as shown in appendix~\ref{priloha}. The items must also be sorted by +the author. + +Selection of the citation text format is based on the required appearance of the resulting text. If +you do not require citations in long format, you need not specify that option in the \bibi\ macro. + +The \xx\fn{natbib} package requires round brackets in the optional parameter. If you do not know +the year of publication of a cited work, you must write at least empty brackets~\texttt{()}. + +The reference to the cited work is written in \textit{citation content}. The format of this +parameter will be described in \hyperref[obsah]{section~\ref*{obsah}}. + +\subsubsection{Types of Cited Works}\label{typy} The macros used for citing works are based on the +standard types defined in \BibTeX{}. Here we will list and briefly describe these types and provide +a list of the required and optional fields. The meaning of the fields and the way they are written +will be explained in \hyperref[obsah]{the following section}. + +\begin{description} +\item[\xx\cmd{articleItem}] An article from a journal or magazine. Required fields: \;author , \;title , \;journal , +\;year . Optional fields: \;volume , \;number , \;pages , \;month , \;note . + +\item[\xx\cmd{bookItem}] A book with an explicit publisher. Required fields: \;author \ or \;editor , +\;title , \;publisher , \;year . Optional fields: \;volume \ or \;number , \;series , \;address +, \;edition , \;month , \;note . + +\item[\xx\cmd{bookletItem}] A work that is printed and bound, but without a named publisher or institution. +Required field: \;title . Optional fields: \;author , \;howpublished , \;address , \;edition , +\;month , \;year , \;note . + +\item[\xx\cmd{conferenceItem}] The same as \xx\cmd{inproceedingsItem}. + +\item[\xx\cmd{inbookItem}] A part of a book, usually a chapter or a range of pages. Required +fields: \;author \ or \;editor , \;title , \;chapter \ and/or \;pages , \;publisher , \;year . +Optional fields: \;volume \ or \;number , \;series , \;type , \;address , \;edition , \;month , +\;note . The meaning of the \;type \ field will be explained \hyperref[type]{on +page~\pageref*{type}}. + +\item[\xx\cmd{incollectionItem}] A part of a book having its own title. Required fields: \;author , +\;title +, \;booktitle , \;publisher , \;year . Optional fields: \;editor , \;volume \ or \;number , +\;series , \;type , \;chapter , \;pages , \;address , \;edition , \;month , \;note . +The \;type \ field has the same meaning as in the previous citation type and is explained \hyperref[type]{on page~\pageref*{type}}. + +\item[\xx\cmd{inproceedingsItem}] An article in a conference proceedings. Required fields: \;author , +\;title , +\;booktitle , \;year . Optional fields: \;editor , \;volume \ or \;number , \;series , \;pages , +\;address , \;edition , \;month , \;organization , \;publisher , \;note . + +\item[\xx\cmd{manualItem}] Technical documentation. Required field: \;title . Optional fields: +\;author , \;organization , \;address , \;edition , \;month , \;year , \;note . + +\item[\xx\cmd{mastersthesisItem}] A Master's thesis. Required fields: \;author , \;title , \;school , +\;year . Optional fields: \;type , \;address , \;month , \;note . + + +\item[\xx\cmd{miscItem}] Another type used when nothing else fits. It has optional fields only +\;author , \;title , \;howpublished , \;month , \;year , \;note . + +\item[\xx\cmd{phdthesisItem}] A PhD thesis. Required fields: \;author , \;title , \;school , +\;year . Optional fields: \;type , \;address , \;month , \;note . + +\item[\xx\cmd{proceedingsItem}] The proceedings of a conference. Required fields: \;title , \;year +. Optional fields: \;editor , \;volume \ or \;number , \;series , \;address , \;month , +\;organization , \;publisher , \;note . + +\item[\xx\cmd{techreportItem}] A report published by a school or other institution, usually +numbered within a series. Required fields: \;author , \;title , \;institution , \;year . Optional +fields: \;type , \;number , \;address , \;month , \;note . + +\item[\xx\cmd{unpublishedItem}] A document having an author and title, but not formally published. +Required fields: \;author , \;title , \;note . Optional fields: \;month , \;year . + +If none of these types meets your requirements, you can use \xx\cmd{bibitem} directly and format everything manually. + +\end{description} + + +\subsubsection{Specifying Fields}\label{obsah} +The content of each field of a cited work is entered in the last parameter of \bibi\ macros. The fields are specified in the following format: + +\begin{verbatim} +{name1 = value1, name2 = value2, name3 = value3} +\end{verbatim} + +\noindent Spaces around equals signs and commas separating fields are ignored. Blank fields are +also ignored. It is therefore possible to write two or more commas in succession or a comma before +the first field and after the last one. Wherever a space is permitted, a line can also be +terminated. In addition, \TeX{} ignores all spaces at the start of a line. The list of references +can thus be written in a clear, easy-to-read style like that used in the +\hyperref[priloha]{Appendix}. + +Fields are separated from one another with commas. If you want to write a comma in the field value, +you have to enclose the entire value in curly brackets. This will occur most frequently in +citations of works with more than one author. Where a publication has only two authors, their names +should be joined with the conjunction \textit{and} as follows: + +\begin{verbatim} +author = Donald Duck and Mickey Mouse, ... +\end{verbatim} + +\noindent +Here a comma terminates the field. If there are more authors, their names should be enclosed in brackets as follows: + +\begin{verbatim} +author = {Donald Duck, Mickey Mouse, and Bugs Bunny}, ... +\end{verbatim} + +\noindent +The first comma (inside the brackets) is part of the list of authors, and the last comma +terminates the field. In case of three or more authors the conjunction \textit{and} +should be preceded by a comma. + +\pozor Omitting a comma or leaving out the brackets around a value containing a comma +results in an +error message about an unknown field with a strange name. Sometimes errors of this type +cause the +loss of an entire chunk of the list of references and subsequent parts of the document. + +Curly brackets are often used in database files destined for processing by \BibTeX{} in +order to +prevent conversion to upper-case or lower-case letters. \LaTeX\ does not perform any +conversions, +so brackets are not needed. However, various macros can be used, e.g. \xx\cmd{mbox} to +prevent +incorrect hyphenation and \xx\cmd{-} to specify where to hyphenate words correctly, and +inside the +\xx\texttt{thebibliography} environment you can even define your own macros, which will be +unknown +(or defined differently) in other parts of the document. + +Fields can be entered in any order, but only the following may be used: + +\begin{description} +\xitem[address] The address of the publisher or institution (e.g. the school in the case +of a thesis) +\xitem[author] The name(s) of the author(s), in the format as they should appear. Unlike +\BibTeX{} +there is no reformatting (forenames will not be shortened to initials etc.). +\xitem[booktitle] Title of a book, part of which is being cited. +\xitem[chapter] A chapter number. +\xitem[edition] The edition. This should be an ordinal and can also be entered as a word, +e.g. \textit{Second}. +\xitem[editor] Name(s) of editor(s), entered in the same format as the author names. +\xitem[howpublished] How something strange has been published. +\xitem[institution] The sponsoring institution of a technical report +(\cmd{techreportItem}). +\xitem[journal] A journal name or abbreviation. +\xitem[month] The month in which the work was published. The day can also be given in this +field. +\xitem[note] An explanatory note. This field is given in the examples in the +\hyperref[priloha]{Appendix}, but it is rarely used in practice. It is used to state the +URLs\index{URLs} of works published on the Internet. For automatic and correct splitting +of long +URLs on multiple lines, the \xx\fn{url} package loaded by the \fn{cnbwp} class is used. +URLs should +therefore be written in the following format: + +\begin{verbatim} +note = \url{ftp://ftp.cstug.cz/pub/tex/CTAN/}, ... +\end{verbatim} + +\xitem[number] The number of a journal, magazine, technical report, or of a work in a +series. +\xitem[organization] The organisation that sponsors a conference or that publishes a +manual. +\xitem[pages] A range of pages. +\xitem[publisher] The publisher's name. +\xitem[school] The name of the school where a thesis was written. +\xitem[series] The name of a series (or set) of books. +\xitem[title] The work's title. +\xitem[type] The type of a work\label{type}, e.g. \textit{Research Note}. In citations +\xx\cmd{inbookItem} and \xx\cmd{incollectionItem} specify the text corresponding to the +\;chapter +\index{chapter} field. The default is \texttt{chapter}, but you can specify +\texttt{section}, for +example. +\xitem[volume] The volume of a journal or multi-volume book. +\xitem[year] The year of publication or, for an unpublished work, the year it was written. +\end{description} + +The breakdown into fields need not be strictly observed. The information can be split into +separate +fields: + +\begin{verbatim} +publisher = John Wiley \& Sons, address = New York, ... +\end{verbatim} + +The list of references written directly in a \LaTeX document will probably not be used for +further +machine processing. It may therefore be useful to combine the two pieces of information +into a +single field: + +\begin{verbatim} +publisher = {John Wiley \& Sons, New York}, ... +\end{verbatim} + +\noindent Here we had to use brackets, as the combined information contains a comma. + +Macros automatically add full stops or commas as individual fields, although only where +the text +does not end in a punctuation mark. Consider a title typed as: + +\begin{verbatim} +title = Can we spend less money for more music?, ... +\end{verbatim} + +\noindent In this case no punctuation mark will be added, even if the entire title is +enclosed in +curly brackets. + +\subsection{How to Choose the Entry Type} An entry type must be chosen for making \BibTeX +database +entries and when using \bibi\ macros. The type names are intuitive and it should be +straightforward +to make the right choice. In cases of doubt, it helps to know which fields are required +and which +are optional. Choose the type whose structure best fits the purpose. + +Some fields seem superfluous. For example, the bibliographic types for Master's +(\xx\cmd{mastersthesisItem}) and Ph.\,D. +(\xx\cmd{phdthesisItem})\footnote{In \BibTeX{} \xx\texttt{@mastersthesis} and +\xx\texttt{@phdthesis}.} thesis have exactly the same format. The only difference is the +default value of +the optional field \;type . If you want to cite a similar publication, for instance a +dissertation, +you can use any type and specify the optional field: + +\begin{verbatim} +type = Dissertation, ... +\end{verbatim} + +Works only available from the Internet have not been formally published. For such +publications, use +\xx\cmd{unpublishedItem} (in \xx\BibTeX{} \texttt{@unpublished}). URLs of works should be +placed in +the \;note \index{note} field, as mentioned earlier. + +%\subsection{Technická poznámka} +% Technickou poznamku navrhuji rozdelit a presunout jak navrzeno + + +\section{Figures and Charts}\label{incgraph} \TeX\ is a text-processing program. Apart +from +primitive graphics created with horizontal and vertical strokes and characters made from +specially +prepared fonts, no figures can be created directly. You can, however, +import\footnote{Technical +speaking, there isn't even a command for inserting figures. However, \TeX\ does have the +\xx\cmd{special} command, which is not interpreted at all and whose argument is merely +sent to the +output device. How this command is handled depends on the relevant driver. When we talk +about how +figures are inserted in \TeX or \LaTeX documents, we are always referring to some specific +device +driver.} figures created in other applications and saved in separate files. + +Figure and tables can be (but do not have to be) inserted in the text using the floating +environments \xx\texttt{figure} and \xx\texttt{table}, which among other things allow such +objects +to be easily numbered, described, placed and, as the case may be, further manipulated. For +a +description of some of the more advanced techniques for working with floating +environments, see +also section \ref{plovouci}. + +The easiest way to load a figure into a floating environment is to use the +\xx\fn{graphicx} +package. The \xx\cmd{includegraphics} macro has one required parameter -- the name of the +file +containing the figure. A series of different instructions can be specified in the optional +parameter in square brackets in the format \textit{key=value}. The syntax is the same as +for the +\bibi\ macro, which was described in section~\ref{obsah}, except that square brackets are +used +instead of curly brackets, as the first parameter is optional. Here, too, the parameters +are +processed using the \xx\fn{keyval} package. + +A detailed description of the \cmd{includegraphics} command can be found in the file +\xx\fn{grfguide.ps}, which is part of the distribution. Here we will describe only a few +of the +main parameters: + +\begin{description} +\xitem[scale] is the scale factor. Enter \texttt{scale=.5} to reduce by half. +\xitem[width] specifies the preferred width. The dimension can be entered in the units of +your +choice or as a percentage of other dimensions. If you want a width of 75\,\% of the width +of the +text, use \verb;width=.75\textwidth;. +\xitem[height] specifies the height of the image. Entering \texttt{height} and +\texttt{width} +simultaneously will distort the image. If just one of these parameters is entered, the +second will +be calculated so as to maintain the aspect ratio. +\xitem[clip]\label{clip} crops the bounding box. Some programs (e.g. Quattro) create +defective EPSs +which delete their surroundings. If part of the text above or next to a figure disappears +when you +insert it, try using the \texttt{clip} parameter (without writing an equals sign and +value). +\xitem[page] is used only when importing an image from a multi-page PDF\index{PDF} file. +It is used +to specify the number of the page you wish to insert. +\end{description} + +The graphics format in which the imported images are saved should be chosen according to +the method +used to create the final PDF document file. PDF creation methods are described in more +detail in +section\ref{latex2pdf} and a discussion of some of the most important graphics formats can +be found +in section \ref{obrazky}. + +When using \fn{dvips} or \fn{dvipdfm} or when using a virtual postscript printer, +EPS\index{EPS} is +the best graphics format for both bitmap and vector images. + +\pdftex\ can load images in JFIF\index{JFIF} and PNG\index{PNG} formats, but these are +bitmap and +are used only rarely. Vector images must be prepared in PDF format. Adobe +Distiller\index{Distiller}\index{Adobe Distiller} can be used to convert from EPS to PDF, +although +\xx\fn{epstopdf} offers the same function. The latter, however, requires \xgs\ and +\xx\fn{perl}. +These programs are freely distributable and are available for all operating systems. + +\section{Preparing Figures}\label{obrazky} This section will focus on how to prepare +figures. We +will start by explaining the differences between the main graphics formats and go on to +describe +several ways of preparing and editing figures. + +\subsection{Graphics Formats}\label{graform} Images can be divided into two basic formats: +bitmap +and vector. Bitmap images represent an array of values (a raster) where each element +carries +information on the colour of a displayed pixel of non-zero size. Vector images differ in +that the +curves within them are described using mathematical equations. Information on line width, +line +colour and, as the case may be, fill colour is attached to each curve. Rasterisation +occurs at the +instant the image is displayed on the monitor or printed. + +It may seem that there is no great difference in the result, as even a vector image has to +be +rasterised, but nothing could be further from the truth. The fundamental difference is +that each +display or printing device has a different resolution, i.e. a different raster density. A +vector +image is rasterised at the instant it is displayed, hence it is rasterised at a specific +resolution. The size and shape of the dots also matters. This determines the colour of the +dots +that are mathematically on the boundary between the coloured and uncoloured parts of the +plane. The +display device's rasterisation algorithm calculates them in such a way that the curves +look smooth. + +When a bitmap image is displayed, the prescribed size has to be maintained even if the +image was +created for a different resolution. This means that there is no other option than to +calculate the +dots by interpolation. In a bitmap image we no longer have any information on whether the +dot lay +on the curve. Although the driver of the relevant device knows the size and shape of the +dots, it +does not have enough information to be able to use them when rasterising. + +Example vector and bitmap charts are given in Figure~\ref{vectbitfig}. The figure is one +of the +demonstration examples supplied with gnuplot. The vector and bitmap charts were created +from the +same source. + +\begin{figure}[p] +{\centering +\includegraphics[width=.61\textwidth]{graph18.pdf} + +\hrule \vskip 2dd + +\includegraphics[width=.61\textwidth]{graph18.png} + +\hrule \vskip 2dd + +\includegraphics[width=.61\textwidth]{graph18.jpg} + +} +\caption{Comparison of vector image (top) with bitmap with lossless compression (centre) +and JPEG lossy compression (bottom)}\label{vectbitfig} +\end{figure} + +The top image is the vector image. It was exported as EPS\index{EPS} (Encapsulated +Post\-Script\index{Encapsulated PostScript}) and converted to PDF so that it could be +loaded by +pdf\TeX\ or by \XeTeX. The curves may look jagged on the screen, because the screen +resolution is low, but this +effect disappears when the image is printed on a quality printer. + +The central image was exported in PNG\index{PNG} (Portable Network Graphics\index{Portable +Network +Graphics}) format. The difference in image quality is plain to see. The worse font quality +is +particularly visible. At some magnifications the axes can disappear altogether. The axes +remain +jagged even when the image is printed on a high-resolution printer, since, as mentioned +earlier, +the driver of the relevant device does not know that the pixels should all lie on the same +line and +merely recalculates the \uv{steps} at a different resolution. + +Raster data take up too much memory. However, images tend to contain repeated colour +sequences and +monochromatic areas, so data can be stored more efficiently using a compression algorithm. +Compression algorithms are divided into two classes: lossless and lossy. Lossless +algorithms allow +the original data to be restored by decompression. This is impossible in principle with +lossy +algorithms. + +The PNG format, used in the central image, uses a lossless compression algorithm. The +bottom image +was saved in a format that employs lossy compression -- +JPEG\index{JPEG}\footnote{pronounced +\textit{jay peg}.}. This algorithm was developed by the Joint Photographic Expert +Group\index{Joint +Photographic Expert Group} for storage of colour photographs. Research has shown which +elements of +an image cannot be seen by the human eye. Such elements can thus be removed from a +photograph +without any problem. The quality is not compromised and the file size is considerably +reduced. The +quality of the image can be modified, but even with the highest image quality (lowest +compression) +the compression is always lossy. This format is called JFIF\index{JFIF} (JPEG File +Interchange +Format\index{JPEG File Interchange Format}) and the files usually have the extension +\xx\texttt{jpg}, or less often \xx\texttt{jpeg}, \xx\texttt{jff} or \xx\texttt{jfif}. + +The bottom image was created at a low resolution suitable only for the screen and was +intentionally +saved at a low quality setting to make it obvious at first glance that lossy compression +leads to +blurring and the formation of colour artefacts, especially in near-monochromatic areas. + +\pozor Remember that images should always be created in the format best suited to their +nature. +Charts and diagrams are always mathematical objects, which can be described using +equations known +from analytical geometry. Complicated curves are generally approximated by Bézier curves. +Such +images should therefore be created in vector format. Bitmap formats should only be used +for images +that do not have a mathematical representation. Lossless compression formats are +preferred. +Graphics formats with lossy compression should be used \textbf{solely for colour photos +and nothing +else}! + +There are many myths surrounding graphics formats. One such is the belief that +EPS\index{EPS} is a +vector format. This is only partly true. EPS format is basically Post\-Script with some +restrictions. The file may contain vector or bitmap graphics or even a combination of the +two. What +matters when an image is saved in EPS format is the program that was used to create it. If +the +image was drawn using a bitmap editor such as Photoshop\index{Photoshop} or +Gimp\index{Gimp}, the +resulting EOS will also be bitmap. The same goes for PDF\index{PDF} format. Both formats +allow +lossless and lossy compression of bitmap images. + +Many people mistakenly believe that there is no difference between the +(Post\-Script\index{PostScript}) and EPS\index{EPS} formats. Regrettably, this +misapprehension is +very common even among some writers of commercial software. EPS permits only a subset of +the +Post\-Script language and requires extra information before the programs can insert the +image in +the document. However, some programs create postscript files that only look like EPS. In +some cases +this doesn't matter, but often such an image cannot be inserted because it causes strange +errors +(the ensuing file gets corrupted and part of the text, or even the whole of the rest of +the +document, is lost). Sometimes an expert can repair such a file, but this can take several +hours of +investigation. Fortunately there are tools available for the job\label{poprava}. We will +touch on +these in section~\ref{oprava}. + +Another myth concerns the bitmap format TIFF\index{TIFF} (Tagged Image File +Format\index{Tagged +Image File Format}; usual file extension: \xx\texttt{tif}). It is often claimed that this +format +uses lossless compression. In reality, though, the compression method can be selected when +the file +is saved. There are several lossless algorithms to choose from, and the image can even be +saved +with no compression whatsoever, but JPEG lossy compression may also be used. + + +\subsection{Preparing Vector Figures}\label{makevectfig} When preparing a vector figure, +it is +vital to use a graphics editor or similar program which genuinely works with vector +representation. +The figure must then be converted into a format that can be imported into the document, +i.e. EPS or +PDF. It is useful if the program is capable of writing the file in this format directly, +as is the +case, for example, with the Matlab system. If it is not, an alternative method needs to be +used. + +\subsection{Virtual Printers}\label{virt} Virtual printers are an alternative solution +where the +program does not have EPS or PDF format output. However, this method is only useful if you +are +using a vector editor. A bitmap graphics editor will create a bitmap EPS or PDF even when +a virtual +printer is used. + +\subsubsection{Printers with \ps{} Output}\label{virtps} Printers with \xps{} support are +available +on the market. Drivers for these printers come as a standard component of the operating +system +installation CD (Windows, Mac~OS, OS/2, eComStation). Some printers support multiple +communication +languages, such as PCL\index{PCL} and HPGL\index{HPGL}. It is inappropriate to use such +drivers in +virtual printer mode, as there are usually PJL\index{PJL} or similar commands at the start +and the +end of the file generated which enable and disable the \xps interpreter. Such commands do +more harm +than good as regards subsequent processing. Apple Writer printers are usually the best. To +create +colour images in EPS\index{EPS} format you need to install a colour printer driver, as a +monochrome +driver may convert the colours to greyscale. + +Install the virtual printer as a local printer in Windows and connect it to the file +rather than to +any physical device. If the driver allows function setting, enable EPS format and select +Type~1 +font conversion and insertion of fonts in the document. The standard Windows XP +installation +includes a large number of PostScript printer drivers. We have quite a good experience, +for +example, with the Apple LaserWriter Pro 600 and Lexmark Color 4079 plus PS2 printer +drivers. That +said, you will probably have to clip the EPS image (i.e. adjust the bounding box) created +by these +drivers using the method described in section \ref{oprava}. + +The average CNB computer network user may not have the option of installing non-network +printers. +In such cases, it may be necessary to log in to the system as a local administrator in +order to +install a virtual local printer. After installation, this printer will be available to +other users +of the station. We recommend testing the functionality of the newly installed virtual +printer only +after logging in to the standard user account (i.e. u0xxxx). + +To create a PostScript figure from a chart in MS Excel, for example, print the relevant +chart on a +virtual PostScript printer. It is a good idea to select 'Custom' under 'Printed chart +size' on the +'Chart' tab in the File/Page setup dialogue box. This will ensure that the dimensions of +the +printed chart can easily be modified in MS Excel by setting the size of the 'Chart Area' +object. +When printing, \textbf{do not tick Print to file}, but wait until the driver itself asks +you to +enter the file name. + +\subsubsection{Printers with PDF Output}\label{virtpdf} +Adobe Acrobat\index{Acrobat}\index{Adobe Acrobat} offers a virtual printer with +PDF\index{PDF} output called PDFWriter. + +There are also numerous PDF-generating shareware programs that can be installed as virtual +printers. Each has its own installation program. Again, where possible you should try to +enable +Type~1 font conversion and insertion of fonts in the document. + +\subsection{Converting and Editing Some Graphics Formats}\label{konverzeaeditace} +When producing documents it is often necessary to convert files between EPS, PDF and WMF +formats and to modify such graphics files in other ways. + +\subsubsection{Converting Figures from WMF to EPS Format}\label{wmf} Scientific +Word\index{Scientific Word} creates figures in WMF\index{WMF} (Windows +Metafile\index{Windows +Metafile}) format. To process a document in the standard \TeX{} installation you will need +to +convert the figures to EPS format. To do so you can use the shareware program +\xx\fn{wmf2eps}, an +unregistered version of which is supplied with Scientific Word version~5.5. To work +properly the +program requires installation of a virtual printer allowing print to EPS. Suitable drivers +are +supplied with the program in the \fn{PSprint} subdirectory. The installation process is +described +in the \fn{README.TXT} file in the software distribution. The program itself is very user +friendly +and intuitive. + +\subsubsection{Converting Between EPS and PDF Formats}\label{epspdf} +A PS or EPS file can be converted to PDF using either Adobe +Distiller\index{Distiller}\index{Adobe Distiller} or the \xx\fn{ps2pdf} program contained +in the \xgs{} distribution (or the \xx\fn{epstopdf} program). + +Conversely, to convert from PDF to EPS or PS use either the full Adobe +Acrobat\index{Acrobat}\index{Adobe Acrobat} (Save As EPS or Save As PS) or \xx\fn{pdftops} +with the +\texttt{-eps} parameter. \fn{pdftops} is part of the freely distributable \fn{xpdf}, see +\url{http://www.foolabs.com/xpdf/}. + +\gs\ also offers PDF to EPS conversion, but unfortunately it rasterises the fonts at the +same time. +Such figures are not usable. + +\subsubsection{Gnuplot}\label{gnuplot}\index{gnuplot} Gnuplot is a flexible, freely +distributable +program for plotting mathematical graphs. It is available for all operating systems. +Figure~\ref{vectbitfig} was created using this utility. It supports outputs in many +formats, +including EPS\index{EPS} and (in the latest version) PDF\index{PDF}. + +The program offers a wide range of curve colour, dot colour and dot shape options. These +options +depend on the output format selected, and the same type of curve can even be displayed in +a +different colour in different output formats. The best way to get information is to use +the +\texttt{test} command, which will give you a test figure showing all the options that the +relevant +format has to offer. To find out what options an EPS-format output offers, use the +following +commands: + +\begin{verbatim} +set term postscript eps color solid lw 2 18 +set output "test.eps" +test +set output +quit +\end{verbatim} + +\noindent +The test figure will be in the \fn{test.eps} file in the current directory. + +\subsubsection{Corel Draw}\label{corel}\index{Corel Draw} Corel Draw is a commercial +vector image +editor. It offers export to EPS format. Bear in mind, though, that Corel Draw contains +many fonts +that are not available on other computers. When exporting to EPS, therefore, you have to +convert +such fonts into curves. In versions 8 onwards the software performs this operation +automatically. + +\subsubsection{Adobe Illustrator}\label{ai}\index{Illustrator}\index{Adobe Illustrator} +Adobe +Illustrator is a commercial vector editor whose native format AI\index{AI} is based on +\ps{}. When +a file is opened in a standard text editor, it is indistinguishable from EPS at first +glance. +However, \ps\ is a programming language that has one shared feature with \TeX: it allows +definition +of user commands (using the \texttt{def} operator). The AI format contains postscript +commands, but +for these to be interpreted the defined macros contained in Adobe Illustrator are needed. +If you +insert an AI image directly into another document, everything will seem to work, but only +until you +try to print the document. On the page containing this figure, the \ps{} interpreter will +report an +\texttt{undefined} error. So don't forget to save the figure in EPS format. + +\subsubsection{Repairing Corrupted EPS and PDF Files}\label{oprava}\index{EPS}\index{PDF} +In section~\ref{poprava}, on page~\pageref{poprava}, we mentioned that images in EPS and +PDF files can get corrupted. We shall now describe how to repair them. + +The first common error an is an incorrect or unsuitable bounding box\index{BoundingBox}. +The +bounding box indicates the dimensions of the figure in the EPS file. According to the +specification, the entire figure must be inside the box, but there is no mention that the +box has +to be tight-fitting. If the bounding box is too large, it is not an error, but it is not +useful. +The software uses this information when inserting the figure in the document. If the +bounding box +is too large it leaves a large empty area around the figure. This is best repaired using +the freely +distributable software \xgs\ and its handy frontend \xgv. Both programs are needed. There +are +various different frontends for Linux (e.g. \xx\fn{ggv} for Gnome). Switch the orientation +of the +figure to Portrait and select the rather inappropriately named function +\texttt{PS~to~EPS}. This +does not, in fact, convert \ps\ to EPS, but just generates a tight-fitting bounding box +with the +right dimensions. In most cases the automatic setting works correctly. Use manual if +automatic +fails or if you want to remove part of the figure and you plan to use the +\hyperref[clip]{\texttt{clip}}\index{clip} parameter in the \xx\cmd{includegraphics} +macro. + +\pozor \gv\ cannot determine the necessary paper size for displaying an image in EPS +format. In +addition, some programs, in particular virtual printers, do not insert the figure in the +bottom +left-hand corner. If all you see is an empty page, tick EPS~Clip\index{EPS Clip} in the +Options +menu. + +The page dimensions in a PDF file can be changed using the full Adobe +Acrobat\index{Acrobat}\index{Adobe Acrobat}, which offers this function. I am not aware of +any +freely distributable alternative. + +The situation is worse if the file only looks like an EPS. The simplest case is where +there are +PJL\index{PJL} or other language commands at the start and end of the file. \xgv\ can +usually cope +with these, but problems will arise when the figure is inserted. The remedy is +straightforward. +Open the file in a standard text editor and delete everything before the first occurrence +of the +characters \texttt{\%!PS} (in EPS these must be at the start of the first line) and +everything +after the text \texttt{\%\%EOF}. With a rudimentary knowledge of \ps{} you can repair +other errors. +Usually all you have to do is delete the forbidden commands, but this can be a tough task +even for +an expert. It is easier to convert the image to PDF and then back to EPS (see +\ref{epspdf}) if you +don't want to, or cannot, process the document using \pdftex. + +\section{Preparing Tables}\label{tabulky} Tables are an important component of technical +papers. +However, they are only useful if they are well arranged. Producing tables is usually the +most +time-consuming part of the document preparation process. Tables are prepared using the +\xx\texttt{tabular} environment, and in this section we will present a number of +techniques that +will make it easier to typeset tables and help you achieve the desired look. + +Otherwise, as with figures, tables can be inserted in the text using the \xx\texttt{table} +floating +environment. For a description of some of the more advanced techniques for working with +floating +environments, see also section \ref{plovouci}. + +\subsection{Aligning Columns on a Decimal Point}\label{dcolumnuse} Decimals are often used +in +tables. The number of digits in each number of a column can differ, but it is vital that +the +numbers are aligned on the decimal point. The \xx\texttt{tabular} environment does not +offer this +option, but a solution can be found by using the \xx\fn{dcolumn} package. This package +adds column +type D to the \texttt{tabular} environment. Specification of column type D requires three +parameters: the separator used in the source text, the separator that you want to be +printed and +the maximum number of decimal places. If this last parameter is negative the decimal point +will be +in the centre of the column, which can cause the column to be too wide. The first two +parameters +are usually the same, although this need not be the case. Let's assume that we have +exported a +table from a table software package which uses decimal commas. We, however, want decimal +points. To +avoid the need to mess with the file, we make use of the option provided by the first two +parameters. An example is given in table~\ref{numtable}, the source code for which can be +seen in +figure~\ref{numtablesrc}. + +\begin{table}[hbt] +\caption{Demonstration of table with decimal point alignment}\label{numtable}\vb[.5] +\centering +\input{numtable} +\end{table} + +\begin{figure}[hbt] +\caption{Source code for table~\ref{numtable}}\label{numtablesrc}\vb[.5] +\hrule +\verbatiminput{numtable} +\hrule +\end{figure} + +The heading in column type D would not be correctly positioned. We therefore have to use +the +\xx\cmd{multicolumn} macro, in which we can change the alignment of that particular cell. +Note that +the \textbf{following} vertical line, not the preceding one, is part of the alignment +specification. The preceding line must be specified for the first column only. If, for +some (in +this case unwise) reason, the heading \textit{Jméno} should be right-aligned, we would +have to use: + +\begin{verbatim} +\multicolumn{1}{|r|}{\bfseries Jm\'eno} +\end{verbatim} + +The new column type definition is enabled by the fact that the \xx\fn{array} package is +implicitly loaded. This package offers users the \xx\cmd{newcolumntype} macro, which is +used to define new types. The syntax is the same as that for \cmd{newcommand}, except that +we are defining a column type, not a macro, and we cannot declare an optional parameter +with a default value. If, using the example from figure~\ref{numtablesrc}, we define a new +column type: + +\begin{verbatim} +\newcolumntype{d}[1]{D{,}{.}{#1}} +\end{verbatim} + +\noindent +we can write the table preamble in a plainer way: + +\begin{verbatim} +\begin{tabular}{|l|d{2}d{1}|} +\end{verbatim} + +In the table we have defined an extra dimension \xx\cmd{extrarowheight}, which is also +defined in +the \xx\fn{array} package. Letters with Czech diacritics are too high and there would be +almost no +space between the text and the line. The \cmd{extrarowheight} dimension register increases +the size +of the space between the text and the line above it. The parameter in square brackets of +the +\verb;\\; macro just increases the size of the space below the text. + +\section{Figures and Tables as Floating Bodies}\label{plovouci} Figures and tables are +inserted in +the text using the floating environments \xx\texttt{figure} and \xx\texttt{table}, which +among +other things allow such objects to be easily numbered, described, placed and, as the case +may be, +further manipulated. Users should consult the \LaTeX\ system documentation for a +description of +basic manipulation of floating bodies. Here we describe some of the more advanced +techniques, which +will enable you to put floats exactly where you want them, to process documents with a +large number +of figures and charts and to insert rotated wide tables or charts. + +\subsection{Placing Floating Bodies} The optional parameter defining where the float +should be +placed is specified in square brackets. However, \LaTeX\ treats such parameters only as +recommendations. If it is unable to execute them, it will try to place the float on a +separate +page. If even this is impossible, it will place this and all subsequent floats at the end +of the +document or chapter (in the case of a book). You should therefore specify more than one +option so +that \LaTeX\ has a choice. Stating the [h]\index{h@[h]} specifier alone usually results in +the +float being shifted to a separate page or to the end of the document. + +In some cases the float \textbf{has to be} in a specific location. You thus have to tell +\LaTeX\ +that you do not mean the specifier as a recommendation but as a categorical command. The +specifier +[H]\index{H@[H]} is used for this purpose. It was originally implemented in the +\xx\fn{here} +package, but this is no longer in the standard distributions. This specifier is now +implemented in +the \xx\fn{float} package. + +\pozor When [H] is used, the environment ceases to be floating. \LaTeX\ will place it in +the +desired location regardless of whether it fits in the space remaining on the page. You +should +therefore use this specifier only in the final version of the document. + +\pozor This is a good place to explain the difference between the \xx\cmd{newpage} and +\xx\cmd{clearpage} / \xx\cmd{cleardoublepage} macros. The first two instruct \LaTeX\ to +start a new +page. \cmd{cleardoublepage} goes to a right-hand page\footnote{This only applies to +documents in +two-sided printing style which have the \xx\texttt{twoside} parameter specified either +explicitly +or implicitly. The \fn{cnbwp} declares it implicitly.}. In addition, the \cmd{clearpage} +and +\cmd{cleardoublepage} macros will print all the as yet unplaced floats stored in the +buffer. + +\subsection{Documents with a Large Number of Figures and Tables} The floating-body +placement +algorithm is controlled by the values of several registers. The values are chosen for +normal +documents, but they may not be appropriate for technical reports with a large number of +tables and +figures. The \xx\cmd{topfraction} register defines the maximum fraction of the page that +can be +occupied by floats at the top of the page. Analogously, \xx\cmd{bottomfraction} defines +the maximum +fraction of the page for floats placed at the bottom of the page and \xx\cmd{textfraction} +is the +minimum fraction of a page that must be devoted to text. The registers are changed using +the +\xx\cmd{renewcommand} command, as they are macros. In documents with a large number of +floats they +can be set to extreme values by means of: + +\begin{verbatim} +\renewcommand\topfraction{.99} +\renewcommand\bottomfraction{.99} +\renewcommand\textfraction{.01} +\end{verbatim} + +A floating page is only created if the floats occupy at least the fraction defined in the +\xx\cmd{floatpagefraction} register. This value does not usually need changing. + +\LaTeX\ also has counters, which are used to set the highest number of floats allowed. +\xx\texttt{topnumber} and \xx\texttt{bottomnumber} set the maximum number of floats at, +respectively, the top and bottom of a page, while \xx\cmd{totalnumber} limits the total +number of +floats allowed on a page. These do not usually need changing unless the document contains +a large +number of very small floats\footnote{In such case it would be worth considering grouping +them using +the \xx\fn{subfigure} package.}. The values are set using \xx\cmd{setcounter} command, for +example: + +\begin{verbatim} +\setcounter{totalnumber}{17} +\end{verbatim} + +\pozor The current register values can be determined in various ways. Here we will +demonstrate the use of the \TeX{} commands \xx\cmd{show} and \xx\cmd{showthe}. The former +shows the macro definition, so we will use it to determine the value of a +\textit{fraction} type register. A \textit{number} type register must be printed using +\cmd{showthe}. The following two lines will output the current values of the +\cmd{topfraction} and \cmd{topnumber} registers: + +\begin{verbatim} +\show\topfraction +\showthe\value{topnumber} +\end{verbatim} + +\noindent On the terminal and in the log file (we have omitted the blank lines here) we +will then +get an output like this: + +\begin{verbatim} +> \topfraction=\long macro: +->.7. +l.875 \show\topfraction + +> 2. + \c@topnumber +l.876 \showthe\value{topnumber} +\end{verbatim} + +\noindent We have thus determined that \cmd{topfraction} = 0.7 and \texttt{topnumber} = 2. +The full +stops at the end of the definitions are added by the \cmd{show} and \cmd{showthe} +commands. + +\subsection{Wide Tables and Charts}\label{siroke} Some tables can be very wide. One way of +printing +them is to rotate them through $90^{\circ}$. This is done using the \xx\fn{rotating} +package and +the \xx\texttt{sidewaystable} environment. (Figures can be rotated analogously in the +\xx\texttt{sidewaysfigure} environment.) Unfortunately, the \fn{rotating} package rotates +tables +one way on right-hand pages and the other way on left-hand pages, which is inadmissible +from a +typographical perspective. To eliminate this problem, the package must be loaded in the +preamble in +the following way: + +\begin{verbatim} +\usepackage[figuresright]{rotating} +\end{verbatim} + +An example of a wide table, containing an array of random numbers calculated in +\fn{Octave} by the +$5 \times \mbox{randn}(20, 10)$ command, is given in Table~\ref{widetable}. The source +code can be +found in figure~\ref{widetablesrc}. The table will be rotated so that the left-hand margin +is +placed at the bottom margin of the typeset image (i.e. flush with the bottom margin of the +text on +the other pages). This rarely creates an aesthetic effect. A centred table looks better +and can be +obtained using the \xx\cmd{centering} command. The caption also needs to be centred by +explicitly +specifying \xx\cmd{centeredcaption} instead of \xx\cmd{caption}. + +\input{widematrix} + +\begin{sidewaysfigure}[p] +\caption{Source code for table \ref{widetable}}\vb[.5]\label{widetablesrc} +\small +\hrule +\verbatiminput{widematrix} +\end{sidewaysfigure} + +Table centering need not always be desirable. The page setup can be altered by shifting +the table. +Prepare the page without centering the table and print it out or display it in \xgv\ (this +program +allows you to make measurements). Let's assume that you want to shift the table 27\,mm +towards the +top margin of the page. This means that you have to widen the left-hand margin of the +floating +environment by the same amount. This is done by specifying the following at the beginning +of the +environment: + +\begin{verbatim} +\begin{sidewaystable}[p]% beginning of rotated table +\setlength{\leftskip}{27mm} +\end{verbatim} + +\noindent This command will shift the table and the standard caption, although it will not +work +correctly when \xx\cmd{centeredcaption} is used. + +\pozor Note that the \xx\cmd{label} command must be written inside the floating +environment to +which it relates and after the \cmd{caption} macro or the alternative thereto defined in +the +\fn{cnbwp} class. If it is written outside this environment or before the \cmd{caption} +macro, it +will relate to the \cmd{section} or \cmd{subsection} in which it occurs. + +\section{Generating the Final Document in PDF Format}\label{latex2pdf} Czech National Bank +Working +Papers are published in PDF\index{PDF} format. We will therefore focus on the most common +methods +of generating a PDF file from a text written in \LaTeX. + +The first option is to generate the PDF\index{PDF} document directly, using \xpdftex. If +you +cannot, or do not want to, use this, you can convert the DVI output file to \xps\ using +\xx\fn{dvips}. The postscript file can then be converted to PDF using a software package +(commercial and freely distributable products are both available). See also section +\ref{konverzeaeditace}. + +Scientific Word\index{Scientific Word} does not contain \xx\fn{dvips}. The PDF can thus +only be +generated using a virtual printer. Adobe Distiller tends to produce better results than +PDFWriter\index{PDFWriter}, although for short documents the difference is not usually +significant. +As Scientific Word generates a \LaTeX{} file, this file can also be transferred onto a +computer +with the full \TeX{} installation and the PDF can be generated in the usual way using +\xpdftex or +via \xps\ and conversion to PDF. Figures in WMF\index{WMF} format have to be converted to +EPS\index{EPS} using \xx\fn{wmf2eps}, as mentioned in section~\ref{wmf}. + +Another option is to generate the PDF from the DVI using \xx\fn{dvipdfm}, which is part of +the MikTeX distribution, for example. + +To print the document from PDF you may need to adjust the margin settings. The drivers of +some +physical printers ignore the margins set in the file and shift the text on the paper. +Adjusting +margin settings is described in section /ref{preambule}. + +\section{Submitting Your Document for Editing and Publication}\label{publish} When +preparing your +document for submission, you should bear in mind that the editor is not necessarily a +\LaTeX expert +and might not even have any \TeX{} distribution installed. You should therefore submit a +file that +can be printed out using standard, easy-to-install software, hence preferably in PDF +format or, as +a last resort, as a \ps file. + +By agreement with our editor, CNB research publications are currently submitted for +editing in two +formats: PDF and the (\LaTeX) source text saved as an MS Word document. The editor opens +the source +text in MS Word and edits it with Track Changes enabled, using the PDF version for +guidance. + +The CNB editor has been told to emend linguistic phenomena only. He does not alter +formatting +commands that start with a backslash, including their arguments in curly or square +brackets. In +other words, he only corrects the words he sees in the printed version. For example, he +also leaves +apostrophes and hyphens unchanged. However, it is the author's responsibility to further +process +the edited text and either accept or reject each change. We do not recommend accepting all +the +changes in one step. Finally, the edited file is saved as plain text with the extension +\texttt{.tex} and can be processed using the \LaTeX system. + +The main document can load other files using the \cmd{input} or \cmd{include} commands. +The name of +the file to be loaded is written in a parameter of this macro. The \texttt{.tex} extension +need not +be given. However, keep these commands to a minimum when writing documents for CNB WP +purposes. +Excessive use reduces clarity and leads to complications during editing. + +Do not use letters with diacritics. There are too many codings for Czech and Slovak, and +different +\TeX{} distributions treat these codings differently. You should assume that your document +will be +worked on by a somewhat informed layman who may not be able to cope with recoding. So, +always write +diacritics using \TeX sequences. + +All the files needed for typesetting the documents should be in the same directory or (in +exceptional cases) in subdirectories of the directory containing the main document. The +command + +\begin{verbatim} +\includegraphics{d:/projects/figures/image1.eps} +\end{verbatim} + +\noindent + +is bad for three reasons: + +\begin{enumerate} +\item The author of the document might forget that a vital file is in a different +directory and will forget to bundle it. +\item The person processing the document might have different disk partitioning and the +command will return a File Not Found message. +\item For security reasons, some \TeX{} installations do not permit absolute paths or +access to the parent directory. +\end{enumerate} + +Unix users should resist the temptation to use symbolic links in such cases. For one +thing, it can +easily occur that only the symbolic links, and not the files, are bundled with the +document. In +addition, the document has to be processable on a file system which does not support +symbolic +links. If you use subdirectories, enter the names relatively, for example: + +\begin{verbatim} +\includegraphics{figures/image1.eps} +\end{verbatim} + +\noindent Always consider, however, whether it is really necessary to create +subdirectories. For +the uninitiated, it is usually clearer if all related files are saved in the same +directory. + +\pozor Do not use file names that contain spaces and/or diacritics. The \TeX book states +that a +space terminates a file name. Given the popularity of spaces with Microsoft, there are +distributions around which can cope with this. It is, however, a \textbf{very non-standard +distribution} and may not even work on the same operating system with a different \TeX{} +distribution. Directory and file names containing diacritics are an even worse problem. +Whether +they work depends on too many factors -- not only the \TeX{} distribution, but also the +locales +settings in the operating system. Such names should be avoided, as they are highly likely +to cause +problems. + +All the necessary files must be packed into a single archive with a directory structure. +ZIP is the +best format. Add a short explanatory text in a file named \fn{readme.txt}, especially if +the +document comprises multiple files. + +\TeX\ was created at a time when texts were entered into computers on punch cards. +Consequently, it +does not matter how the text is divided into lines and how many spaces there are between +words. The +important thing is to leave a blank line between paragraphs. + +As an interesting alternative a PDF file may directly be used for carrying out the proof. +Commenting must be enabled by full version of Adobe Acrobat\index{Acrobat}\index{Adobe +Acrobat} and the proof can ten be done by Acrobat Reader\index{Acrobat Reader}. + +\section{Sample Files}\label{vzor} This manual includes a number of sample files. The main +document +template is in the file \xx\fn{cnbpaper.tex} and the entire document has been converted +into PDF +format (\xx\fn{cnbpaper.pdf}) using pdf\LaTeX{}. However, the file can also be processed +using the +standard \LaTeX and the \fn{dvips} program. + +Some examples are saved in separate files, partly to ensure that they are consistent with +this +manual, and partly so that users do not have to work with a lengthy sample document when +writing +their texts. + +Table~\ref{numtable}, demonstrating decimal point alignment, is located in +\xx\fn{numtable.tex}. +Neither the \cmd{caption} command nor a floating environment is specified in this file. +These +commands can be found in the main document template. + +The wide table~\ref{widetable} can be found in \xx\fn{widematrix.tex}. In this case the +file also contains environment definition commands. + +The files \xx\fn{graf18.eps} and \xx\fn{graf18.pdf} are the vector charts from +figure~\ref{vectbitfig}. The template uses the \xx\fn{ifpdf} package to determine whether +pdf\LaTeX +is being used, and the file will accordingly be loaded in the correct format. If +\fn{ifpdf} is not +contained in the distribution, it will be assumed that pdf\LaTeX\ is unavailable. + +The file \xx\fn{biblio.tex} contains a list of references written using the macros from +section~\ref{makra}. The full list is given in the \hyperref[priloha]{Appendix}. + +The file \xx\fn{cnbsample.bib} contains the list of references for use with \BibTeX. It +was also used to generate the above mentioned file \fn{biblio.tex}. + +If you intend to use \fn{cnbpaper.tex} as the template for your document, think about +which +packages you really need. Delete any unnecessary \cmd{usepackage} commands. You may need +some +additional packages, such as \xx\fn{amsmath}. + +\section{Changes, Version 2013.12} +The following changes were made in December, 2013: +\begin{enumerate} +\item Switches 11pt and 12pt for changing the font size were removed. +\item The syntax of the \cmd{author} macro was changed. +\item Macros \xx\cmd{shortauthor} and \xx\cmd{shorttitle} were removed. +\item Usage of the \cmd{acknowledge} macro was changed. +\item The \texttt{abstrakt} environment for entering the Czech abstract was added. +\item The \fn{babel} package is loaded in order to activat the Czech hyphenation rules in +the \fn{abstrakt} environment. +\item Captions formatting modified to comply with the new requirements. +\item New macros \cmd{Note} and \cmd{Source} were implemented. +\item Formatting of the author names in the \fn{abbrvcnb} style was modified. +\item The \fn{times} package replaced with the \fn{mathptmx}. +\item The manual was updated. +\end{enumerate} + +\appendix +\section{Appendix}\label{priloha} +The annex gives examples of all types of works written using the macros from +section~\ref{makra} and the subsections thereof. You will not normally use the \;note\ +field. + +The entire set of examples is also available in \xx\fn{biblio.tex}. + +{\small +\verbatiminput{biblio}} + +\printindex +\end{document} diff --git a/Master/texmf-dist/doc/latex/cnbwp/graph18.eps b/Master/texmf-dist/doc/latex/cnbwp/graph18.eps new file mode 100644 index 00000000000..d08dc174b19 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/graph18.eps @@ -0,0 +1,1410 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: graph18.eps +%%Creator: gnuplot 3.8c patchlevel pm3d 7 +%%CreationDate: Wed Dec 21 00:22:25 2005 +%%DocumentFonts: (atend) +%%BoundingBox: 50 50 410 302 +%%Orientation: Portrait +%%EndComments +/gnudict 256 dict def +gnudict begin +/Color true def +/Solid true def +/gnulinewidth 10.000 def +/userlinewidth gnulinewidth def +/vshift -60 def +/dl {10.0 mul} def +/hpt_ 31.5 def +/vpt_ 31.5 def +/hpt hpt_ def +/vpt vpt_ def +/M {moveto} bind def +/L {lineto} bind def +/R {rmoveto} bind def +/V {rlineto} bind def +/vpt2 vpt 2 mul def +/hpt2 hpt 2 mul def +/Lshow { currentpoint stroke M + 0 vshift R show } def +/Rshow { currentpoint stroke M + dup stringwidth pop neg vshift R show } def +/Cshow { currentpoint stroke M + dup stringwidth pop -2 div vshift R show } def +/UP { dup vpt_ mul /vpt exch def hpt_ mul /hpt exch def + /hpt2 hpt 2 mul def /vpt2 vpt 2 mul def } def +/DL { Color {setrgbcolor Solid {pop []} if 0 setdash } + {pop pop pop Solid {pop []} if 0 setdash} ifelse } def +/BL { stroke gnulinewidth 2 mul setlinewidth } def +/AL { stroke gnulinewidth 2 div setlinewidth } def +/UL { gnulinewidth mul /userlinewidth exch def } def +/PL { stroke userlinewidth setlinewidth } def +/LTb { BL [] 0 0 0 DL } def +/LTa { AL [1 dl 2 dl] 0 setdash 0 0 0 setrgbcolor } def +/LT0 { PL [] 1 0 0 DL } def +/LT1 { PL [4 dl 2 dl] 0 1 0 DL } def +/LT2 { PL [2 dl 3 dl] 0 0 1 DL } def +/LT3 { PL [1 dl 1.5 dl] 1 0 1 DL } def +/LT4 { PL [5 dl 2 dl 1 dl 2 dl] 0 1 1 DL } def +/LT5 { PL [4 dl 3 dl 1 dl 3 dl] 1 1 0 DL } def +/LT6 { PL [2 dl 2 dl 2 dl 4 dl] 0 0 0 DL } def +/LT7 { PL [2 dl 2 dl 2 dl 2 dl 2 dl 4 dl] 1 0.3 0 DL } def +/LT8 { PL [2 dl 2 dl 2 dl 2 dl 2 dl 2 dl 2 dl 4 dl] 0.5 0.5 0.5 DL } def +/Pnt { stroke [] 0 setdash + gsave 1 setlinecap M 0 0 V stroke grestore } def +/Dia { stroke [] 0 setdash 2 copy vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V closepath stroke + Pnt } def +/Pls { stroke [] 0 setdash vpt sub M 0 vpt2 V + currentpoint stroke M + hpt neg vpt neg R hpt2 0 V stroke + } def +/Box { stroke [] 0 setdash 2 copy exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V closepath stroke + Pnt } def +/Crs { stroke [] 0 setdash exch hpt sub exch vpt add M + hpt2 vpt2 neg V currentpoint stroke M + hpt2 neg 0 R hpt2 vpt2 V stroke } def +/TriU { stroke [] 0 setdash 2 copy vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V closepath stroke + Pnt } def +/Star { 2 copy Pls Crs } def +/BoxF { stroke [] 0 setdash exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V closepath fill } def +/TriUF { stroke [] 0 setdash vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V closepath fill } def +/TriD { stroke [] 0 setdash 2 copy vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V closepath stroke + Pnt } def +/TriDF { stroke [] 0 setdash vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V closepath fill} def +/DiaF { stroke [] 0 setdash vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V closepath fill } def +/Pent { stroke [] 0 setdash 2 copy gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + closepath stroke grestore Pnt } def +/PentF { stroke [] 0 setdash gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + closepath fill grestore } def +/Circle { stroke [] 0 setdash 2 copy + hpt 0 360 arc stroke Pnt } def +/CircleF { stroke [] 0 setdash hpt 0 360 arc fill } def +/C0 { BL [] 0 setdash 2 copy moveto vpt 90 450 arc } bind def +/C1 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 90 arc closepath fill + vpt 0 360 arc closepath } bind def +/C2 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 90 180 arc closepath fill + vpt 0 360 arc closepath } bind def +/C3 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 180 arc closepath fill + vpt 0 360 arc closepath } bind def +/C4 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 180 270 arc closepath fill + vpt 0 360 arc closepath } bind def +/C5 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 90 arc + 2 copy moveto + 2 copy vpt 180 270 arc closepath fill + vpt 0 360 arc } bind def +/C6 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 90 270 arc closepath fill + vpt 0 360 arc closepath } bind def +/C7 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 270 arc closepath fill + vpt 0 360 arc closepath } bind def +/C8 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 270 360 arc closepath fill + vpt 0 360 arc closepath } bind def +/C9 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 270 450 arc closepath fill + vpt 0 360 arc closepath } bind def +/C10 { BL [] 0 setdash 2 copy 2 copy moveto vpt 270 360 arc closepath fill + 2 copy moveto + 2 copy vpt 90 180 arc closepath fill + vpt 0 360 arc closepath } bind def +/C11 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 180 arc closepath fill + 2 copy moveto + 2 copy vpt 270 360 arc closepath fill + vpt 0 360 arc closepath } bind def +/C12 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 180 360 arc closepath fill + vpt 0 360 arc closepath } bind def +/C13 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 0 90 arc closepath fill + 2 copy moveto + 2 copy vpt 180 360 arc closepath fill + vpt 0 360 arc closepath } bind def +/C14 { BL [] 0 setdash 2 copy moveto + 2 copy vpt 90 360 arc closepath fill + vpt 0 360 arc } bind def +/C15 { BL [] 0 setdash 2 copy vpt 0 360 arc closepath fill + vpt 0 360 arc closepath } bind def +/Rec { newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto + neg 0 rlineto closepath } bind def +/Square { dup Rec } bind def +/Bsquare { vpt sub exch vpt sub exch vpt2 Square } bind def +/S0 { BL [] 0 setdash 2 copy moveto 0 vpt rlineto BL Bsquare } bind def +/S1 { BL [] 0 setdash 2 copy vpt Square fill Bsquare } bind def +/S2 { BL [] 0 setdash 2 copy exch vpt sub exch vpt Square fill Bsquare } bind def +/S3 { BL [] 0 setdash 2 copy exch vpt sub exch vpt2 vpt Rec fill Bsquare } bind def +/S4 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt Square fill Bsquare } bind def +/S5 { BL [] 0 setdash 2 copy 2 copy vpt Square fill + exch vpt sub exch vpt sub vpt Square fill Bsquare } bind def +/S6 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill Bsquare } bind def +/S7 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill + 2 copy vpt Square fill + Bsquare } bind def +/S8 { BL [] 0 setdash 2 copy vpt sub vpt Square fill Bsquare } bind def +/S9 { BL [] 0 setdash 2 copy vpt sub vpt vpt2 Rec fill Bsquare } bind def +/S10 { BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt Square fill + Bsquare } bind def +/S11 { BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt2 vpt Rec fill + Bsquare } bind def +/S12 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill Bsquare } bind def +/S13 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill + 2 copy vpt Square fill Bsquare } bind def +/S14 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill + 2 copy exch vpt sub exch vpt Square fill Bsquare } bind def +/S15 { BL [] 0 setdash 2 copy Bsquare fill Bsquare } bind def +/D0 { gsave translate 45 rotate 0 0 S0 stroke grestore } bind def +/D1 { gsave translate 45 rotate 0 0 S1 stroke grestore } bind def +/D2 { gsave translate 45 rotate 0 0 S2 stroke grestore } bind def +/D3 { gsave translate 45 rotate 0 0 S3 stroke grestore } bind def +/D4 { gsave translate 45 rotate 0 0 S4 stroke grestore } bind def +/D5 { gsave translate 45 rotate 0 0 S5 stroke grestore } bind def +/D6 { gsave translate 45 rotate 0 0 S6 stroke grestore } bind def +/D7 { gsave translate 45 rotate 0 0 S7 stroke grestore } bind def +/D8 { gsave translate 45 rotate 0 0 S8 stroke grestore } bind def +/D9 { gsave translate 45 rotate 0 0 S9 stroke grestore } bind def +/D10 { gsave translate 45 rotate 0 0 S10 stroke grestore } bind def +/D11 { gsave translate 45 rotate 0 0 S11 stroke grestore } bind def +/D12 { gsave translate 45 rotate 0 0 S12 stroke grestore } bind def +/D13 { gsave translate 45 rotate 0 0 S13 stroke grestore } bind def +/D14 { gsave translate 45 rotate 0 0 S14 stroke grestore } bind def +/D15 { gsave translate 45 rotate 0 0 S15 stroke grestore } bind def +/DiaE { stroke [] 0 setdash vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V closepath stroke } def +/BoxE { stroke [] 0 setdash exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V closepath stroke } def +/TriUE { stroke [] 0 setdash vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V closepath stroke } def +/TriDE { stroke [] 0 setdash vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V closepath stroke } def +/PentE { stroke [] 0 setdash gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + closepath stroke grestore } def +/CircE { stroke [] 0 setdash + hpt 0 360 arc stroke } def +/Opaque { gsave closepath 1 setgray fill grestore 0 setgray closepath } def +/DiaW { stroke [] 0 setdash vpt add M + hpt neg vpt neg V hpt vpt neg V + hpt vpt V hpt neg vpt V Opaque stroke } def +/BoxW { stroke [] 0 setdash exch hpt sub exch vpt add M + 0 vpt2 neg V hpt2 0 V 0 vpt2 V + hpt2 neg 0 V Opaque stroke } def +/TriUW { stroke [] 0 setdash vpt 1.12 mul add M + hpt neg vpt -1.62 mul V + hpt 2 mul 0 V + hpt neg vpt 1.62 mul V Opaque stroke } def +/TriDW { stroke [] 0 setdash vpt 1.12 mul sub M + hpt neg vpt 1.62 mul V + hpt 2 mul 0 V + hpt neg vpt -1.62 mul V Opaque stroke } def +/PentW { stroke [] 0 setdash gsave + translate 0 hpt M 4 {72 rotate 0 hpt L} repeat + Opaque stroke grestore } def +/CircW { stroke [] 0 setdash + hpt 0 360 arc Opaque stroke } def +/BoxFill { gsave Rec 1 setgray fill grestore } def +/Symbol-Oblique /Symbol findfont [1 0 .167 1 0 0] makefont +dup length dict begin {1 index /FID eq {pop pop} {def} ifelse} forall +currentdict end definefont +end +%%EndProlog +gnudict begin +gsave +50 50 translate +0.050 0.050 scale +0 setgray +newpath +(Helvetica) findfont 180 scalefont setfont +1.000 UL +LTb +gsave % colour palette begin +/cF7 {sqrt} bind def % sqrt(x) +/cF5 {dup dup mul mul} bind def % x^3 +/cF15 {360 mul sin} bind def % sin(360x) +Color true and { % COLOUR vs. GRAY map + /g {dup cF7 exch dup cF5 exch cF15 setrgbcolor} bind def + /h {rlineto rlineto rlineto fill} bind def + /G {currentrgbcolor 3 index stroke g} bind def + /H {h setrgbcolor pop} bind def + /F {rlineto fill setrgbcolor pop} bind def +}{ + /g {currentgray exch stroke setgray} bind def + /h {rlineto rlineto rlineto fill setgray} bind def + /G {currentgray exch stroke g} bind def + /H {h setgray} bind def + /F {rlineto fill setgray} bind def +} ifelse +/N {newpath moveto} def +/f {rlineto fill} bind def +%pm3d_map_begin +.1216 G 4865 2229 N 474 50 -46 140 -504 43 H +.1216 G 4789 2462 N 129 107 -519 87 -474 -50 H +.1216 G 3925 2606 N -300 92 -650 -25 -129 -107 H +.1216 G 2846 2566 N -532 13 -349 -119 300 -92 H +.1216 G 2265 2368 N -412 -77 182 -135 532 -13 H +.1216 G 2567 2143 N -19 -118 592 -61 412 77 H +.1316 G 4361 2272 N 271 5 -28 87 -289 48 H +.1316 G 4315 2412 N 75 38 -323 54 -271 -5 H +.1316 G 3796 2499 N -172 28 -403 -15 -75 -38 H +.1316 G 3146 2474 N -304 -17 -217 -74 172 -28 H +.1316 G 2797 2355 N -235 -68 113 -84 304 17 H +.1316 G 2979 2220 N -11 -91 368 -38 235 68 H +.1609 G 4072 2320 N 155 -44 -18 57 -165 74 H +.1609 G 4044 2407 N 42 -25 -210 35 -155 44 H +.1609 G 3721 2461 N -98 -30 -263 -10 -42 25 H +.1609 G 3318 2446 N -174 -56 -141 -48 98 30 H +.1609 G 3101 2372 N -135 -85 74 -55 174 56 H +.1609 G 3214 2288 N -6 -98 239 -25 135 85 H +.2118 G 3907 2394 N 83 -80 -13 40 -88 97 H +.2118 G 3889 2451 N 23 -70 -150 25 -83 80 H +.2118 G 3679 2486 N -53 -73 -187 -7 -23 70 H +.2118 G 3416 2476 N -93 -87 -101 -34 53 73 H +.2118 G 3275 2428 N -71 -103 52 -39 93 87 H +.2118 G 3349 2373 N -3 -110 171 -18 71 103 H +.2768 G 3819 2491 N 30 -100 -11 35 -32 105 H +.2768 G 3806 2531 N 8 -96 -128 21 -30 100 H +.2768 G 3656 2556 N -19 -97 -160 -6 -8 96 H +.2768 G 3469 2549 N -34 -102 -86 -29 19 97 H +.2768 G 3368 2515 N -27 -107 45 -34 34 102 H +.2768 G 3420 2476 N -2 -110 146 -15 27 107 H +.345 G 3787 2596 N -17 -101 -12 38 18 98 H +.345 G 3776 2631 N -5 -103 -140 23 17 101 H +.345 G 3648 2652 N 11 -102 -176 -7 5 103 H +.345 G 3488 2646 N 19 -99 -94 -32 -11 102 H +.345 G 3402 2617 N 15 -97 49 -36 -19 99 H +.345 G 3447 2583 N 1 -95 160 -17 -15 97 H +.4072 G 3805 2694 N -68 -92 -17 51 73 79 H +.4072 G 3793 2732 N -18 -101 -190 32 68 92 H +.4072 G 3653 2755 N 43 -99 -237 -9 18 101 H +.4072 G 3477 2748 N 77 -88 -128 -43 -43 99 H +.4072 G 3383 2716 N 60 -74 66 -50 -77 88 H +.4072 G 3432 2680 N 3 -69 217 -22 -60 74 H +.4592 G 3878 2773 N -126 -84 -25 76 134 59 H +.4592 G 3861 2824 N -35 -99 -281 47 126 84 H +.4592 G 3671 2856 N 80 -94 -352 -14 35 99 H +.4592 G 3434 2847 N 141 -73 -189 -64 -80 94 H +.4592 G 3306 2804 N 109 -50 98 -73 -141 73 H +.4592 G 3372 2754 N 5 -39 321 -33 -109 50 H +.5024 G 4012 2832 N -185 -80 -37 113 197 43 H +.5024 G 3987 2908 N -50 -102 -416 69 185 80 H +.5024 G 3706 2955 N 117 -96 -519 -20 50 102 H +.5024 G 3354 2941 N 207 -65 -279 -95 -117 96 H +.5024 G 3165 2877 N 160 -30 145 -108 -207 65 H +.5024 G 3263 2804 N 7 -14 474 -49 -160 30 H +.5422 G 4209 2875 N -232 -85 -52 158 247 40 H +.5422 G 4172 2988 N -64 -113 -584 97 232 85 H +.5422 G 3756 3057 N 147 -106 -730 -27 64 113 H +.5422 G 3237 3037 N 261 -67 -393 -134 -147 106 H +.5422 G 2958 2942 N 202 -23 204 -152 -261 67 H +.5422 G 3103 2834 N 9 -3 667 -69 -202 23 H +.5868 G 4456 2915 N -251 -101 -68 206 267 53 H +.5868 G 4404 3073 N -69 -132 -766 128 251 101 H +.5868 G 3820 3170 N 159 -123 -958 -36 69 132 H +.5868 G 3090 3143 N 281 -81 -515 -176 -159 123 H +.5868 G 2697 3009 N 217 -34 268 -199 -281 81 H +.5868 G 2901 2857 N 10 -12 874 -91 -217 34 H +.6453 G 4723 2968 N -221 -126 -82 250 235 82 H +.6453 G 4655 3174 N -60 -152 -927 154 221 126 H +.6453 G 3889 3302 N 140 -144 -1158 -44 60 152 H +.6453 G 2931 3266 N 248 -108 -623 -212 -140 144 H +.6453 G 2416 3090 N 192 -66 324 -241 -248 108 H +.6453 G 2684 2891 N 9 -47 1057 -110 -192 66 H +.7245 G 4958 3050 N -137 -150 -91 277 146 123 H +.7245 G 4876 3300 N -38 -167 -1026 171 137 150 H +.7245 G 3949 3454 N 87 -162 -1283 -49 38 167 H +.7245 G 2791 3410 N 154 -139 -690 -235 -87 162 H +.7245 G 2168 3198 N 119 -113 359 -267 -154 139 H +.7245 G 2492 2957 N 5 -101 1171 -122 -119 113 H +.8226 G 5104 3173 N -14 -157 -92 279 15 155 H +.8226 G 5013 3450 N -4 -159 -1036 173 14 157 H +.8226 G 3987 3621 N 9 -159 -1296 -49 4 159 H +.8226 G 2704 3572 N 16 -156 -697 -238 -9 159 H +.8226 G 2014 3337 N 12 -154 363 -269 -16 156 H +.8226 G 2373 3070 N 1 -153 1182 -123 -12 154 H +.917 G 5119 3328 N 117 -111 -85 257 -124 133 H +.917 G 5027 3607 N 32 -96 -951 158 -117 111 H +.917 G 3991 3780 N -74 -100 -1190 -45 -32 96 H +.917 G 2695 3731 N -131 -120 -640 -218 74 100 H +.917 G 1998 3493 N -101 -142 333 -247 131 120 H +.917 G 2361 3224 N -5 -152 1086 -113 101 142 H +%pm3d_map_end +stroke gsave /imax 1024 def % draw gray scale smooth box +6210 2155 translate 535 1662 scale 0 setlinewidth +/ystep 1 imax div def /y0 0 def /ii 0 def +{ y0 g 0 y0 N 1 0 V 0 ystep V -1 0 f +/y0 y0 ystep add def /ii ii 1 add def +ii imax gt {exit} if } loop +grestore 0 setgray +1.000 UL +LTb +6210 2155 M +535 0 V +0 1662 V +-535 0 V +0 -1662 V +1.000 UL +LTb +6210 2020 M +(-1.2) Lshow +6210 3952 M +(1.2) Lshow +grestore % colour palette end +3600 4697 M +(splot with "set pm3d" \(implemented with some terminals\)) Cshow +1.000 UP +1.000 UL +LT0 +LT1 +4789 2463 M +-864 143 V +1.000 UL +LT0 +LT1 +3819 2519 M +106 87 V +1.000 UL +LT0 +LT1 +2847 2566 M +546 20 V +1.000 UL +LT0 +LT1 +3788 2601 M +137 5 V +1.000 UL +LT0 +LT1 +3147 2475 M +-300 91 V +1.000 UL +LT0 +LT1 +2266 2369 M +581 197 V +1.000 UL +LT0 +LT0 +2705 3572 M +1282 49 V +1.000 UL +LT0 +LT0 +3949 3454 M +38 167 V +1.000 UL +LT0 +LT0 +5004 3451 M +3987 3621 L +1.000 UL +LT0 +LT0 +3991 3780 M +-4 -159 V +1.000 UL +LT0 +LT0 +2792 3410 M +1157 44 V +1.000 UL +LT0 +LT0 +4876 3300 M +-927 154 V +1.000 UL +LT0 +LT0 +3889 3302 M +60 152 V +1.000 UL +LT0 +LT0 +3959 3876 M +32 -96 V +1.000 UL +LT0 +LT0 +4942 3621 M +-951 159 V +1.000 UL +LT0 +LT0 +2696 3731 M +1295 49 V +1.000 UL +LT0 +LT1 +3147 2475 M +186 7 V +1.000 UL +LT0 +LT1 +4315 2413 M +-467 78 V +1.000 UL +LT0 +LT0 +2349 3451 M +356 121 V +1.000 UL +LT0 +LT0 +2696 3731 M +9 -159 V +1.000 UL +LT0 +LT0 +2792 3410 M +-87 162 V +1.000 UL +LT0 +LT0 +4655 3174 M +-766 128 V +1.000 UL +LT0 +LT0 +3820 3170 M +69 132 V +1.000 UL +LT0 +LT0 +3293 3280 M +596 22 V +1.000 UL +LT0 +LT0 +2615 3350 M +177 60 V +1.000 UL +LT0 +LT0 +2877 3323 M +-85 87 V +1.000 UL +LT0 +LT1 +2798 2356 M +349 119 V +1.000 UL +LT0 +LT1 +3299 2450 M +-152 25 V +1.000 UL +LT0 +LT0 +2770 3831 M +1189 45 V +1.000 UL +LT0 +LT0 +4910 3718 M +-951 158 V +1.000 UL +LT0 +LT0 +2770 3831 M +-74 -100 V +1.000 UL +LT0 +LT0 +2199 3562 M +497 169 V +1.000 UL +LT0 +LT1 +4315 2413 M +474 50 V +1.000 UL +LT0 +LT1 +4865 2230 M +-76 233 V +1.000 UL +LT0 +LT0 +4404 3073 M +-584 97 V +1.000 UL +LT0 +LT0 +3756 3057 M +64 113 V +1.000 UL +LT0 +LT0 +3546 3160 M +274 10 V +1.000 UL +LT0 +LT0 +3869 2438 M +-148 24 V +1.000 UL +LT0 +LT0 +3679 2487 M +42 -25 V +1.000 UL +LT0 +LT0 +3592 2457 M +129 5 V +1.000 UL +LT0 +LT0 +2130 3613 M +640 218 V +1.000 UL +LT0 +LT1 +3102 2373 M +180 61 V +1.000 UL +LT0 +LT1 +4361 2273 M +-46 140 V +1.000 UL +LT0 +LT1 +4044 2408 M +271 5 V +1.000 UL +LT0 +LT0 +3656 2556 M +23 -69 V +1.000 UL +LT0 +LT0 +3593 2483 M +86 4 V +1.000 UL +LT0 +LT0 +3850 2458 M +-171 29 V +1.000 UL +LT0 +LT0 +3544 3049 M +212 8 V +1.000 UL +LT0 +LT0 +4172 2988 M +-416 69 V +1.000 UL +LT0 +LT0 +3706 2955 M +50 102 V +1.000 UL +LT0 +LT1 +3889 2452 M +155 -44 V +1.000 UL +LT0 +LT1 +4072 2321 M +-28 87 V +1.000 UL +LT0 +LT0 +3419 2479 M +-2 -2 V +1.000 UL +LT0 +LT1 +2798 2356 M +-532 13 V +1.000 UL +LT0 +LT1 +2568 2144 M +-302 225 V +1.000 UL +LT0 +LT0 +4958 3050 M +-82 250 V +1.000 UL +LT0 +LT0 +5009 3445 M +4876 3300 L +1.000 UL +LT0 +LT0 +4655 3174 M +221 126 V +1.000 UL +LT0 +LT0 +5104 3173 M +-86 263 V +1.000 UL +LT0 +LT0 +3648 2652 M +8 -96 V +1.000 UL +LT0 +LT0 +3806 2531 M +-150 25 V +1.000 UL +LT0 +LT0 +3593 2554 M +63 2 V +1.000 UL +LT0 +LT1 +2980 2221 M +-182 135 V +1.000 UL +LT0 +LT1 +3102 2373 M +-304 -17 V +1.000 UL +LT0 +LT0 +4723 2968 M +-68 206 V +1.000 UL +LT0 +LT0 +4404 3073 M +251 101 V +1.000 UL +LT0 +LT1 +3907 2395 M +-18 57 V +1.000 UL +LT0 +LT1 +3807 2530 M +82 -78 V +1.000 UL +LT0 +LT0 +3987 2908 M +-281 47 V +1.000 UL +LT0 +LT0 +3671 2856 M +35 99 V +1.000 UL +LT0 +LT0 +3544 2949 M +162 6 V +1.000 UL +LT0 +LT1 +5119 3328 M +-92 279 V +1.000 UL +LT0 +LT1 +4910 3718 M +117 -111 V +1.000 UL +LT0 +LT1 +3276 2429 M +-174 -56 V +1.000 UL +LT0 +LT1 +3215 2289 M +-113 84 V +1.000 UL +LT0 +LT0 +4172 2988 M +232 85 V +1.000 UL +LT0 +LT0 +4456 2915 M +-52 158 V +1.000 UL +LT0 +LT0 +3776 2631 M +-128 21 V +1.000 UL +LT0 +LT0 +3653 2755 M +-5 -103 V +1.000 UL +LT0 +LT0 +3593 2650 M +55 2 V +1.000 UL +LT0 +LT0 +3776 2631 M +30 -100 V +1.000 UL +LT0 +LT0 +3819 2492 M +-13 39 V +1.000 UL +LT0 +LT0 +3653 2755 M +18 101 V +1.000 UL +LT0 +LT0 +3861 2824 M +-190 32 V +1.000 UL +LT0 +LT0 +3550 2851 M +121 5 V +1.000 UL +LT0 +LT1 +3369 2516 M +-93 -87 V +1.000 UL +LT0 +LT1 +3350 2374 M +-74 55 V +1.000 UL +LT0 +LT0 +3793 2732 M +-140 23 V +1.000 UL +LT0 +LT0 +3587 2753 M +66 2 V +1.000 UL +LT0 +LT0 +4209 2875 M +-37 113 V +1.000 UL +LT0 +LT0 +3987 2908 M +185 80 V +1.000 UL +LT0 +LT1 +4995 3461 M +-85 257 V +1.000 UL +LT0 +LT1 +3403 2617 M +-34 -101 V +1.000 UL +LT0 +LT1 +3421 2477 M +-52 39 V +1.000 UL +LT0 +LT0 +3787 2596 M +-11 35 V +1.000 UL +LT0 +LT0 +3793 2732 M +-17 -101 V +1.000 UL +LT0 +LT0 +3861 2824 M +126 84 V +1.000 UL +LT0 +LT0 +4012 2832 M +-25 76 V +1.000 UL +LT0 +LT0 +3805 2694 M +-12 38 V +1.000 UL +LT0 +LT0 +3861 2824 M +-68 -92 V +1.000 UL +LT0 +LT1 +3448 2583 M +-45 34 V +1.000 UL +LT0 +LT1 +3384 2716 M +19 -99 V +1.000 UL +LT0 +LT0 +3878 2773 M +-17 51 V +1.000 UL +LT0 +LT1 +3819 2492 M +88 -97 V +1.000 UL +LT0 +LT1 +4072 2321 M +-165 74 V +1.000 UL +LT0 +LT1 +4361 2273 M +-289 48 V +1.000 UL +LT0 +LT0 +3787 2596 M +32 -104 V +1.000 UL +LT0 +LT1 +3335 2772 M +49 -56 V +1.000 UL +LT0 +LT1 +3433 2680 M +-49 36 V +1.000 UL +LT0 +LT0 +3805 2694 M +-18 -98 V +1.000 UL +LT0 +LT1 +3448 2583 M +-27 -106 V +1.000 UL +LT0 +LT1 +3592 2459 M +-171 18 V +1.000 UL +LT0 +LT1 +3350 2374 M +71 103 V +1.000 UL +LT0 +LT1 +3215 2289 M +135 85 V +1.000 UL +LT0 +LT1 +3589 2349 M +-239 25 V +1.000 UL +LT0 +LT1 +4865 2230 M +-504 43 V +1.000 UL +LT0 +LT1 +3433 2680 M +15 -97 V +1.000 UL +LT0 +LT1 +3594 2568 M +-146 15 V +1.000 UL +LT0 +LT0 +3878 2773 M +-73 -79 V +1.000 UL +LT0 +LT1 +2493 2957 M +-324 241 V +1.000 UL +LT0 +LT1 +2015 3337 M +154 -139 V +1.000 UL +LT0 +LT1 +2980 2221 M +235 68 V +1.000 UL +LT0 +LT1 +3583 2251 M +-368 38 V +1.000 UL +LT0 +LT1 +3589 2349 M +3 110 V +1.000 UL +LT0 +LT1 +3594 2568 M +-2 -109 V +1.000 UL +LT0 +LT1 +1999 3493 M +16 -156 V +1.000 UL +LT0 +LT1 +2374 3070 M +-359 267 V +1.000 UL +LT0 +LT1 +3593 2663 M +1 -95 V +1.000 UL +LT0 +LT1 +3593 2663 M +-160 17 V +1.000 UL +LT0 +LT1 +3373 2754 M +60 -74 V +1.000 UL +LT0 +LT1 +3583 2251 M +6 98 V +1.000 UL +LT0 +LT0 +4012 2832 M +-134 -59 V +1.000 UL +LT0 +LT1 +3590 2732 M +3 -69 V +1.000 UL +LT0 +LT1 +2362 3224 M +-363 269 V +1.000 UL +LT0 +LT1 +2130 3613 M +1999 3493 L +1.000 UL +LT0 +LT1 +3264 2804 M +109 -50 V +1.000 UL +LT0 +LT1 +3590 2732 M +-217 22 V +1.000 UL +LT0 +LT0 +4209 2875 M +-197 -43 V +1.000 UL +LT0 +LT1 +3572 2160 M +11 91 V +1.000 UL +LT0 +LT1 +2568 2144 M +412 77 V +1.000 UL +LT0 +LT1 +3572 2160 M +-592 61 V +1.000 UL +LT0 +LT1 +2463 3366 M +-333 247 V +1.000 UL +LT0 +LT1 +3585 2771 M +5 -39 V +1.000 UL +LT0 +LT0 +4456 2915 M +-247 -40 V +1.000 UL +LT0 +LT1 +3104 2834 M +160 -30 V +1.000 UL +LT0 +LT1 +3585 2771 M +-321 33 V +1.000 UL +LT0 +LT0 +4723 2968 M +-267 -53 V +1.000 UL +LT0 +LT1 +3578 2785 M +7 -14 V +1.000 UL +LT0 +LT1 +3578 2785 M +-474 49 V +1.000 UL +LT0 +LT1 +2902 2857 M +202 -23 V +1.000 UL +LT0 +LT1 +3553 2042 M +19 118 V +1.000 UL +LT0 +LT0 +4958 3050 M +-235 -82 V +1.000 UL +LT0 +LT1 +3553 2042 M +-985 102 V +1.000 UL +LT0 +LT1 +3569 2788 M +-667 69 V +1.000 UL +LT0 +LT1 +2685 2891 M +217 -34 V +1.000 UL +LT0 +LT0 +5104 3173 M +4958 3050 L +1.000 UL +LT0 +LT1 +3569 2788 M +9 -3 V +1.000 UL +LT0 +LT0 +5119 3328 M +-15 -155 V +1.000 UL +LT0 +LT1 +3559 2800 M +-874 91 V +1.000 UL +LT0 +LT1 +2493 2957 M +192 -66 V +1.000 UL +LT0 +LT1 +4995 3461 M +124 -133 V +1.000 UL +LT0 +LT1 +3559 2800 M +10 -12 V +1.000 UL +LT0 +LT1 +2374 3070 M +119 -113 V +1.000 UL +LT0 +LT1 +3550 2847 M +2493 2957 L +1.000 UL +LT0 +LT1 +2362 3224 M +12 -154 V +1.000 UL +LT0 +LT1 +3545 2948 M +2374 3070 L +1.000 UL +LT0 +LT1 +3550 2847 M +9 -47 V +1.000 UL +LT0 +LT1 +3549 3253 M +2463 3366 L +1.000 UL +LT0 +LT1 +2362 3224 M +101 142 V +1.000 UL +LT0 +LT1 +3544 3101 M +2362 3224 L +1.000 UL +LT0 +LT1 +3545 2948 M +5 -101 V +1.000 UL +LT0 +LT1 +3544 3101 M +1 -153 V +1.000 UL +LT0 +LT1 +3544 3101 M +5 152 V +1.000 UL +LT0 +6210 4256 M +('glass.dat' every 2::0::12) Rshow +6318 4256 M +495 0 V +1.000 UL +LTb +6032 1650 M +4734 891 L +1167 1167 M +4734 891 L +1167 1167 M +1298 760 V +6032 1650 M +2465 1927 L +1167 1167 M +0 2222 V +0 -2222 R +54 31 V +1073 1075 M +(-0.8) Cshow +2465 1927 M +-55 -32 V +1613 1133 M +54 31 V +1519 1041 M +(-0.6) Cshow +2911 1892 M +-55 -32 V +2059 1098 M +54 31 V +1965 1006 M +(-0.4) Cshow +3357 1858 M +-55 -32 V +2505 1063 M +54 31 V +2411 971 M +(-0.2) Cshow +3803 1823 M +-55 -32 V +2951 1029 M +54 31 V +2857 937 M +(0) Cshow +4248 1789 M +-55 -32 V +3396 994 M +54 31 V +3302 902 M +(0.2) Cshow +4694 1754 M +-55 -32 V +3842 960 M +54 31 V +3748 868 M +(0.4) Cshow +5140 1720 M +-55 -32 V +4288 925 M +54 31 V +4194 833 M +(0.6) Cshow +5586 1685 M +-55 -32 V +4734 891 M +54 31 V +4640 799 M +(0.8) Cshow +6032 1650 M +-55 -32 V +2302 479 M +(X axis) Cshow +4734 891 M +-63 4 V +170 -18 R +(-0.8) Lshow +1167 1167 M +62 -5 V +4896 986 M +-63 4 V +170 -18 R +(-0.6) Lshow +1330 1262 M +62 -5 V +5058 1081 M +-63 4 V +170 -18 R +(-0.4) Lshow +1492 1357 M +62 -5 V +5220 1176 M +-63 4 V +170 -18 R +(-0.2) Lshow +1654 1452 M +62 -5 V +5383 1271 M +-63 4 V +170 -18 R +(0) Lshow +1816 1547 M +62 -5 V +5545 1365 M +-63 4 V +170 -18 R +(0.2) Lshow +1979 1642 M +62 -5 V +5707 1460 M +-63 4 V +170 -18 R +(0.4) Lshow +2141 1737 M +62 -5 V +5869 1555 M +-63 4 V +170 -18 R +(0.6) Lshow +2303 1832 M +62 -5 V +6032 1650 M +-63 4 V +170 -18 R +(0.8) Lshow +2465 1927 M +62 -5 V +6598 841 M +(Y axis) Cshow +1167 2031 M +63 0 V +-189 0 R +(-1) Rshow +1167 2340 M +63 0 V +-189 0 R +(-0.5) Rshow +1167 2648 M +63 0 V +-189 0 R +(0) Rshow +1167 2957 M +63 0 V +-189 0 R +(0.5) Rshow +1167 3265 M +63 0 V +-189 0 R +(1) Rshow +627 3944 M +(Z axis) Cshow +1.000 UP +stroke +grestore +end +showpage +%%Trailer +%%DocumentFonts: Helvetica diff --git a/Master/texmf-dist/doc/latex/cnbwp/graph18.gif b/Master/texmf-dist/doc/latex/cnbwp/graph18.gif new file mode 100644 index 00000000000..a4a7543f60d Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/graph18.gif differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/graph18.jpg b/Master/texmf-dist/doc/latex/cnbwp/graph18.jpg new file mode 100644 index 00000000000..f241787dbff Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/graph18.jpg differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/graph18.pdf b/Master/texmf-dist/doc/latex/cnbwp/graph18.pdf new file mode 100644 index 00000000000..07540822243 Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/graph18.pdf differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/graph18.png b/Master/texmf-dist/doc/latex/cnbwp/graph18.png new file mode 100644 index 00000000000..4856fb9fb61 Binary files /dev/null and b/Master/texmf-dist/doc/latex/cnbwp/graph18.png differ diff --git a/Master/texmf-dist/doc/latex/cnbwp/numtable.tex b/Master/texmf-dist/doc/latex/cnbwp/numtable.tex new file mode 100644 index 00000000000..7ec5b2092bb --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/numtable.tex @@ -0,0 +1,9 @@ +\setlength\extrarowheight{2pt} +\begin{tabular}{|l|D{,}{.}{2}D{,}{.}{1}|}\hline +\bfseries Jm\'eno & \multicolumn{1}{c}{\bfseries V\'y\v{s}ka [m]} & +\multicolumn{1}{c|}{\bfseries V\'aha [kg]}\\\hline +Zlatovl\'aska & 1,68 & 62,3 \\ +Dlouh\'y & 12,6 & 98,1 \\ +\v{S}irok\'y & 1,83 & 386 \\ +Bystrozrak\'y & 1,74 & 74,2 \\\hline +\end{tabular} diff --git a/Master/texmf-dist/doc/latex/cnbwp/widematrix.tex b/Master/texmf-dist/doc/latex/cnbwp/widematrix.tex new file mode 100644 index 00000000000..cec1ba93b96 --- /dev/null +++ b/Master/texmf-dist/doc/latex/cnbwp/widematrix.tex @@ -0,0 +1,30 @@ +\begin{sidewaystable}[p] +\setlength{\extrarowheight}{2pt} +\newcommand\mcol[1]{\multicolumn{1}{r}{Col. #1}} +\centeredcaption{\v{S}irok\'a tabulka}\label{widetable}\bigskip\centering +\begin{tabular}{l*{10}{D{.}{.}{3}}}\hline +\bfseries \# &\mcol{1}&\mcol{2}&\mcol{3}&\mcol{4} +&\mcol{5}&\mcol{6}&\mcol{7}&\mcol{8}&\mcol{9}&\mcol{10}\\\hline +Row 1 & -6.412 & -2.654 & -5.300 & 4.358 & -6.473 & -4.573 & 2.391 & -0.497 & -4.262 & -0.341\\ +Row 2 & 2.799 & -8.109 & 5.647 & -0.214 & 4.665 & 2.971 & 13.699 & -5.059 & -0.088 & 4.090\\ +Row 3 & 8.427 & 5.467 & -7.061 & -0.347 & -6.955 & 6.352 & -3.955 & 7.768 & -9.852 & 4.618\\ +Row 4 & -1.978 & -1.226 & 1.136 & 1.733 & 3.874 & 15.072 & 4.112 & -1.931 & 4.127 & 1.177\\ +Row 5 & 10.896 & 6.859 & -0.623 & 6.685 & -6.378 & 2.714 & -2.670 & 7.862 & -2.314 & -4.094\\ +Row 6 & -5.013 & -2.391 & -1.763 & -1.499 & -4.053 & 2.453 & 1.550 & -3.939 & 3.366 & -0.780\\ +Row 7 & 8.644 & -1.787 & -5.782 & 1.244 & -0.806 & 3.506 & 1.810 & -3.908 & -0.626 & -1.933\\ +Row 8 & -4.965 & -2.494 & 1.539 & 6.265 & 0.892 & -2.730 & 3.311 & -0.006 & 3.735 & 0.408\\ +Row 9 & 1.237 & -3.029 & -0.773 & 9.400 & -6.009 & -0.487 & 4.281 & 4.520 & -5.744 & -3.628\\ +Row 10 & 0.051 & -8.717 & -1.366 & 1.811 & -1.599 & -10.179 & -1.355 & 6.024 & 4.912 & 0.728\\ +Row 11 & 1.894 & -8.089 & -6.445 & -9.112 & -4.753 & 2.555 & 2.751 & 0.952 & -0.291 & -1.523\\ +Row 12 & -3.103 & -0.002 & 2.733 & -9.805 & -3.154 & -1.985 & 4.259 & -2.340 & -2.236 & -2.372\\ +Row 13 & 3.729 & 1.978 & 6.627 & -9.898 & 3.746 & -3.595 & -6.425 & 10.043 & 4.578 & 7.770\\ +Row 14 & 9.511 & -8.231 & 1.815 & -5.189 & -1.213 & 0.767 & -2.620 & 6.613 & -1.119 & -3.838\\ +Row 15 & -0.699 & -10.599 & 5.787 & -11.333 & -4.810 & 2.769 & 0.255 & -6.831 & -1.643 & -2.870\\ +Row 16 & 7.190 & -2.291 & 7.532 & 2.650 & -5.878 & -4.859 & 7.792 & -1.337 & -5.075 & -7.241\\ +Row 17 & -5.918 & 0.987 & 5.037 & -0.556 & -2.653 & -7.008 & 3.491 & -1.028 & 0.573 & 4.620\\ +Row 18 & -3.957 & -4.265 & 1.325 & 3.102 & -5.731 & -3.944 & -6.565 & 5.178 & 2.477 & -1.948\\ +Row 19 & -1.228 & -0.170 & -3.048 & -2.966 & 9.791 & 9.006 & 9.186 & -2.971 & 8.657 & -2.838\\ +Row 20 & -2.340 & -4.932 & -3.904 & 4.164 & -5.838 & -7.320 & 1.451 & 4.955 & 7.439 & -4.407\\ +\hline +\end{tabular} +\end{sidewaystable} -- cgit v1.2.3