From fa7c655dc427cbc65585d4db3fcfe7c48f44130f Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Mon, 22 Jun 2020 12:33:06 +0200 Subject: [PATCH] update makefile, add some comments on biblatex --- Makefile | 29 +++++++++++++++++++---------- thesis.tex | 19 ++++++++++++++++++- 2 files changed, 37 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 00482be..b62b9a3 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,25 @@ -PDFS=thesis.pdf abstract-en.pdf abstract-cz.pdf +NAME=thesis +ABSTRACT=abstract +REFS=refs.bib + +TEX=pdflatex #possibly switch to lualatex/xelatex +BIB=bibtex #possibly switch to biber (remove backend=bibtex from biblatex opts) + +RMF=rm -f + +PDFS=$(NAME).pdf $(ABSTRACT)-en.pdf $(ABSTRACT)-cz.pdf all: $(PDFS) -thesis.pdf: thesis.tex $(wildcard *.tex) refs.bib thesis.xmpdata - pdflatex $< - bibtex thesis - pdflatex $< - pdflatex $< +$(NAME).pdf: $(wildcard *.tex) $(REFS) $(NAME).xmpdata + $(TEX) $(NAME) + $(BIB) $(NAME) + $(TEX) $(NAME) + $(TEX) $(NAME) -abstract-%.pdf: abstract-%.tex abstract-%.xmpdata metadata.tex - pdflatex $< +$(ABSTRACT)-%.pdf: $(ABSTRACT)-%.tex $(ABSTRACT)-%.xmpdata metadata.tex + $(TEX) $< clean: - rm -f *.log *.dvi *.aux *.toc *.lof *.lot *.out *.bbl *.blg *.xmpi - rm -f $(PDFS) + $(RMF) *.log *.dvi *.aux *.toc *.lof *.lot *.out *.bbl *.blg *.xmpi + $(RMF) $(PDFS) diff --git a/thesis.tex b/thesis.tex index c49d53c..dbe53ca 100644 --- a/thesis.tex +++ b/thesis.tex @@ -47,8 +47,25 @@ % load bibliography tools \usepackage[backend=bibtex,natbib,style=numeric]{biblatex} -% alternative with alphanumeric citations (more informative than plain numbers): +% alternative with alphanumeric citations (more informative than numbers): %\usepackage[backend=bibtex,natbib,style=alphabetic]{biblatex} +% +% alternatives that conform to iso690 +% (iso690 is not formally required on MFF, but may help elsewhere): +%\usepackage[backend=bibtex,natbib,style=iso-numeric]{biblatex} +%\usepackage[backend=bibtex,natbib,style=iso-alphabetic]{biblatex} +% +% additional option choices: +% - add `giveninits=true` to typeset "E. A. Poe" instead of full Edgar Allan +% - 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) +% - for additional flexibility (e.g. multiple reference sections, etc.), +% remove `backend=bibtex` and compile with `biber` instead of `bibtex` (see +% Makefile) +% +% possibly reverse the names of the authors with the default styles: +%\DeclareNameAlias{default}{family-given} % load the file with bibliography entries \addbibresource{refs}