Debian Codegraph @

texmf-dist/doc/latex/biblatex-abs-annote/biblatex-abs-annote.tex

raw
1 \documentclass[11pt]{article}
2
3 \usepackage[a4paper,margin=1in]{geometry}
4 \usepackage[T1]{fontenc}
5 \usepackage{lmodern}
6 \usepackage{microtype}
7 \usepackage{hyperref}
8 \usepackage{xcolor}
9 \usepackage{fancyvrb}
10 \usepackage{enumitem}
11 \usepackage{booktabs}
12
13 \hypersetup{
14 colorlinks=true,
15 linkcolor=blue!70!black,
16 urlcolor=blue!70!black,
17 citecolor=blue!70!black,
18 }
19
20 \definecolor{codebg}{rgb}{0.97,0.97,0.97}
21 \fvset{
22 frame=single,
23 rulecolor=\color{gray!40},
24 fontsize=\small,
25 formatcom=\color{black},
26 }
27
28 \title{The \texttt{biblatex-abs-annote} package\\[0.4em]
29 \large Annotated bibliographies with abstracts and user annotations}
30 \author{Cameron Wimpy\\\href{mailto:[email protected]}{\texttt{[email protected]}}}
31 \date{Version 0.1.1 \quad 2026-04-19}
32
33 \begin{document}
34 \maketitle
35
36 \begin{abstract}
37 \noindent
38 \texttt{biblatex-abs-annote} is a lightweight \texttt{biblatex}
39 supplement that renders an \emph{abstract} and a user-supplied
40 \emph{annotation} beneath each entry in a bibliography. Both are
41 standard \texttt{biblatex} fields (\texttt{abstract} and
42 \texttt{annotation}/\texttt{annote})---no custom entry types are
43 required. The package works on top of any \texttt{biblatex} style by
44 patching the standard bibliography drivers.
45 \end{abstract}
46
47 \tableofcontents
48 \vspace{1em}
49
50 \section{Introduction}
51
52 An \emph{annotated bibliography} is a bibliography in which each
53 reference is followed by a short description---typically an abstract,
54 a critical note, or both. \texttt{biblatex-abs-annote} adds this
55 capability to \texttt{biblatex} without replacing your chosen citation
56 style. It reads two optional fields per entry:
57
58 \begin{itemize}[nosep]
59 \item \texttt{abstract} --- the journal-supplied abstract, often
60 already present in Zotero or Mendeley exports.
61 \item \texttt{annotation} --- your own note on the source
62 (\texttt{annote} is accepted as a synonym).
63 \end{itemize}
64
65 Either field may be omitted; an entry with neither renders as an
66 ordinary citation.
67
68 \section{Installation}
69
70 The package is available on CTAN and is included in TeX~Live and
71 MikTeX. If it is not already installed, you can fetch it with your
72 distribution's package manager:
73
74 \begin{Verbatim}
75 # TeX Live
76 tlmgr install biblatex-abs-annote
77
78 # MikTeX picks it up on demand at first use.
79 \end{Verbatim}
80
81 \section{Basic usage}
82
83 Load \texttt{biblatex} in the usual way, then add
84 \texttt{biblatex-abs-annote} afterwards:
85
86 \begin{Verbatim}
87 \documentclass{article}
88 \usepackage[style=authoryear]{biblatex}
89 \usepackage{biblatex-abs-annote}
90 \addbibresource{refs.bib}
91
92 \begin{document}
93 \nocite{*}
94 \printbibliography
95 \end{document}
96 \end{Verbatim}
97
98 A sample \texttt{.bib} entry:
99
100 \begin{Verbatim}
101 @article{smith2024,
102 author = {Smith, Jane},
103 title = {Rural Election Administration Challenges},
104 journal = {Journal of Elections},
105 year = {2024},
106 volume = {34},
107 pages = {112--138},
108 abstract = {Examines logistics and staffing in rural precincts.},
109 annotation = {Key paper for the adaptive informality framework.}
110 }
111 \end{Verbatim}
112
113 \section{Package options}
114
115 Options are passed as key--value pairs when loading the package:
116
117 \begin{Verbatim}
118 \usepackage[abstract=true, annotation=true, labels=true]{biblatex-abs-annote}
119 \end{Verbatim}
120
121 \begin{center}
122 \begin{tabular}{@{}llp{0.5\textwidth}@{}}
123 \toprule
124 \textbf{Option} & \textbf{Default} & \textbf{Effect} \\
125 \midrule
126 \texttt{abstract} & \texttt{true} & Show abstract blocks. \\
127 \texttt{annotation} & \texttt{true} & Show annotation blocks. \\
128 \texttt{labels} & \texttt{true} & Show ``Abstract:'' / ``Annotation:'' headers. \\
129 \bottomrule
130 \end{tabular}
131 \end{center}
132
133 \section{Customization}
134
135 All visual aspects are controlled by redefinable commands and lengths.
136 Override them after loading \texttt{biblatex-abs-annote}:
137
138 \subsection*{Labels}
139 \begin{Verbatim}
140 \renewcommand{\abAnnotateAbstractLabel}{Summary}
141 \renewcommand{\abAnnotateAnnotationLabel}{Notes}
142 \end{Verbatim}
143
144 \subsection*{Fonts}
145 \begin{Verbatim}
146 \renewcommand{\abAnnotateAbstractFont}{\small\itshape}
147 \renewcommand{\abAnnotateAnnotationFont}{\small}
148 \renewcommand{\abAnnotateLabelFont}{\small\bfseries}
149 \end{Verbatim}
150
151 \subsection*{Indentation and spacing}
152 \begin{Verbatim}
153 \setlength{\abAnnotateAbstractIndent}{1.5em}
154 \setlength{\abAnnotateAnnotationIndent}{1.5em}
155 \setlength{\abAnnotateBlockSkip}{0.5ex}
156 \setlength{\abAnnotateInterSkip}{0.3ex}
157 \end{Verbatim}
158
159 \section{How it works}
160
161 \texttt{biblatex} renders each entry type (\texttt{article},
162 \texttt{book}, etc.) via a corresponding \emph{bibliography driver}.
163 \texttt{biblatex-abs-annote} uses the \texttt{xpatch} package to
164 inject two \texttt{biblatex} macros---\texttt{ab-annotate/abstract}
165 and \texttt{ab-annotate/annotation}---into each driver immediately
166 before the closing \texttt{finentry} macro. The macros consult the
167 \texttt{abstract} and \texttt{annotation} fields on the current entry
168 and emit an indented block if the field is populated.
169
170 Because the injection happens at driver level, the surrounding
171 citation formatting is whatever your chosen \texttt{biblatex} style
172 produces. \texttt{biblatex-abs-annote} has been tested with
173 \texttt{authoryear}, \texttt{apa}, \texttt{chicago-authordate}, and
174 \texttt{numeric} styles; custom styles work as long as they use the
175 standard driver names.
176
177 \section{Compatibility}
178
179 \begin{itemize}[nosep]
180 \item Requires \texttt{biblatex} with the \texttt{biber} backend
181 (not \texttt{bibtex}). \texttt{natbib} is not supported.
182 \item Depends on \texttt{xpatch}, \texttt{changepage}, and
183 \texttt{kvoptions}---all standard in TeX~Live and MikTeX.
184 \item Patches the 16 standard \texttt{biblatex} drivers. If a custom
185 style renames drivers, the patch is silently skipped for that
186 driver and the entry renders without annotations.
187 \end{itemize}
188
189 \section{Related formats}
190
191 \texttt{biblatex-abs-annote} is the \texttt{biblatex} component of
192 \texttt{ab-annotate}, a cross-format toolchain sharing the same
193 \texttt{.bib} conventions:
194
195 \begin{itemize}[nosep]
196 \item A Typst package (\texttt{@preview/ab-annotate}) providing the
197 same annotated-bibliography behavior inside Typst documents.
198 \item A Quarto extension (\texttt{cwimpy/ab-annotate}) that renders
199 annotated bibliographies to PDF, HTML, Word, and Typst from a
200 single \texttt{.qmd}.
201 \end{itemize}
202
203 The shared repository is
204 \url{https://github.com/cwimpy/ab-annotate}.
205
206 \section{License}
207
208 \texttt{biblatex-abs-annote} is distributed under the LaTeX Project
209 Public License, version~1.3c. See the accompanying \texttt{LICENSE}
210 file or \url{https://www.latex-project.org/lppl.txt}.
211
212 \section{Version history}
213
214 \begin{description}
215 \item[0.1.1 --- 2026-04-19] Renamed package from
216 \texttt{ab-annotate} to \texttt{biblatex-abs-annote} per CTAN
217 naming guidance.
218 \item[0.1.0 --- 2026-04-14] Initial release (as
219 \texttt{ab-annotate}; not distributed on CTAN).
220 \end{description}
221
222 \end{document}