Debian Codegraph @

texmf-dist/doc/latex/biblatex/examples/30-style-numeric.tex

raw
1 %
2 % This file presents the 'numeric' style
3 %
4 \documentclass[a4paper]{article}
5 \usepackage[T1]{fontenc}
6 \usepackage[utf8]{inputenc}
7 \usepackage[american]{babel}
8 \usepackage{csquotes}
9 \usepackage[style=numeric,subentry,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{numeric} style}
18
19 This style prints numeric citations in square brackets. It is
20 similar to the standard bibliographic facilities provided by LaTeX
21 and to the \texttt{plain.bst} style of legacy BibTeX.
22
23 \subsection*{Additional package options}
24
25 \subsubsection*{The \texttt{subentry} option}
26
27 The option \texttt{subentry} affects the handling of citations
28 referring to members of a reference set. If this option is enabled,
29 such citations get an extra letter which identifies the member
30 (it is also printed in the bibliography):
31 \cite{glashow,yoon,salam,aksin,companion}.
32
33 This option is disabled by default, but it has been enabled
34 in this example. If disabled, citations referring to a set member
35 will point to the entire set, i.e., the above citations would
36 come out as
37 \cite{stdmodel,set,stdmodel,set,companion}.
38
39
40 \subsection*{\cmd{cite} examples}
41
42 \cite{companion}
43
44 \cite[59]{companion}
45
46 \cite[see][]{companion}
47
48 \cite[see][59--63]{companion}
49
50 \subsection*{\cmd{parencite} examples}
51 With the numeric style, \cmd{parencite} and \cmd{cite}
52 behave the exactly the same.
53
54 This is just filler text \parencite{companion}.
55
56 This is just filler text \parencite[59]{companion}.
57
58 This is just filler text \parencite[see][]{companion}.
59
60 This is just filler text \parencite[see][59--63]{companion}.
61
62 \subsection*{\cmd{textcite} examples}
63
64 % The \textcite command is intended for citations integrated in the
65 % flow of text, replacing the subject of the sentence.
66
67 \textcite{companion} show that this is just filler text.
68
69 \textcite[59]{companion} show that this is just filler text.
70
71 \textcite[see][]{companion} show that this is just filler text.
72
73 \textcite[see][59--63]{companion} show that this is just filler text.
74
75 \subsection*{\cmd{supercite} examples}
76
77 This is just filler text.\supercite{companion}
78
79 \subsection*{\cmd{autocite} examples}
80
81 % By default, the \autocite command works like \parencite.
82
83 This is just filler text \autocite{companion}.
84
85 \subsection*{Multiple citations}
86
87 % By default, a list of multiple citations is not sorted. You can
88 % enable sorting by setting the 'sortcites' package option.
89
90 \cite{companion,augustine,bertram,cotton,hammond,massa,murray}
91
92
93 % The list of references
94
95 \clearpage
96 \printbibliography
97
98 \end{document}