summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-ms/doc/examples/30-style-numeric-ms.tex
blob: 4302f9950dd9edbd42c5b2510e0efdc19ac4a802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
%
% This file presents the 'numeric' style
%
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=numeric,subentry,backend=biber]{biblatex-ms}
\usepackage{hyperref}
\addbibresource{biblatex-examples.bib}
% Some generic settings.
\newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
\setlength{\parindent}{0pt}
\begin{document}

\section*{The \texttt{numeric} style}

This style prints numeric citations in square brackets. It is
similar to the standard bibliographic facilities provided by LaTeX
and to the \texttt{plain.bst} style of legacy BibTeX.

\subsection*{Additional package options}

\subsubsection*{The \texttt{subentry} option}

The option \texttt{subentry} affects the handling of citations
referring to members of a reference set. If this option is enabled,
such citations get an extra letter which identifies the member
(it is also printed in the bibliography):
\cite{glashow,yoon,salam,aksin,companion}.

This option is disabled by default, but it has been enabled
in this example. If disabled, citations referring to a set member
will point to the entire set, i.e., the above citations would
come out as
\cite{stdmodel,set,stdmodel,set,companion}.


\subsection*{\cmd{cite} examples}

\cite{companion}

\cite[59]{companion}

\cite[see][]{companion}

\cite[see][59--63]{companion}

\subsection*{\cmd{parencite} examples}
With the numeric style, \cmd{parencite} and \cmd{cite}
behave the exactly the same.

This is just filler text \parencite{companion}.

This is just filler text \parencite[59]{companion}.

This is just filler text \parencite[see][]{companion}.

This is just filler text \parencite[see][59--63]{companion}.

\subsection*{\cmd{textcite} examples}

% The \textcite command is intended for citations integrated in the
% flow of text, replacing the subject of the sentence.

\textcite{companion} show that this is just filler text.

\textcite[59]{companion} show that this is just filler text.

\textcite[see][]{companion} show that this is just filler text.

\textcite[see][59--63]{companion} show that this is just filler text.

\subsection*{\cmd{supercite} examples}

This is just filler text.\supercite{companion}

\subsection*{\cmd{autocite} examples}

% By default, the \autocite command works like \parencite.

This is just filler text \autocite{companion}.

\subsection*{Multiple citations}

% By default, a list of multiple citations is not sorted. You can
% enable sorting by setting the 'sortcites' package option.

\cite{companion,augustine,bertram,cotton,hammond,massa,murray}


% The list of references

\clearpage
\printbibliography

\end{document}