%%% Zvýraznění údajů, které je potřeba doplnit: před odevzdáním práce odstraňte :)
\newcommand{\xxx}[1]{\textcolor{red!}{#1}}
+
+%%% Detailní nastavení bibliografie
+
+\ifx\citet\undefined\else
+
+% Maximální počet autorů, které uvádíme u jednoho díla (více se uvede pomocí "et al.")
+%\ExecuteBibliographyOptions{maxnames=2}
+% Totéž nastavavení specificky pro citace pomocí \citet{...}
+\ExecuteBibliographyOptions{maxcitenames=2}
+% Totéž nastavavení specificky pro seznam literatury
+%\ExecuteBibliographyOptions{maxbibnames=2}
+
+% Zkracování křestních jmen autorů: "E. A. Poe" místo "Edgar Allan Poe"
+%\ExecuteBibliographyOptions{giveninits}
+% Totéž bez teček ("EA Poe")
+%\ExecuteBibliographyOptions{terseinits}
+
+% Pokud máte problémy s lámáním dlouhých položek bibliografie na řádky,
+% zkuste tento režim:
+\ExecuteBibliographyOptions{block=ragged}
+
+% Ve stylech, které se neřídí podle ISO 690, můžeme také prohodit jméno a příjmení:
+%\DeclareNameAlias{default}{family-given}
+
+% Ve stylech podle ISO 690 vypadá lépe sázet příjmení kapitálkami:
+\let\familynameformat=\textsc
+
+% Více jmen autorů chceme v citacích oddělovat čárkami
+% (zatímco v bibliografii norma předepisuje středníky)
+\DeclareDelimFormat[textcite]{multinamedelim}{\addcomma\space}
+\DeclareDelimFormat[textcite]{finalnamedelim}{\space a~}
+
+\fi
\usepackage{fancyvrb} % vylepšené prostředí verbatim
\usepackage{listings} % zvýrazňování syntaxe zdrojových textů
-% Definice různých užitečných maker (viz popis uvnitř souboru)
-\input macros.tex
-
-%%% Set up bibliography formatting
-% FIXME: Translate to Czech
-% CHECK THE REQUIREMENTS OF YOUR DEPARTMENT AND FACULTY ON THE CITATION FORMAT!
+% Formátování bibliografie (odkazů na literaturu)
+% Detailní nastavení můžete upravit v souboru macros.tex.
%
-% These are relatively "safe" default options that most people use:
-%\usepackage[natbib,style=numeric,sorting=none]{biblatex}
-% alternative with alphanumeric citations (more informative than numbers, and
-% more common in computer science journals):
-%\usepackage[natbib,style=alphabetic]{biblatex}
+% POZOR: Zvyklosti různých oborů a kateder se liší. Konzultujte se svým
+% vedoucím, jaký formát citací je pro vaši práci vhodný!
%
-% ALTERNATIVES THAT CONFORM TO ISO 690
-% ISO 690 is not the greatest citation format ever, but may be formally
-% required at Charles University, depending on your faculty and department.
+% Základní formát podle normy ISO 690 s číslovanými odkazy
\usepackage[natbib,style=iso-numeric,sorting=none]{biblatex}
+% ISO 690 s alfanumerickými odkazy (zkratky jmen autorů)
%\usepackage[natbib,style=iso-alphabetic]{biblatex}
-% You might want to add extra options such as `maxbibnames=6,maxcitenames=2`
-% here to further conform to some of the formatting requirements (see below for
-% details). Again, consult your faculty rules.
-%
-% Additional option choices:
-% - add `giveninits=true` to typeset "E. A. Poe" instead of full Edgar Allan
-% - `terseinits=true` additionaly shortens it to nature-like "Poe EA"
-% - add `maxnames=10` to limit (or loosen) the maximum number of authors in
-% bibliography entry before shortening to `et al.` (useful when referring to
-% book collections that may have hundreds of authors)
-% - use `maxcitenames=2` to finetune the amount of authors listed in text-cite
-% commands (\citet). Corresponding option that only affects the bibliography
-% is `maxbibnames=10`.
-% - `sorting=none` causes the bibliography list to be ordered by the order of
-% citation as they appear in the text, which is usually the desired behavior
-% with numeric citations. Additionally you can use a style like
-% `numeric-comp` that compresses the long lists of citations such as
-% [1,2,3,4,5,6,7,8] to simpler [1--8]. This is especially useful if you plan
-% to add tremendous amounts of citations, as usual in life sciences and
-% bioinformatics.
-% - if you don't like the "In:" appearing in the bibliography, use the
-% extended style (`ext-numeric` or `ext-alphabetic`), and add option
-% `articlein=false`.
-% - if your bibliography entries are hard to break into lines, try adding
-% `block=ragged`.
+% ISO 690 s citacemi tvaru Autor (rok)
+%\usepackage[natbib,style=iso-authoryear]{biblatex}
%
-% Possibly reverse the names of the authors with the non-ISO styles:
-%\DeclareNameAlias{default}{family-given}
-%
-% Use caps-and-small-caps for family names in ISO 690 style.
-\let\familynameformat=\textsc
+% V některých oborech je běžnější obyčejný formát s číslovanými odkazy
+% (sorting=none říká, že se bibliografie má řadit podle pořadí citací):
+%\usepackage[natbib,style=numeric,sorting=none]{biblatex}
+% Číslované odkazy, navíc se [1,2,3,4,5] komprimuje na [1-5]
+%\usepackage[natbib,style=numeric-comp,sorting=none]{biblatex}
+% Obyčejný formát s alfanumerickými odkazy:
+%\usepackage[natbib,style=alphabetic]{biblatex}
-% Load the file with bibliography entries
+% Z tohoto souboru se načítají položky bibliografie
\addbibresource{literatura.bib}
+% Definice různých užitečných maker (viz popis uvnitř souboru)
+\input macros.tex
+
%%% Titulní strana a různé povinné informační strany
\begin{document}
\include{title}