-
Notifications
You must be signed in to change notification settings - Fork 8
/
example.tex
56 lines (31 loc) · 1.04 KB
/
example.tex
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
%
% Copyright (c) 2021-2024 Zeping Lee
% Released under the MIT License.
% Repository: https://github.com/zepinglee/citeproc-lua
%
\documentclass{article}
\usepackage[style=apa]{citation-style-language}
\usepackage{hyperref}
\addbibresource{example.json} % or example.bib or example.yaml
\newcommand\cs[1]{\texttt{\textbackslash #1}}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\begin{document}
\section*{The standard \cs{cite} command}
\cite{ITEM-1}
\cite{ITEM-1, ITEM-2}
\cite[page = 42]{ITEM-1}
\cite[prefix = {see }]{ITEM-1}
\cite[prefix = {see }, page = 42--73]{ITEM-1}
\section*{The narrative \cs{textcite} command}
\textcite{ITEM-1}
\textcite[page = 42]{ITEM-1}
\textcite[infix = {'s early work}]{ITEM-1}
\textcite[prefix = {see }]{ITEM-1}
\textcite[prefix = {see }, page = 42--73]{ITEM-1}
\section*{Other commands}
Author-only command \cs{citeauthor}: \citeauthor{ITEM-1}.
\cs{nocite} adds the entry to the bibliography without printing citations.\nocite{ITEM-3}
% Print the reference list
\printbibliography
\end{document}