From f17a0bd9ec5b7de24172f7d7efc84a0edc836823 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 1 Mar 2024 23:32:55 +0200 Subject: [PATCH] Switch bibliography processing to biblatex Description copied from the better-mff-thesis package. --- literatura.tex | 17 ++++------------- thesis.tex | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 15 deletions(-) diff --git a/literatura.tex b/literatura.tex index 8d8a405..af39bdb 100644 --- a/literatura.tex +++ b/literatura.tex @@ -1,26 +1,17 @@ %%% Seznam použité literatury (bibliografie) %%% -%%% Pro vytváření bibliografie používáme bibTeX. Ten zpracovává +%%% Pro vytváření bibliografie používáme biblatex. Ten zpracovává %%% citace v textu (např. makro \cite{...}) a vyhledává k nim literaturu %%% v souboru literatura.bib. %%% -%%% Příkaz \bibliographystyle určuje, jakým stylem budou citovány odkazy -%%% v textu. V závorce je název zvoleného souboru .bst. Styly plainnat -%%% a unsrt jsou standardní součástí latexových distribucí. Styl czplainnat -%%% je dodáván s touto šablonou a bibTeX ho hledá v aktuálním adresáři. - -\bibliographystyle{czplainnat} %% Autor (rok) s českými spojkami -% \bibliographystyle{plainnat} %% Autor (rok) s anglickými spojkami -% \bibliographystyle{unsrt} %% [číslo] - -\renewcommand{\bibname}{Seznam použité literatury} +%%% Podívejte se na nastavení biblatexu v souboru thesis.tex. %%% Vytvoření seznamu literatury. Pozor, pokud jste necitovali ani jednu %%% položku, seznam se automaticky vynechá. -\bibliography{literatura} +\printbibliography[heading=bibintoc,title=Literatura] -%%% Kdybyste chtěli bibliografii vytvářet ručně (bez bibTeXu), lze to udělat +%%% Kdybyste chtěli bibliografii vytvářet ručně (bez biblatexu), lze to udělat %%% následovně. V takovém případě se řiďte normou ISO 690 a zvyklostmi v oboru. % \begin{thebibliography}{99} diff --git a/thesis.tex b/thesis.tex index 7d3c3d2..18e0fbc 100644 --- a/thesis.tex +++ b/thesis.tex @@ -56,8 +56,6 @@ \usepackage{icomma} % inteligetní čárka v matematickém módu \usepackage{indentfirst} % zavede odsazení 1. odstavce kapitoly \usepackage{microtype} % mikrotypografická rozšíření -\usepackage{natbib} % zajištuje možnost odkazovat na literaturu - % stylem AUTOR (ROK), resp. AUTOR [ČÍSLO] \usepackage{paralist} % lepší enumerate a itemize \usepackage[nottoc]{tocbibind} % zajistí přidání seznamu literatury, % obrázků a tabulek do obsahu @@ -78,6 +76,54 @@ % 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! +% +% 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} +% +% 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. +\usepackage[natbib,style=iso-numeric,sorting=none]{biblatex} +%\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`. +% +% 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 + +% Load the file with bibliography entries +\addbibresource{literatura.bib} + %%% Titulní strana a různé povinné informační strany \begin{document} \include{title} -- 2.39.5