Debian Codegraph @

texmf-dist/doc/latex/biblatex/examples/60-style-authortitle.tex

raw
1 %
2 % This file presents the 'authortitle' style
3 %
4 \documentclass[a4paper]{article}
5 \usepackage[T1]{fontenc}
6 \usepackage[utf8]{inputenc}
7 \usepackage[american]{babel}
8 \usepackage{csquotes}
9 \usepackage[style=authortitle,backend=biber]{biblatex}
10 \usepackage{hyperref}
11 \addbibresource{biblatex-examples.bib}
12 % Some generic settings:
13 \newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
14 \setlength{\parindent}{0pt}
15 \begin{document}
16
17 \section*{The \texttt{authortitle} style}
18
19 This style prints author-title citations. If an entry in the
20 database file includes a \texttt{shorttitle} field, the short
21 title is used instead of the \texttt{title} field.
22
23 \subsection*{Additional package options}
24
25 \subsubsection*{The \texttt{dashed} option}
26
27 By default, this style replaces recurrent authors/editors in the
28 bibliography by a dash so that items by the same author or editor
29 are visually grouped. This feature is controlled by the package
30 option \texttt{dashed}. Setting \texttt{dashed=false} in the
31 preamble will disable this feature. The default setting is
32 \texttt{dashed=true}.
33
34 \subsection*{\cmd{cite} examples}
35
36 \cite{aristotle:rhetoric}
37
38 \cite[59]{aristotle:rhetoric}
39
40 \cite[see][]{aristotle:rhetoric}
41
42 \cite[see][59--63]{aristotle:rhetoric}
43
44 \subsection*{\cmd{parencite} examples}
45
46 This is just filler text \parencite{aristotle:rhetoric}.
47
48 This is just filler text \parencite[59]{aristotle:rhetoric}.
49
50 This is just filler text \parencite[see][]{aristotle:rhetoric}.
51
52 This is just filler text \parencite[see][59--63]{aristotle:rhetoric}.
53
54 \subsection*{\cmd{parencite*} examples}
55
56 \citeauthor{aristotle:rhetoric} shows that this is just filler
57 text \parencite*{aristotle:rhetoric}.
58
59 \citeauthor{aristotle:rhetoric} shows that this is just filler
60 text \parencite*[59]{aristotle:rhetoric}.
61
62 \citeauthor{aristotle:rhetoric} shows that this is just filler
63 text \parencite*[see][]{aristotle:rhetoric}.
64
65 \citeauthor{aristotle:rhetoric} shows that this is just filler
66 text \parencite*[see][59--63]{aristotle:rhetoric}.
67
68 \subsection*{\cmd{footcite} examples}
69
70 This is just filler text.\footcite{aristotle:rhetoric}
71
72 This is just filler text.\footcite[59]{aristotle:rhetoric}
73
74 This is just filler text.\footcite[See][]{aristotle:rhetoric}
75
76 This is just filler text.\footcite[See][59--63]{aristotle:rhetoric}
77
78 \subsection*{\cmd{textcite} examples}
79
80 \textcite{aristotle:rhetoric} shows that this is just filler text.
81
82 \textcite[59]{aristotle:rhetoric} shows that this is just filler text.
83
84 \textcite[see][]{aristotle:rhetoric} shows that this is just filler text.
85
86 \textcite[see][59--63]{aristotle:rhetoric} shows that this is just filler text.
87
88 \subsection*{\cmd{autocite} examples}
89
90 % By default, the \autocite command works like \footcite. Note that
91 % the period is moved and placed before the footnote.
92
93 This is just filler text \autocite{aristotle:rhetoric}.
94
95 \subsection*{Multiple citations}
96
97 % By default, a list of multiple citations is not sorted. You can
98 % enable sorting by setting the 'sortcites' package option.
99
100 \cite{aristotle:rhetoric,aristotle:physics,aristotle:poetics}
101
102 \subsection*{Shorthand examples}
103
104 % If an entry in the bib file includes a 'shorthand' field, the
105 % shorthand replaces the regular author-title citation.
106
107 \cite{kant:kpv,kant:ku}
108
109 \clearpage
110
111 % The list of shorthands.
112
113 \printshorthands
114
115 % The list of references. Note that the year is printed after the
116 % author or editor and that recurring author and editor names are
117 % replaced by a dash unless the entry is the first one on the
118 % current page or double page spread (depending on the setting of
119 % the 'pagetracker' package option). This style will implicitly set
120 % 'pagetracker=true' at load time.
121
122 \nocite{*}
123 \printbibliography
124
125 \end{document}