summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex/examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-09-14 22:21:10 +0000
committerKarl Berry <karl@freefriends.org>2016-09-14 22:21:10 +0000
commit255f0a58d9bae0f193b4bd7d07885325f2fe8585 (patch)
tree1023130a997bd4b06c760600b892fcaa73fcaa30 /Master/texmf-dist/doc/latex/biblatex/examples
parentada185c4b489c295d97a94e2a8095efa22bf711e (diff)
biblatex (14sep16)
git-svn-id: svn://tug.org/texlive/trunk@42063 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex/examples')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-biber.pdfbin241510 -> 243031 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-bibtex.pdfbin242507 -> 243337 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys.tex16
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-biber.pdfbin175156 -> 175146 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-bibtex.pdfbin175156 -> 175146 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-biber.pdfbin174664 -> 174652 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-bibtex.pdfbin174664 -> 174652 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed-biber.pdfbin158240 -> 158236 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed.tex2
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/82-style-debug-biber.pdfbin149668 -> 149680 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/91-sorting-schemes-biber.pdfbin21546 -> 21532 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/93-nameparts.tex10
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/94-labelprefix.tex17
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/96-dates-biber.pdfbin0 -> 24831 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/96-dates.tex189
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/biblatex-examples.bltxml11
16 files changed, 227 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-biber.pdf
index c4000e0fbd1..34037a92b69 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-biber.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-bibtex.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-bibtex.pdf
index bdbe1bfe7c6..8d0bba4a7c3 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-bibtex.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys-bibtex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys.tex b/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys.tex
index 59277ad0b75..91df87addfa 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys.tex
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/03-localization-keys.tex
@@ -15,6 +15,7 @@
%\usepackage[danish]{babel}
%\usepackage[dutch]{babel}
\usepackage[english]{babel}
+%\usepackage[estonian]{babel}
%\usepackage[finnish]{babel}
%\usepackage[french]{babel}
%\usepackage[german]{babel}
@@ -464,6 +465,21 @@ The following keys are typically used in the \bibfield{type} field of \bibtype{t
\keyitem{audiocd} The term <audio \textsc{cd}>.
\end{keylist}
+\subsection*{Dates and Times}
+\begin{keylist}
+\keyitem{commonera} The term used to denote the secular era modern term \eg\ <CE>.
+\keyitem{beforecommonera} The term used to denote the secular era pre-modern term \eg\ <BCE>.
+\keyitem{annodomini} The term used to denote the christian era modern term \eg\ <AD>.
+\keyitem{beforechrist} The term used to denote the christian era pre-modern term \eg\ <BC>.
+\keyitem{circa} The string prefix used to denote approximate dates \eg\ <circa>.
+\keyitem{spring} The string <spring>.
+\keyitem{summer} The string <summer>.
+\keyitem{autumn} The string <autumn>.
+\keyitem{winter} The string <winter>.
+\keyitem{am} The string <AM>.
+\keyitem{pm} The string <PM>.
+\end{keylist}
+
\subsection*{Miscellaneous}
\begin{keylist}
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-biber.pdf
index d1f6c023b93..45d1e56a5d6 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-biber.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-bibtex.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-bibtex.pdf
index b58647a6727..dd4c27b9029 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-bibtex.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword-bibtex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-biber.pdf
index 0204a8d7558..2189b996412 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-biber.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-bibtex.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-bibtex.pdf
index ae371ac6209..00896eeb276 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-bibtex.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/14-references-by-category-bibtex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed-biber.pdf
index d7377a694d4..d4862046f0e 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed-biber.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed.tex b/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed.tex
index f670a33eb43..f08ecea236b 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed.tex
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/19-alphabetic-prefixed.tex
@@ -6,7 +6,7 @@
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{csquotes}
-\usepackage[style=alphabetic,backend=biber]{biblatex}
+\usepackage[style=alphabetic,defernumbers,backend=biber]{biblatex}
\usepackage{hyperref}
\usepackage{nameref}
\addbibresource{biblatex-examples.bib}
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/82-style-debug-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/82-style-debug-biber.pdf
index 2efab5faa01..159ed893dd6 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/82-style-debug-biber.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/82-style-debug-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/91-sorting-schemes-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/91-sorting-schemes-biber.pdf
index 71ef1b05106..900c47837dd 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/91-sorting-schemes-biber.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/91-sorting-schemes-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/93-nameparts.tex b/Master/texmf-dist/doc/latex/biblatex/examples/93-nameparts.tex
index 9f07e567bd6..46b337c3dd1 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/93-nameparts.tex
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/93-nameparts.tex
@@ -4,10 +4,18 @@
\setsansfont{Arial}
\setmonofont{Courier New}
\usepackage[russian]{babel}
-\usepackage[russian]{babel}
\usepackage{csquotes}
+\usepackage{filecontents}
+\begin{filecontents}{\jobname.bib}
+@book{tolstoy,
+ author = {given=Лев, patronymic=Николаевич, family=Толстой},
+ title = {Война и мир},
+ date = {1877}
+}
+\end{filecontents}
\usepackage[style=authoryear,datamodel=93-nameparts,backend=biber]{biblatex}
\addbibresource[datatype=biblatexml]{biblatex-examples.bltxml}
+\addbibresource{\jobname.bib}
% A format using the new name part
\DeclareNameFormat{author}{%
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/94-labelprefix.tex b/Master/texmf-dist/doc/latex/biblatex/examples/94-labelprefix.tex
index 81f244bc1eb..666c5f5f512 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/94-labelprefix.tex
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/94-labelprefix.tex
@@ -13,6 +13,10 @@
\assignrefcontextkeyws*[sorting=none,labelprefix=S]{secondary}
\defbibfilter{cats}{category=cat1 or category=cat2}
+\DeclareRefcontext{rcone}{labelprefix=R}
+\DeclareRefcontext{rctwo}{labelprefix=T}
+\DeclareRefcontext{rcthree}{sorting=nty}
+
\setlength{\parindent}{0pt}
\newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
\begin{document}
@@ -40,16 +44,19 @@ These are not publications by Aristotle:
This is another publication by Aristotle:
\cite{aristotle:physics} % comes from refcontext=none/global/R
-\begin{refcontext}[labelprefix=R]
+\begin{refcontext}{rcone}
% refcontext=none/global/R
\printbibliography[keyword=primary, title={Aristotle Publications}]
% aristotle:anima and aristotle:physics default refcontext is this one
\end{refcontext}
-\begin{refcontext}[labelprefix=S]
+% Alternative style of specifying refcontext
+% Note here that the optional argument to \newrefcontext overrides the
+% value set with the named refcontext
+\newrefcontext[labelprefix=S]{rctwo}
% refcontext=none/global/S
-\printbibliography[ notkeyword=primary, title={Other publications}]
-\end{refcontext}
+\printbibliography[notkeyword=primary, title={Other publications}]
+\endrefcontext
\begin{refcontext}[labelprefix=Q]
% refcontext=none/global/Q
@@ -69,7 +76,7 @@ This is another publication by Aristotle:
\section*{New Refsection}
\newrefsection
\cite{worman} % comes from default refcontext=nty/global/T
-\begin{refcontext}[sorting=nty, labelprefix=T]
+\begin{refcontext}[labelprefix=T]{rcone}
% refcontext=nty/global//
\printbibliography[resetnumbers, notkeyword=primary, title={More Other publications}]
\end{refcontext}
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/96-dates-biber.pdf b/Master/texmf-dist/doc/latex/biblatex/examples/96-dates-biber.pdf
new file mode 100644
index 00000000000..51e3033bdb5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/96-dates-biber.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/96-dates.tex b/Master/texmf-dist/doc/latex/biblatex/examples/96-dates.tex
new file mode 100644
index 00000000000..de43e3fe244
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/96-dates.tex
@@ -0,0 +1,189 @@
+%
+% This file demonstrates various date formats and tests which apply to them
+% for output
+%
+\documentclass[a4paper]{article}
+\usepackage{fontspec}
+\usepackage[american]{babel}
+\usepackage{csquotes}
+\usepackage{filecontents}
+\begin{filecontents}{\jobname.bib}
+@misc{date1,
+ note = {Years with implicit era},
+ author = {Author1},
+ date = {-0099-07-11/-0043-03-13}, % Negative ETDF date range
+ origdate = {-0477}, % Negative EDTF date
+ eventdate = {0477/0566}, % Forced CE era due to dateeraauto setting
+ urldate = {-0020/0100}, % Cross BCE/CE range
+}
+@misc{date2,
+ note = {Dates with circa and uncertain markers},
+ author = {Author2},
+ date = {1723?~}, % year with ETDF approximate (circa) and uncertainty markers
+ origdate = {1934-02~}, % year and month with circa marker
+ eventdate = {1976?}, % year with EDTF uncertainty marker
+ urldate = {1922~}, % year with ETDF approximate (circa) marker
+}
+@misc{date3,
+ note = {Date ranges},
+ author = {Author3},
+ date = {1934~/1936~}, % year range with circa markers
+ origdate = {1723~/}, % open-ended year range with circa marker
+ eventdate = {1976?/}, % open-ended year range with uncertainty marker
+ urldate = {1976/open} % open-ended year range with EDTF open marker
+}
+@misc{date4,
+ note = {Times},
+ author = {Author4},
+ date = {2004-04-25T14:34:00/2004-04-05T14:37:06}, % Date with time, floating timezone
+ origdate = {2004-04-25T14:34:00Z/2004-04-05T14:34:05Z}, % Date with time, UTC timezone
+ eventdate = {2004-04-25T14:34:00+05:00/2004-04-05T15:34:00+05:00}, % Date with time, explicit timezone
+ urldate = {2004-04-25T14:34:00/2004-04-05T15:00:00}, % Datetime range
+}
+@misc{date5,
+ note = {Seasons},
+ author = {Author5},
+ date = {1723-21}, % EDTF season (21=spring, 22=summer, 23=autumn, 24=winter)
+ origdate = {1934-24~}, % uncertain year plus season
+ eventdate = {1934-22/1934-23}, % range with seasons
+}
+@misc{date6,
+ % uses the 'nodate' localisation string due to default \DeclareLabeldate setting
+ note = {Date from literal/localisation string},
+ author = {Author6},
+}
+@misc{date7,
+ note = {Unspecified dates can be used to do amusing things},
+ author = {Author7},
+ date = {19uu}, % EDTF unspecified year in century
+ origdate = {199u}, % EDTF unspecified year in decade
+}
+@misc{date8,
+ note = {Astronomical year era},
+ author = {Author8},
+ date = {0001}, % with dateera=astronomical, 1, otherwise 1 CE
+ origdate = {0000}, % with dateera=astronomical, 0, otherwise 1 BCE
+ eventdate = {-0001}, % with dateera=astronomical, -1, otherwise 2 BCE
+ urldate = {-0379} % with dateera=astronomical, -379, otherwise 380 BCE
+}
+@misc{date9,
+ note = {Automatic era setting},
+ author = {Author9},
+ date = {1066},
+ origdate = {0876},
+ eventdate = {0402},
+ urldate = {-0382}
+}
+\end{filecontents}
+\usepackage[style=authoryear,%
+ % dateabbrev=false,% when false, don't abbreviate months/seasons
+ % julian=true,% convert dates before gregorianstart to Julian Calendar
+ % gregorianstart=1582-10-15,% Default
+ alldates=short,%
+ % alldates=ymd,% Year-Month-Day format
+ % alldates=edtf,% EDTF format
+ alldatesusetime=true, % print time components in non-compact date ranges
+ alltimes=12h,%
+ % alltimes=24h,% prints 24 hour format times (default)
+ % alltimes=24hcomp,% prints 24 hour compressed format times
+ % seconds=true,% uncomment to print seconds
+ % timezones=true,% uncomment to print timezones
+ datezeros=false,% pad date components with zeros?
+ dateera=secular,% prints BCE/CE controlled by dateerauto, datezeros
+ % dateera=christian,% prints BC/AD controlled by dateerauto, datezeros
+ % dateera=astronomical,% prints astronomical dates, controlled by datezeros
+ dateeraauto=600,% Sets the max year ceiling for automatic printing of era
+ % abbreviate=false,% prints full date localisation strings
+ dateuncertain=true,%
+ datecirca=true,%
+ sorting=none,%
+ backend=biber]{biblatex}
+\addbibresource{\jobname.bib}
+
+\defbibenvironment{simple}
+{\list{}
+ {\setlength{\leftmargin}{0pt}%
+ \setlength{\itemindent}{0pt}%
+ \setlength{\bibitemsep}{1ex}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}}
+{\endlist}
+{\item}
+
+\DeclareFieldFormat{urldate}{#1}
+\DeclareFieldFormat{time}{\mkbibemph{#1}}
+\DeclareFieldFormat{labeltime}{\mkbibemph{#1}}
+\DeclareFieldFormat{origtime}{\mkbibemph{#1}}
+\DeclareFieldFormat{eventtime}{\mkbibemph{#1}}
+\DeclareFieldFormat{urltime}{\mkbibemph{#1}}
+
+\makeatletter
+
+\DeclareBibliographyDriver{misc}{%
+ \printfield[emph]{note}\\
+ \iffieldundef{labelyear}{}{%
+ \printtext[bold]{labeldate = }\printlabeldate
+ \iffieldundef{labelhour}{}
+ {\\\printtext[bold]{labeltime = }\printlabeltime}}\\%
+ \iffieldundef{year}{}{%
+ \iffieldequalstr{dateunspecified}{yearincentury}
+ {\printtext[bold]{date = }\number\numexpr\thefield{year}/100+1\relax th Century}
+ {\printtext[bold]{date = }\printdate
+ \iffieldundef{hour}{}
+ {\\\printtext[bold]{time = }\printtime}}}\\%
+ \iffieldundef{origyear}{}{%
+ \iffieldequalstr{origdateunspecified}{yearindecade}
+ {\printtext[bold]{date = }The \expandafter\@gobbletwo\number\thefield{origyear}s}
+ {\printtext[bold]{origdate = }\printorigdate
+ \iffieldundef{orighour}{}
+ {\\\printtext[bold]{origtime = }\printorigtime}}}\\%
+ \iffieldundef{eventyear}{}{%
+ \printtext[bold]{eventdate = }\printeventdate
+ \iffieldundef{eventhour}{}
+ {\\\printtext[bold]{eventtime = }\printeventtime}}\\%
+ \iffieldundef{urlyear}{}{%
+ \printtext[bold]{urldate = }\printurldate
+ \iffieldundef{urlhour}{}
+ {\\\printtext[bold]{urltime = }\printurltime}}%
+ }
+
+\begin{document}
+\section*{Date formats}
+This example file parses and formats some of the supported date formats and
+demonstrates the output options. See the source for details. You can change
+the options in the source file and this document will show you the options chosen.
+\subsection*{Options used to format this test document}
+\begingroup
+datecirca=\textbf{\iftoggle{blx@datecirca}{1}{0}}\\
+dateuncertain=\textbf{\iftoggle{blx@dateuncertain}{1}{0}}\\
+dateera=\textbf{\blx@dateera}\\
+dateerauto=\textbf{\blx@dateeraauto}\\
+datezeros=\textbf{\iftoggle{blx@datezeros}{1}{0}}\\
+timezeros=\textbf{\iftoggle{blx@timezeros}{1}{0}}\\
+timezones=\textbf{\iftoggle{blx@timezones}{1}{0}}\\
+seconds=\textbf{\iftoggle{blx@seconds}{1}{0}}\\
+julian=\textbf{\iftoggle{blx@julian}{1}{0}}\\
+gregorianstart=\textbf{\blx@gregorianstart}\\
+\def\do#1{%
+ #1=\textbf{\csuse{blx@dateformat@#1}}\\}
+\do{labeldate}
+\abx@dodates
+\def\do#1{%
+ #1time=\textbf{\csuse{blx@timeformat@#1time}}\\
+ #1dateusetime=\textbf{\iftoggle{blx@#1dateusetime}{1}{0}}\\}
+\do{label}
+\abx@dodatetypes
+\endgroup
+\subsection*{Example Citation Formats}
+\textcite{date1,date2,date3,date4,date5,date6,date7,date8,date9}\\[1ex]
+\cite{date1}\\
+\cite{date2}\\
+\cite{date3}\\
+\cite{date4}\\
+\cite{date5}\\
+\cite{date6}\\
+\cite{date7}\\
+\cite{date8}\\
+\cite{date9}
+\printbibliography[env=simple,title={Example Bibliography Formats}]
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/biblatex-examples.bltxml b/Master/texmf-dist/doc/latex/biblatex/examples/biblatex-examples.bltxml
index 78f60c71f05..f75ee81ec8d 100644
--- a/Master/texmf-dist/doc/latex/biblatex/examples/biblatex-examples.bltxml
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/biblatex-examples.bltxml
@@ -3,17 +3,6 @@
<!-- Auto-generated by Biber::Output::biblatexml -->
<bltx:entries xmlns:bltx="http://biblatex-biber.sourceforge.net/biblatexml">
- <bltx:entry id="tolstoy" entrytype="book">
- <bltx:names type="author">
- <bltx:name >
- <bltx:namepart type="given" initial="Л">Лев</bltx:namepart>
- <bltx:namepart type="patronymic" initial="Н">Николаевич</bltx:namepart>
- <bltx:namepart type="family" initial="Т">Толстой</bltx:namepart>
- </bltx:name>
- </bltx:names>
- <bltx:title>Война и мир</bltx:title>
- <bltx:date>1877</bltx:date>
- </bltx:entry>
<bltx:entry id="bulgakov" entrytype="book">
<bltx:names type="author">
<bltx:name>