summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/nmbib/nmsample.tex
blob: 56ff2a807a5b60e0ab87fe5012ea3cbd4ae484df (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
\documentclass{article}
\usepackage{nmbib}
\usepackage[colorlinks]{hyperref}
\multibibliographystyle{timeline}{chronoplainnm}
\multibibliographystyle{sequence}{unsrtnm}
\multibibliographystyle{authors}{plainnm}
\multibibliography{type,nmbib}
\usepackage{booktabs}
\usepackage[tableposition=top]{caption}
\begin{document}

The package \textsl{nmbib} allows several kinds of citations:
author-year parenthetical \verb|\citep|:
\citep{Daly:Customizing_Bibliographic_Style_Files}, author-year
textual \verb|\citet|: \citet{kopka03}, authors only
\verb|\citeauthor|: \citeauthor{Daly:Natbib}, year only
\verb|\citeyear|: \citeyear{Mori:Managing_bibliographies}, numerical
\verb|\citenum|: \citenum{Patashnik:bibtexing}, \verb|\citealn|:
\citealn{Multibibliography}.  The \verb|\citeall| command produces the
full citation: \citeall{Markey:Tame_the_BeaST}, close to the one
produced by the \textsl{multibibliography} package
\citep{Multibibliography, Multibibliography13}.

Full citation command \verb|\citeall|: \citeall{Multibibliography,
  Multibibliography13}.  The starred form: \verb|\citeall*|:
\citeall*{Multibibliography, Multibibliography13}



We can create links with a user-level universal command
\verb|\nmbibLink|: \nmbibLink{Daly:Natbib}{authors}{Daly's package in
  the alphabetic list}, \nmbibLink{kopka03}{sequence}{Kopka and Daly's
  book in the sequential list}.

\begin{table}
  \centering
  \caption{Examples of citation commands}
  \label{tab:examples}
  \begin{tabular}{ll}
    \toprule
    Command & Result\\
    \midrule
    \verb|\citet{Daly:Natbib}| & \citet{Daly:Natbib}\\
    \verb|\citep{Daly:Natbib}| & \citep{Daly:Natbib}\\
    \verb|\cite{Daly:Natbib}| & \cite{Daly:Natbib}\\
    \verb|\citealt{Daly:Natbib}| & \citealt{Daly:Natbib}\\
    \verb|\citealp{Daly:Natbib}| & \citealp{Daly:Natbib}\\
    \verb|\citetext{Daly:Natbib}| & \citetext{Daly:Natbib}\\
    \verb|\citenum{Daly:Natbib}| & \citenum{Daly:Natbib}\\
    \verb|\citealn{Daly:Natbib}| & \citealn{Daly:Natbib}\\
    \verb|\citeauthor{Daly:Natbib}| & \citeauthor{Daly:Natbib}\\
    \verb|\citeyear{Daly:Natbib}| & \citeyear{Daly:Natbib}\\
    \verb|\citefullauthor{Daly:Natbib}| &
    \citefullauthor{Daly:Natbib}\\
    \verb|\citeall{Daly:Natbib}| & \citeall{Daly:Natbib}\\
    \bottomrule
  \end{tabular}
\end{table}

\nmbibYearSuffixOff
\clearpage
\printbibliography{timeline}
\clearpage
\printbibliography{sequence}
\clearpage
\printbibliography{authors}

\end{document}