Debian Codegraph @

texmf-dist/doc/latex/biblatex-ext/biblatex-ext.tex

raw
1 \documentclass[11pt,a4paper]{article}
2 \usepackage{iftex}
3 \iftutex
4 \usepackage{fontspec}
5 \else
6 \usepackage[T1]{fontenc}
7 \usepackage[utf8]{inputenc}
8 \input glyphtounicode
9 \pdfgentounicode=1
10 \fi
11 \usepackage[french,ngerman,british]{babel}
12 \usepackage{csquotes}
13 \usepackage[useregional]{datetime2}
14 \iftutex\else
15 \usepackage{lmodern}
16 \fi
17 \usepackage[mono=false]{libertinus}
18 \iftutex
19 \setmonofont[Scale=0.78]{Bitstream Vera Sans Mono}
20 \usepackage{unicode-math}
21 \setmathfont[Scale=MatchUppercase]{libertinusmath-regular.otf}
22 \else
23 \usepackage[libertinus]{newtxmath}
24 \usepackage[scaled=0.78]{beramono}
25 \usepackage{bm}
26 \fi
27 \usepackage[verbose,
28 top=33mm,
29 left=3.5cm, right=3.5cm,
30 marginparwidth=2.5cm,
31 height=21cm,
32 footskip=47.6pt,
33 headheight=17pt,
34 headsep=20.40001pt,
35 ]{geometry}
36 \setlength\parindent{1em}
37 \usepackage{microtype}
38 \usepackage{ragged2e}
39 \usepackage{hyphenat}
40 \usepackage{booktabs}
41 \usepackage{multicol}
42 \usepackage[svgnames]{xcolor}
43 \usepackage{longtable}
44 \usepackage{array}
45 \newcolumntype{L}[1]{%
46 >{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
47 \usepackage[listings, breakable, skins]{tcolorbox}%
48 \usetikzlibrary{arrows.meta}
49 \usetikzlibrary{shapes.geometric}
50 \usetikzlibrary{fit}
51 \usetikzlibrary{positioning}
52 \usepackage[style=ext-authoryear-iecomp, backend=biber, labelnumber]{biblatex}
53 \addbibresource{biblatex-examples.bib}
54 \addbibresource{biblatex-ext-examples.bib}
55 \usepackage{biblatex-ext-tabular}
56 \usepackage{biblatex-ext-oa}
57 % Normally, the following packages should not be loaded explicitly.
58 % Instead, one of them (and *only* one) should be loaded via
59 % biblatex-ext-oa's options.
60 \usepackage{biblatex-ext-oasymb-tikz}
61 % We need to undefine \oasymbol to be able to load the other packages as well.
62 \undef\oasymbol
63 \undef\DefineOASymbol
64 \usepackage{biblatex-ext-oasymb-l3draw}
65 % We need to undefine \oasymbol to be able to load the other packages as well.
66 \undef\oasymbol
67 \undef\DefineOASymbol
68 \usepackage{biblatex-ext-oasymb-pict2e}
69
70 \DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}
71 \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
72 \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}
73
74 \defbibenvironment{bibliographyNUM}
75 {\list
76 {\printtext[labelnumberwidth]{%
77 \printfield{labelprefix}%
78 \printfield{labelnumber}}}
79 {\setlength{\labelwidth}{\labelnumberwidth}%
80 \setlength{\leftmargin}{\labelwidth}%
81 \setlength{\labelsep}{\biblabelsep}%
82 \addtolength{\leftmargin}{\labelsep}%
83 \setlength{\itemsep}{\bibitemsep}%
84 \setlength{\parsep}{\bibparsep}}%
85 \renewcommand*{\makelabel}[1]{\hss##1}}
86 {\endlist}
87 {\item}
88
89 \newcounter{extblxdoc@examplebib}
90
91 \makeatletter
92 \defbibcheck{examplebib}{%
93 \xifinlist{\thefield{entrykey}}{\extblxdoc@examplebib@list}
94 {}
95 {\skipentry}}
96
97 \newcommand*{\extblxdoc@fixexamplelinks}{%
98 \protected\def\blx@anchor{%
99 \xifinlist{\the\c@refsection @\the\c@extblxdoc@examplebib
100 @\abx@field@entrykey}{\blx@anchors}
101 {}
102 {\listxadd\blx@anchors{\the\c@refsection @\the\c@extblxdoc@examplebib
103 @\abx@field@entrykey}%
104 \hyper@natanchorstart{\the\c@refsection @\the\c@extblxdoc@examplebib
105 @\abx@field@entrykey}%
106 \hyper@natanchorend}}%
107 \long\def\blx@bibhyperref[##1]##2{%
108 \blx@sfsave\hyper@natlinkstart{\the\c@refsection
109 @\the\c@extblxdoc@examplebib @##1}\blx@sfrest
110 ##2%
111 \blx@sfsave\hyper@natlinkend\blx@sfrest}%
112 }
113
114 \newcommand*{\exampleprintbib}[2][]{%
115 \nocite{#2}%
116 \let\extblxdoc@examplebib@list\empty
117 \def\do##1{\listeadd\extblxdoc@examplebib@list{\detokenize{##1}}}%
118 \docsvlist{#2}%
119 \AtNextBibliography{%
120 \stepcounter{extblxdoc@examplebib}%
121 \extblxdoc@fixexamplelinks}%
122 \printbibliography[check=examplebib, heading=none, #1]}
123
124 \newcommand*{\exampleprintbibtab}[1]{%
125 \nocite{#1}%
126 \let\extblxdoc@examplebib@list\empty
127 \def\do##1{\listeadd\extblxdoc@examplebib@list{\detokenize{##1}}}%
128 \docsvlist{#1}%
129 \AtNextBibliography{%
130 \stepcounter{extblxdoc@examplebib}%
131 \extblxdoc@fixexamplelinks}%
132 \printbibtabular[check=examplebib, heading=none]}
133
134
135 \usepackage{ltxdockit}
136 \usepackage{btxdockit}
137 \usepackage{cleveref}
138 \hypersetup{%
139 colorlinks=true,
140 allcolors=spot,
141 bookmarksopen=false,
142 bookmarksnumbered=false,
143 plainpages=false}
144
145 \definecolor{highlight1}{RGB}{240, 0, 0}
146 \definecolor{highlight2}{RGB}{0,153, 153}
147 \definecolor{spot}{rgb}{0,0.2,0.6}
148
149 \lstdefinestyle{extblxstylegeneral}{%
150 aboveskip = {0\p@ \@plus 6\p@},
151 belowskip = {0\p@ \@plus 6\p@},
152 tabsize = 2,
153 breaklines = true,
154 breakatwhitespace = true,
155 keepspaces = true,
156 escapeinside = {(*@}{@*)},
157 moredelim = {[is][\ttfamily\bfseries\color{highlight1}]{|}{|}},
158 moredelim = {[is][\ttfamily\bfseries\color{highlight1}]{|1}{1|}},
159 moredelim = {[is][\ttfamily\bfseries\color{highlight2}]{|2}{2|}},
160 }
161
162 \lstdefinelanguage{extBibTeX}{%
163 morekeywords=[1]{%
164 @article,@artwork,@audio,@bibnote,@book,@bookinbook,@booklet,%
165 @collection,@commentary,@customa,@customb,@customc,@customd,%
166 @custome,@customf,@inbook,@incollection,@inproceedings,%
167 @inreference,@image,@jurisdiction,@legal,@legislation,@letter,%
168 @dataset,
169 @manual,@misc,@movie,@music,@mvcollection,@mvreference,%
170 @mvproceedings,@mvbook,@online,@patent,@performance,@periodical,%
171 @proceedings,@reference,@report,@review,@set,@software,@standard,%
172 @suppbook,@suppcollection,@suppperiodical,@thesis,@unpublished,@video%
173 },
174 morekeywords=[2]{author,title,date,journal,volume,number,pages,doi,
175 eprint,eprinttype,eprintclass},
176 keywordstyle=[1]{\bfseries\spotcolor},
177 keywordstyle=[2]{\spotcolor},
178 sensitive=false,
179 }
180
181 \lstdefinestyle{extblxstylelatex}{%
182 language = {[LaTeX]TeX},
183 style = {extblxstylegeneral},
184 moretexcs = {
185 dimexpr,arraybackslash,newcolumntype,anchor,driver,plain,plainlang,
186 anchorlang,
187 thefield,bibstring,
188 addbibresource,
189 setlength,bibhang,addcomma,adddot,addperiod,addcolon,addspace,
190 addnbspace,
191 mkbibbold,mkbibemph,mkbibbrackets,mkbibparens,
192 usebibmacro,newbibmacro,renewbibmacro,setunit,newunit,printfield,printlist,
193 bibopenparen,bibcloseparen,bibopenbracket,bibclosebracket,
194 iflistundef,iffieldundef,ifnameundef,iffieldnums,
195 ExecuteBibliographyOptions,
196 defbibtabular,defbibtabulartwocolumn,defbibenvironment,
197 printbibliography,printbibtabular,
198 autocite,
199 DeclareFieldFormat,DeclareDelimFormat,
200 DeclareDelimcontextAlias,UndeclareDelimcontextAlias,
201 DeclareInnerCiteDelims,UndeclareInnerCiteDelims,DeclareInnerCiteDelimsAlias,
202 DeclareOuterCiteDelims,UndeclareOuterCiteDelims,DeclareOuterCiteDelimsAlias,
203 UndeclareCiteDelims,
204 introcitepunct,volnumdelim,maintitletitledelim,voltitledelim,sernumdelim,
205 jourvoldelim,
206 volnumdatedelim,locdatedelim,locpubdelim,publocdelim,pubdatedelim,
207 extradateonlycompcitedelim,introcitesep,introcitewidth,introcitebreak,
208 DeclareOpenAccessFieldUrl,DeclareOpenAccessEprintUrl,
209 DeclareOpenAccessEprintAlias,DeclareOpenAccessUrlFieldPriority},
210 }
211
212 \lstdefinestyle{extblxstylebibtex}{%
213 language = {extBibTeX},
214 style = {extblxstylegeneral},
215 }
216
217
218 \newcommand*{\highlight}[2][1]{\textcolor{highlight#1}{#2}}
219 \newcommand*{\highlightbf}[2][1]{\textcolor{highlight#1}{\textbf{#2}}}
220 \DeclareFieldFormat{highlight1}{\textcolor{highlight1}{#1}}
221 \DeclareFieldFormat{highlight2}{\textcolor{highlight2}{#1}}
222
223 \newtcolorbox{bibexample}[1][]{enhanced,
224 colframe=spot!75!black, colback=spot!5!white,
225 before title=\raggedright,
226 #1}
227 \newtcblisting{biblatexcode}{enhanced,
228 colframe=black!75!white, colback=black!5!white,
229 listing only,
230 frame hidden,
231 breakable,
232 listing style=extblxstylelatex}
233 \newtcblisting{bibtexfile}{enhanced,
234 colframe=black!75!white, colback=black!5!white,
235 listing only,
236 frame hidden,
237 breakable,
238 listing style = extblxstylebibtex}
239
240 \newtcbinputlisting{\inputexamplebibfile}[2][]{%
241 listing file={#2},
242 enhanced,
243 colframe=black!75!white, colback=black!5!white,
244 listing only,
245 frame hidden,
246 breakable,
247 listing style = extblxstylebibtex,
248 #1}
249
250 \newtcolorbox{warnbox}[1][]{%
251 enhanced,
252 before upper={
253 \parskip=0.5\baselineskip
254 \advance\parskip by 0pt plus 2pt
255 },
256 colframe=red, colback=red!5!white,
257 underlay={%
258 \path[draw=none] (interior.south east)
259 rectangle node {\warnsymbol}
260 ([xshift=15mm,yshift=.1cm]interior.north east);},
261 #1}
262
263 \newtcolorbox{remindbox}[1][]{%
264 enhanced,
265 before upper={
266 \parskip=0.5\baselineskip
267 \advance\parskip by 0pt plus 2pt
268 },
269 colframe=yellow, colback=yellow!5!white,
270 underlay={%
271 \path[draw=none] (interior.south east)
272 rectangle node {\dbendsymbol}
273 ([xshift=15mm,yshift=.1cm]interior.north east);},
274 #1}
275
276 \tikzset{
277 MWEcommentbox/.style={font=\sffamily\footnotesize, gray!60!darkgray},
278 }
279
280 \AtUsedriver*{%
281 \delimcontext{bib}%
282 \let\newblock\relax
283 \let\abx@macro@bibindex\@empty
284 \let\abx@macro@pageref\@empty}
285
286
287 % this is taken from ltxdockit.cls, which is not loaded
288 \newrobustcmd*{\fnurl}[1][]{\hyper@normalise\ltd@fnurl{#1}}
289 \def\ltd@fnurl#1#2{\footnote{#1\hyper@linkurl{\Hurl{#2}}{#2}}}
290
291 \newrobustcmd*{\email}{\hyper@normalise\ltd@email}
292 \def\ltd@email#1{\href{mailto:#1}{#1}}
293
294 % title
295 \providecommand*{\titlepage}{}
296 \providecommand*{\titlefont}{}
297 \renewrobustcmd*{\titlepage}[1]{\setkeys{ltd@ttp}{#1}}
298 \renewcommand*{\titlefont}{\bfseries}
299 \define@key{ltd@ttp}{title}{\def\ltd@title@title{#1}}
300 \define@key{ltd@ttp}{subtitle}{\def\ltd@title@subtitle{#1}}
301 \define@key{ltd@ttp}{url}{\def\ltd@title@url{#1}}
302 \define@key{ltd@ttp}{author}{\def\ltd@title@author{#1}}
303 \define@key{ltd@ttp}{email}{\def\ltd@title@email{#1}}
304 \define@key{ltd@ttp}{revision}{\def\ltd@title@revision{#1}}
305 \define@key{ltd@ttp}{date}{\def\ltd@title@date{#1}}
306
307 \providecommand*{\printtitlepage}{}
308 \renewrobustcmd*{\printtitlepage}{%
309 \begingroup
310 \centering\titlefont
311 \begingroup\LARGE
312 \ifundef\ltd@title@url
313 {\ltd@title@title}
314 {\href{\ltd@title@url}{\ltd@title@title}}%
315 \par
316 \endgroup
317 \vspace{0.25\baselineskip}
318 \begingroup\large
319 \ltd@title@subtitle\par
320 \endgroup
321 \expandafter\url\expandafter{\ltd@title@url}\par
322 \begin{multicols}{2}
323 \raggedleft
324 \ltd@title@author\par
325 \expandafter\email\expandafter{\ltd@title@email}\par
326 \raggedright
327 Version \ltd@title@revision\par\ltd@title@date
328 \end{multicols}
329 \endgroup}
330
331
332 \renewcommand\tableofcontents{%
333 \pdfbookmark[1]{\contentsname}{contents}%
334 \section*{\contentsname
335 \@mkboth{%
336 \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
337 \@starttoc{toc}%
338 }
339 \def\@starttoc#1{%
340 \begingroup
341 \begin{multicols}{2}
342 \makeatletter
343 \RaggedRight
344 \@input{\jobname.#1}%
345 \if@filesw
346 \expandafter\newwrite\csname tf@#1\endcsname
347 \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
348 \fi
349 \end{multicols}
350 \@nobreakfalse
351 \endgroup}
352
353 \newrobustcmd*{\tex}{\TeX}
354 \newrobustcmd*{\etex}{\mbox{e-TeX}}
355 \newrobustcmd*{\pdftex}{pdf\-\tex}
356 \newrobustcmd*{\xetex}{Xe\-\tex}
357 \newrobustcmd*{\luatex}{Lua\-\tex}
358 \newrobustcmd*{\latex}{\LaTeX}%{La\kern-0.07em TeX}
359 \newrobustcmd*{\pdflatex}{pdf\-\latex}
360 \newrobustcmd*{\xelatex}{Xe\-\latex}
361 \newrobustcmd*{\lualatex}{Lua\-\latex}
362 \newrobustcmd*{\miktex}{Mik\-\tex}
363 \newrobustcmd*{\texlive}{\tex~live}
364 \newrobustcmd*{\bibtex}{Bib\kern-0.07em TeX}
365 \newrobustcmd*{\lppl}{\latex{} Project Public License}
366 \newrobustcmd*{\pdf}{\acr{PDF}}
367 \newrobustcmd*{\utf}{\mbox{\acr{UTF}-8}}
368 \newrobustcmd*{\pgftikz}{PGF/Ti\emph{k}Z}
369
370 \pdfstringdefDisableCommands{%
371 \def\tex{TeX}%
372 \def\etex{e-TeX}%
373 \def\xetex{XeTeX}%
374 \def\latex{LaTeX}%
375 \def\xelatex{XeLaTeX}%
376 \def\bibtex{BibTeX}%
377 \def\lppl{LaTeX Project Public License}%
378 \def\pdf{PDF}%
379 \def\utf{UTF-8}%
380 }
381
382 \let\accentcolour\spotcolor
383
384 \newcommand*{\allsectionsfont}{\sffamily\accentcolour}
385
386 \renewcommand\section{\@startsection {section}{1}{\z@}%
387 {-3.5ex \@plus -1ex \@minus -.2ex}%
388 {2.3ex \@plus.2ex}%
389 {\normalfont\Large\bfseries\allsectionsfont}}
390 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
391 {-3.25ex\@plus -1ex \@minus -.2ex}%
392 {1.5ex \@plus .2ex}%
393 {\normalfont\large\bfseries\allsectionsfont}}
394 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
395 {-3.25ex\@plus -1ex \@minus -.2ex}%
396 {1.5ex \@plus .2ex}%
397 {\normalfont\normalsize\bfseries\allsectionsfont}}
398 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
399 {3.25ex \@plus1ex \@minus.2ex}%
400 {-1em}%
401 {\normalfont\normalsize\bfseries\allsectionsfont}}
402 \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
403 {3.25ex \@plus1ex \@minus .2ex}%
404 {-1em}%
405 {\normalfont\normalsize\bfseries\allsectionsfont}}
406
407 % from KOMA-Script
408 \newcommand*{\@list@extra}{%
409 \ifdim\parskip>\z@
410 \topsep\z@
411 \parsep\parskip
412 \itemsep\z@
413 \fi
414 }
415 \appto\@listi{\@list@extra}
416 \appto\@listii{\@list@extra}
417 \appto\@listiii{\@list@extra}
418 \appto\@listiv{\@list@extra}
419 \appto\@listv{\@list@extra}
420 \appto\@listvi{\@list@extra}
421
422 \renewcommand*{\verbatimfont}{\ttfamily}
423 \renewcommand*{\displayverbfont}{\ttfamily}
424 \renewcommand*{\marglistfont}{\accentcolour\sffamily\small}
425 \renewcommand*{\margnotefont}{\sffamily\small}
426 \renewcommand*{\optionlistfont}{\accentcolour\sffamily\displayverbfont}
427 \renewcommand*{\ltxsyntaxfont}{\ttfamily}
428 \renewcommand*{\ltxsyntaxlabelfont}{\accentcolour\displayverbfont}
429 \renewcommand*{\changelogfont}{\normalfont}
430 \renewcommand*{\changeloglabelfont}{\accentcolour\sffamily\bfseries}
431 \newcommand*{\stylelistlabelfont}{\accentcolour\sffamily\small}
432 \newcommand*{\bibfieldformatfont}{\sffamily}
433 \newcommand*{\bibfieldformatlabelfont}{\accentcolour\bibfieldformatfont\small}
434
435 \newenvironment*{stylelist}
436 {\list{}{%
437 \setlength{\labelwidth}{\marglistwidth}%
438 \setlength{\labelsep}{\marglistsep}%
439 \setlength{\leftmargin}{0pt}%
440 \renewcommand*{\makelabel}[1]{\hss\stylelistlabelfont##1}}%
441 \def\styleitem##1{%
442 \item[{##1}]%
443 \ltd@pdfbookmark{##1}{##1}}}
444 {\endlist}
445
446 \newenvironment*{bibfieldformatlist}
447 {\list{}{%
448 \setlength{\labelwidth}{\marglistwidth}%
449 \setlength{\labelsep}{\marglistsep}%
450 \setlength{\leftmargin}{0pt}%
451 \renewcommand*{\makelabel}[1]{\hss\bibfieldformatlabelfont##1}}%
452 \def\bibfieldformatitem##1{%
453 \item[{##1}]%
454 \ltd@pdfbookmark{##1}{##1}}}
455 {\endlist}
456
457 \newenvironment*{keymarglistbook}
458 {\marglist
459 \setlength{\itemsep}{0pt}%
460 \raggedright
461 \let\@@item\item
462 \def\keyitem[##1]{%
463 \@@item[{##1}]%
464 \ltd@pdfbookmark{##1}{##1}}}
465 {\endmarglist}
466
467 % modified for correct measurements
468 \def\ltd@option@i#1#2#3#4[#5]{%
469 \item[#2]%
470 \ltd@pdfbookmark{#1}{#1}%
471 \begingroup\raggedright
472 \ltd@textverb{=}%
473 \settowidth\@tempdimb{\ltd@textverb{=}}%
474 \settowidth\@tempdimc{\optionlistfont#2}%
475 \ifdim\@tempdimc>\marglistwidth
476 \@tempdimc=\dimexpr\@tempdimc-\marglistwidth\relax
477 \else
478 \@tempdimc=0pt
479 \fi
480 \@tempdima=\dimexpr\linewidth-\@tempdimb-\@tempdimc\relax
481 \ifblank{#4}
482 {}
483 {\settowidth\@tempdimb{default: #4}%
484 \@tempdima=\dimexpr\@tempdima-\@tempdimb-2em\relax}%
485 \parbox[t]{\@tempdima}{\raggedright #3}%
486 \ifblank{#4}
487 {}
488 {\hfill default:~#4}%
489 \ifblank{#5}
490 {}
491 {\marginpar{\margnotefont #5}}%
492 \par\endgroup
493 \nobreak\vspace{\itemsep}}
494
495 % inject a label additional to the bookmark so we can link stuff
496 \let\exltd@pdfbookmark\ltd@pdfbookmark
497 \def\ltd@pdfbookmark#1#2{%
498 \phantomsection\label{exltd@itm@#1}%
499 \exltd@pdfbookmark{#1}{#2}}
500
501 \blx@inputonce{ext-biblatex-aux.def}{auxiliary code for ext-biblatex}
502 {}{}{}{}
503 \newcommand*{\biblatexversion}{\extblx@requiredbiblatexversion}
504 \def\exltd@isofydate#1/#2/#3{#1-#2-#3}
505 \newcommand*{\biblatexdate}{\extblx@requiredbiblatexdate}
506 \expandafter\def\expandafter\biblatexdate\expandafter{%
507 \expandafter\exltd@isofydate\extblx@requiredbiblatexdate}
508
509 \AtEndPreamble{%
510 \deflength{\marglistwidth}{(\oddsidemargin+2cm)*85/100}}
511
512 \newcommand{\tikzmark}[2][]{\tikz[overlay,remember picture] \node (#2) {#1};}
513
514 \newcommand*{\tikztextmark}[2]{%
515 \tikz[remember picture,baseline,inner sep=0pt]\node [anchor=base] (#1) {#2};}
516
517 % *{<cmd>}{<x-shift>}{<y-shift>}
518 % unstarred version for commands defined by biblatex-ext
519 % starred version for standard biblatex commands
520 \def\punctarrow{%
521 \@ifstar\punctarrow@ii\punctarrow@i}
522
523 \def\punctarrow@i{%
524 \def\punctarrow@cmdfont{\bfseries}%
525 \def\punctarrow@hyperref##1##2{%
526 \hyperref[exltd@itm@##1]{##2}%
527 }%
528 \punctarrow@iii
529 }
530
531 \def\punctarrow@ii{
532 \def\punctarrow@cmdfont{\itshape}%
533 \let\punctarrow@hyperref\@secondoftwo
534 \punctarrow@iii
535 }
536
537 \def\punctarrow@iii#1#2#3{%
538 \ifdimcomp{#2}{<}{0pt}
539 {\def\punctarrow@nodeanchor{east}}
540 {\def\punctarrow@nodeanchor{west}}%
541 \draw[spot,thick,latex-,rounded corners] (#1) |- ++ (#2,#3)
542 node[anchor=\punctarrow@nodeanchor,text = black]
543 {\punctarrow@hyperref{#1}{\punctarrow@cmdfont\cmd{#1}}};%
544 }
545
546 % By Stefan Kottwitz, see https://tex.stackexchange.com/a/799/35864
547 \newcommand*\ttjustify{%
548 \fontdimen2\font=0.4em% interword space
549 \fontdimen3\font=0.2em% interword stretch
550 \fontdimen4\font=0.1em% interword shrink
551 \fontdimen7\font=0.1em% extra space
552 \hyphenchar\font=`\-% allowing hyphenation
553 }
554
555 % no \mbox here, we may have to break things
556 \renewrobustcmd*{\sty}[1]{{\verbatimfont\ttjustify #1}}
557 \newrobustcmd*{\blxstyle}[1]{{\verbatimfont\ttjustify #1}}
558 \newrobustcmd*{\filename}[1]{{\verbatimfont\ttjustify #1}}
559 \renewrobustcmd*{\bibfield}[1]{\sty{#1}}
560 \renewrobustcmd*{\opt}[1]{\sty{#1}}
561 \newrobustcmd*{\optval}[1]{\sty{#1}}
562 \newrobustcmd*{\bibmacro}[1]{\sty{#1}}
563 \renewrobustcmd*{\bibtype}[1]{\sty{@#1}}
564 \renewrobustcmd*{\cmd}[1]{\sty{\textbackslash #1}}
565 \let\cs\cmd
566 \newrobustcmd*{\bibfieldformat}[1]{{\bibfieldformatfont #1}}
567
568 \newrobustcmd*{\gencode}[1]{{\verbatimfont\ttjustify #1}}
569
570 \def\exltd@buildhypercmd@i#1{%
571 \expandafter\newrobustcmd\expandafter*\expandafter
572 {\csname hyper#1@i\endcsname}[2][]{%
573 \hyperref[exltd@itm@##1]{\csname #1\endcsname{##2}}}
574 \csdef{hyper#1}{\@dblarg{\csname hyper#1@i\endcsname}}}
575
576 \def\exltd@buildhypercmd{\forcsvlist{\exltd@buildhypercmd@i}}
577
578 \exltd@buildhypercmd{cmd,opt,bibmacro,len,blxstyle,sty,bibfield,bibfieldformat,
579 filename}
580
581 \newrobustcmd*{\hyperkvopt}[2]{{%
582 \verbatimfont\hyperref[exltd@itm@#1]{#1}\penalty\@M
583 \hskip 0em plus 0.15em\relax
584 =\penalty\hyphenpenalty
585 \hskip 0em plus 0.15em\relax #2}}
586
587 \newcommand*{\ctan}{\mkbibacro{CTAN}}
588 \newcommand*{\gitbaseurl}{https://github.com/moewew/biblatex-ext}
589 \newcommand*{\extblxversion}{0.21}
590 \newcommand*{\biber}{Biber}
591 \newcommand*{\gitissuelink}[1]{%
592 \href{\gitbaseurl/issues/#1}{issue \##1 on github}}
593
594 \newrobustcmd*{\CSdelim}{%
595 \textcolor{spot}{\margnotefont\footnotesize context sensitive}}
596 \newrobustcmd*{\CSdelimMark}{%
597 \leavevmode\marginpar{\CSdelim}}
598
599 \newcommand*{\mpdl}{$\langle$}
600 \newcommand*{\mpdr}{$\rangle$}
601
602 \iftutex
603 \newcommand*{\hmpdl}{$\langle$}
604 \newcommand*{\hmpdr}{$\rangle$}
605 \else
606 \newcommand*{\hmpdl}{$\bm{\langle}$}
607 \newcommand*{\hmpdr}{$\bm{\rangle}$}
608 \fi
609
610 \def\textvisiblespace{%
611 \raisebox{-2.2pt}{%
612 \mbox{\kern.04em\vrule \@height.5ex \@width.12ex}%
613 \vbox{\hrule \@width.2em \@height.12ex}%
614 \hbox{\vrule \@height.5ex \@width.12ex}%
615 \kern.04em}}
616
617 % Bourbaki dangerous bend symbol by Heiko Oberdiek
618 % https://tex.stackexchange.com/users/16967/heiko-oberdiek
619 % https://tex.stackexchange.com/a/262510/35864
620 \newcommand*{\dbendsymbol@tikz}{%
621 \begin{tikzpicture}[
622 line cap=but,
623 line join=round,
624 x=1.2em,
625 line width=2pt,
626 y=2*(height("Z")-\pgflinewidth)*(1-sin(10)),
627 rotate=-10,
628 rounded corners=1.5pt,]
629 \draw (.5,.5) node[scale=2,draw,diamond,fill=yellow,color=yellow] {};
630 \draw (1, 0) -- (0, 0) -- (1, 1) -- (0, 1);
631 \end{tikzpicture}}
632
633 \newsavebox{\dbendsymbol@box}
634 \sbox{\dbendsymbol@box}{\dbendsymbol@tikz}
635 \newcommand*{\dbendsymbol}{\usebox{\dbendsymbol@box}}
636
637 \newcommand*{\warnsymbol@tikz}{%
638 \begin{tikzpicture}[
639 line cap=but,
640 line join=round,
641 line width=2pt,
642 rounded corners=1.5pt,]
643 \node[regular polygon, regular polygon sides=3,
644 scale=1.2, inner sep=-.22em,
645 draw=red]
646 {\raisebox{.26em}{\LARGE\bfseries !}};
647 \end{tikzpicture}}
648
649 \newsavebox{\warnsymbol@box}
650 \sbox{\warnsymbol@box}{\warnsymbol@tikz}
651 \newcommand*{\warnsymbol}{\usebox{\warnsymbol@box}}
652
653 \makeatother
654
655 \titlepage{%
656 title = {The \sty{biblatex-ext} Bundle},
657 subtitle = {Extensions for the \sty{biblatex} standard styles},
658 url = {\gitbaseurl},
659 author = {Moritz Wemheuer},
660 email = {[email protected]},%
661 revision = {\extblxversion},
662 date = {\DTMDate{2026-05-19}},
663 }
664
665 \hypersetup{%
666 pdftitle = {The biblatex-ext Bundle},
667 pdfsubject = {Extensions for the \sty{biblatex} standard styles},
668 pdfauthor = {Moritz Wemheuer},
669 pdfkeywords = {latex, biblatex, bibtex, bibliography, references, citation},
670 }
671
672 \hyphenation{%
673 star-red
674 un-star-red
675 bib-lio-gra-phy
676 white-space
677 bib-open-paren
678 bib-close-paren
679 bib-open-bracket
680 bib-close-bracket
681 main-title-after-title
682 jour-vol-delim
683 in-name-before-title
684 tikz-picture
685 Define-OA-Symbol
686 }
687
688
689 \begin{document}
690
691 \printtitlepage
692 \tableofcontents
693
694 \section{Introduction}\label{sec:int}
695 \subsection{About}
696 The \sty{biblatex-ext} bundle provides an extended version of the standard
697 styles that come with \sty{biblatex}.
698 For each standard style this bundle provides a style with the same name
699 prefixed with \blxstyle{ext-} which can be used as a drop-in replacement for the
700 standard style~-- for example, the replacement for \blxstyle{authoryear-icomp}
701 is called \hyperblxstyle{ext-authoryear-icomp}.
702
703 The aim of the styles of this bundle is to offer a simple interface to change
704 some of the stylistic decisions made for the standard styles that would
705 otherwise need cumbersome and tedious redefinitions.
706 Additionally, some customisation features that were not deemed appropriate
707 for inclusion in the \sty{biblatex} kernel are provided.
708 Other than that the styles are as close to the standard styles as possible.
709 They do not attempt to offer options or commands for customisations that
710 are already fairly simple to achieve with the tools provided by the standard
711 styles.\footnote{Please be gentle and allow for a lot of wiggle room for what
712 exactly \enquote{simple} means. And don't get mad if the principle is not
713 followed at all times and the occasional solution for things that already are
714 \enquote{simple enough} pop up here and there.}
715
716 The initial motivation for this bundle was what has now become the option
717 \hyperopt{innamebeforetitle}.
718 It is fairly straighforward to print the name of the editor of an
719 \bibtype{incollection} before the \bibfield{booktitle}.
720 But if one does not want to resort to clever tricks,%
721 \footnote{See \url{https://tex.stackexchange.com/q/122218/} and
722 \url{https://tex.stackexchange.com/q/173638/} for example.}
723 the modifications needed to do this in a stable, safe and clean manner by
724 redefining the bibliography drivers can easily amass hundred lines of code~--
725 code you may not want to see in your preamble.
726 Some contributed \sty{biblatex} styles already place the editor in the
727 desired position, but you may not want to commit to the other changes implied
728 by switching to one of those styles.
729 Especially styles written for the sole purpose of implementing the requirements
730 of a particular style guide may have to go to great lengths to do so and are
731 therefore not as easily modified as the standard styles.
732 The styles of this bundle, on the other hand, try to stay as close to the
733 standard styles as possible both in output and implementation to allow you
734 to customise the styles with minimum additional effort over the standard styles.
735
736
737 A few words of warning:
738 The styles of this bundle are only really useful if you want to use one of their
739 features to avoid having to go through the lengthy and tedious redefinitions the
740 standard styles would require.
741 Before you get involved in modifying the standard styles or one of the styles
742 of this bundle, you may want to have a look at the host of other styles
743 available for \sty{biblatex},\fnurl{https://www.ctan.org/topic/biblatex}
744 maybe you are lucky and the style you are looking for has already been
745 implemented by someone else.
746 As was the intention, most methods to modify the standard styles are also
747 applicable to the styles of this bundle, but you may break some of their
748 features if you happen to modify something that the \blxstyle{ext-} styles
749 redefine themselves.
750 While many contributed \sty{biblatex} styles are examples of good \sty{biblatex}
751 style coding, this cannot be said of all of the files included in this bundle.
752 Especially the citation styles for compact citations have to work harder
753 to implement the citation delimiter feature properly.
754 So if you want to get inspired for your \sty{biblatex} coding, be warned that
755 terrible things lurk in the \filename{.cbx} files.
756 The standard \filename{.cbx} files will give you a much better impression of how
757 things should be done.
758
759
760 \subsection{Requirements}\label{sec:req}
761 The use of the styles requires a current version of the \sty{biblatex} package.
762 At the time of writing the latest version of \sty{biblatex} is
763 \biblatexversion{} (dated \biblatexdate),
764 that version is required for the styles to work properly.
765 A warning will be issued if you use an older version.
766 You may choose to ignore that warning, but the styles cannot be guaranteed to
767 work properly in that case:
768 you might get other warnings or errors, and some features of the style might
769 just fail silently.
770
771 Use of the \biber{} backend is strongly encouraged.
772 Most of the new features of this bundle do not require \biber{} explicitly in
773 their implementation, but many \sty{biblatex} standard features only work
774 properly with \biber{}.
775
776 \subsection{Compatibility with earlier versions}\label{sec:backw}
777 In an ideal world all changes to the styles in this bundle would be fully
778 backwards compatible. Unfortunately we do not live in this ideal world.
779 Most changes to this bundle should introduce new features that have little
780 relevant impact on existing functionality. But the occasional change
781 may have more lasting consequences and may cause existing customisations to
782 fail.
783 In fact all changes have the potential to break someone's code, since
784 \sty{biblatex} styles have little to no distinction between public and internal
785 code.
786 Still, some changes are more likely to be problematic than others and those
787 should be kept to a minimum. They can, however, be required to move development
788 forward.
789
790 If possible, backwards compatiblity measures that allow old code to
791 continue to work are in place. Sometimes that is not feasible and in those
792 cases the next best solution is to warn if old code is used, so please check
793 the log file for warnings~-- especially after an update.
794 But at times not even that is possible, so it is always a good idea to consult
795 the change history after an update and to examine the output with extra
796 scrutiny.
797 Higher-level changes are found in the revision history in \cref{sec:log},
798 more technical changes and commentary can be found in \filename{CHANGES.md},
799 the full set of changes can be investigated by comparing the tagged and
800 publicly available source code.
801
802 \subsection{Installation}\label{sec:install}
803 This style bundle is available on \ctan.%
804 \fnurl{https://ctan.org/pkg/biblatex-ext}
805 The current release is also available in \miktex{} and \texlive{} 2018 or
806 newer.
807 If at all possible you should install this bundle via your \tex{} distribution
808 (using \miktex{} Console\fnurl{https://miktex.org/howto/miktex-console} or
809 \gencode{tlmgr} for \texlive
810 \fnurl{https://www.tug.org/texlive/pkginstall.html}).
811 If you must install this package manually, get the files from \ctan{}
812 and install the \filename{.bbx}, \filename{.cbx}, \filename{.def},
813 \filename{.sty} and \filename{.lua} files preferably to
814 \path{tex/latex/biblatex-ext} of your local or home \TeX{} tree%
815 \fnurl{https://texfaq.org/FAQ-inst-wlcf}, the other
816 files (\path{CHANGES.md}, \path{README.md}, \path{biblatex-ext.tex},
817 \path{biblatex-ext.pdf} and \path{biblatex-ext-examples.bib}) go into
818 \path{doc/latex/biblatex-ext}. You may have to refresh your file name database
819 afterwards, so \tex{} can find the files.
820
821 \subsection{License}\label{sec:license}
822 Permission is granted to copy, distribute and\slash or modify this software
823 under the terms of the \lppl, version 1.3c%
824 \fnurl{https://www.latex-project.org/lppl/lppl-1-3c.txt}
825 or (at your option) any later version%
826 \fnurl{https://www.latex-project.org/lppl.txt}.
827 This bundle is maintained by Moritz Wemheuer (\textcopyright 2017--2026).
828
829
830 \subsection{Feedback}\label{sec:feedback}
831 You can use the \sty{biblatex-ext} project page on GitHub%
832 \footnote{\url{\gitbaseurl}} to report bugs and
833 submit suggestions and feature requests, or you can do so via email.
834
835 If you do not want to report a bug or request a feature, but are simply in need
836 of assistance, you might want to consider posting your question on the
837 \texttt{comp.text.tex} newsgroup or \tex{}~--~\latex{} Stack Exchange.%
838 \fnurl{https://tex.stackexchange.com/questions/tagged/biblatex}
839 If after a consultation on one of these sites it turns out you have happened
840 upon a bug or that you can formulate a request for a new feature that could be
841 useful, please head over to GitHub or send me an email.
842
843 \section{Use}\label{sec:use}
844 The \sty{biblatex-ext} bundle is a collection of \sty{biblatex} style files.
845 You can load the styles exactly as you would load the standard styles:
846 \begin{biblatexcode}
847 \usepackage[style=(*@\prm{style}@*)]{biblatex}
848 \end{biblatexcode}
849 The naming of the styles follows the scheme
850 \mbox{\blxstyle{ext-}\prm{standard style}}, e.g.,
851 the style corresponding to \blxstyle{authoryear-icomp} is called
852 \hyperblxstyle{ext-authoryear-icomp}.
853
854 This manual assumes familiarity with the concepts of \sty{biblatex} and does
855 not attempt to explain any of the standard \sty{biblatex} features, so you may
856 want to have the \sty{biblatex} documentation%
857 \fnurl{http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf}
858 at hand to fully appreciate what is going on.
859 If you are new to \sty{biblatex} the three hundred odd pages of the manual
860 can be hard to stomach at first, so you may want to have a look at a more
861 gentle introduction.
862 Of the many introductory texts and tutorials available on the internet%
863 \fnurl{https://tex.stackexchange.com/q/13509/35864}
864 the author particularly likes
865 Knut Hegna and Dag Langmyhr's \emph{Local Guide to \sty{biblatex}}%
866 \fnurl{https://www.mn.uio.no/ifi/tjenester/it/hjelp/latex/biblatex-guide.pdf}
867 and Paul Stanley's \emph{\sty{biblatex}~-- An Easier Read}%
868 \fnurl{https://github.com/PaulStanley/biblatex-tutorial/releases}.
869 French speakers may want to consider Maïeul Rouquette's
870 \foreignlanguage{french}{\emph{(Xe)\LaTeX{} Appliqué aux sciences humaines}}
871 available on \ctan\fnurl{https://ctan.org/pkg/latex-sciences-humaines}.
872 If you read German you may be interested in Dominik Waßenhoven's two-part
873 series \foreignlanguage{ngerman}{\emph{Bibliographien erstellen mit
874 \sty{biblatex}}} in \foreignlanguage{ngerman}{\emph{Die \TeX nische Komödie}}
875 2/2008\fnurl{https://archiv.dante.de/DTK/PDF/komoedie_2008_2.pdf} (pp.~53--75)
876 and 4/2008\fnurl{https://archiv.dante.de/DTK/PDF/komoedie_2008_4.pdf} (pp.~31--51).
877 Please keep in mind that some of these texts were written a while ago and
878 that \sty{biblatex} is actively developed: technical details may have changed
879 and new features make some things easier.
880
881 \clearpage
882 \section{Styles}\label{sec:styles}
883 This bundle provides an extended version of each standard style as well as a
884 few new styles.
885 \subsection{Standard styles}\label{sec:styles:standard}
886 Please refer to the \sty{biblatex} documentation%
887 \fnurl{http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf}
888 and the style examples%
889 \fnurl{http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/}
890 for a more detailed description of each standard style.
891 The relations between the styles are exactly as in their standard counterparts.
892 The \blxstyle{ext-} styles only build on top of the standard files.
893 \begin{stylelist}
894 \styleitem{ext-numeric}
895 An extended version of the standard \blxstyle{numeric} style for citations with
896 numeric labels.
897 \begin{bibexample}
898 \begin{lstlisting}[style=extblxstylelatex]
899 \usepackage[style=ext-numeric]{biblatex}
900 \end{lstlisting}
901 \tcblower
902 [1, 2, 5, 6, 7]
903 \end{bibexample}
904
905 \styleitem{ext-numeric-comp}
906 An extended version of the standard \blxstyle{numeric-comp} style.
907 Similar to \blxstyle{ext-numeric}, but citation labels are
908 compressed to give \enquote{[1--3]} instead of \enquote{[1, 2, 3]}.
909 \begin{bibexample}
910 \begin{lstlisting}[style=extblxstylelatex]
911 \usepackage[style=ext-numeric-comp]{biblatex}
912 \end{lstlisting}
913 \tcblower
914 [1, 2, 5--7]
915 \end{bibexample}
916
917 \styleitem{ext-numeric-verb}
918 An extended version of the standard \blxstyle{numeric-verb} style.
919 This style is similar to the \blxstyle{numeric} style, but each citation label
920 is in its own set of brackets: \enquote{[1], [2], [3]}.
921 \begin{bibexample}
922 \begin{lstlisting}[style=extblxstylelatex]
923 \usepackage[style=ext-numeric-verb]{biblatex}
924 \end{lstlisting}
925 \tcblower
926 [1], [3], [5], [6], [7]
927 \end{bibexample}
928
929 \styleitem{ext-alphabetic}
930 An extended version of the standard \blxstyle{alphabetic} style for citations
931 with alphabetic labels derived from author name and year.
932 \begin{bibexample}
933 \begin{lstlisting}[style=extblxstylelatex]
934 \usepackage[style=ext-alphabetic]{biblatex}
935 \end{lstlisting}
936 \tcblower
937 [SR98, Knu86c]
938 \end{bibexample}
939
940 \styleitem{ext-alphabetic-verb}
941 An extended version of the standard \blxstyle{alphabetic-verb} style.
942 This style is based on \blxstyle{ext-alphabetic}, but like
943 \blxstyle{ext-numeric-verb} places each citation label in its own pair of
944 brackets: \enquote{[SR98], [Knu86c]}.
945 \begin{bibexample}
946 \begin{lstlisting}[style=extblxstylelatex]
947 \usepackage[style=ext-alphabetic-verb]{biblatex}
948 \end{lstlisting}
949 \tcblower
950 [SR98], [Knu86c]
951 \end{bibexample}
952
953 \styleitem{ext-authoryear}
954 An extended version of the standard \blxstyle{authoryear} style for citations
955 using author name and year.
956 \begin{bibexample}
957 \begin{lstlisting}[style=extblxstylelatex]
958 \usepackage[style=ext-authoryear]{biblatex}
959 \end{lstlisting}
960 \tcblower
961 Sigfridsson and Ryde 1998
962 \end{bibexample}
963
964 \styleitem{ext-authoryear-comp}
965 An extended version of the standard \blxstyle{authoryear-comp} style.
966 The style is based on the author-year citations of \blxstyle{ext-authoryear},
967 but several works by the same author are compressed by not displaying the
968 author multiple times: \enquote{Knuth 1984, 1986} instead of
969 \enquote{Knuth 1984; Knuth 1986}.
970 \begin{bibexample}
971 \begin{lstlisting}[style=extblxstylelatex]
972 \usepackage[style=ext-authoryear-comp]{biblatex}
973 \end{lstlisting}
974 \tcblower
975 Knuth 1984, 1986
976 \end{bibexample}
977
978 \styleitem{ext-authoryear-ibid}
979 An extended version of the standard \blxstyle{authoryear-ibid} style.
980 This style is similar to \blxstyle{ext-authoryear}, but repeated citations are
981 replaced with \enquote{ibidem}.
982 \begin{bibexample}
983 \begin{lstlisting}[style=extblxstylelatex]
984 \usepackage[style=ext-authoryear-ibid]{biblatex}
985 \end{lstlisting}
986 \tcblower
987 Knuth 1984\quad ibid.
988 \end{bibexample}
989
990 \styleitem{ext-authoryear-icomp}
991 An extended version of the standard \blxstyle{authoryear-icomp} style.
992 This style combines the two styles \blxstyle{ext-authoryear-comp} and
993 \blxstyle{ext-authoryear-ibid}.
994 \begin{bibexample}
995 \begin{lstlisting}[style=extblxstylelatex]
996 \usepackage[style=ext-authoryear-icomp]{biblatex}
997 \end{lstlisting}
998 \tcblower
999 Knuth 1984, 1986 \quad Sigfridsson and Ryde 1998 \quad ibid.
1000 \end{bibexample}
1001
1002 \styleitem{ext-authortitle}
1003 An extended version of the standard \blxstyle{authortitle} style for citations
1004 by author and title.
1005 \begin{bibexample}
1006 \begin{lstlisting}[style=extblxstylelatex]
1007 \usepackage[style=ext-authortitle]{biblatex}
1008 \end{lstlisting}
1009 \tcblower
1010 Maron, \emph{Animal Triste}
1011 \end{bibexample}
1012
1013 \styleitem{ext-authortitle-comp}
1014 An extended version of the standard \blxstyle{authortitle-comp} style.
1015 This style is based on \blxstyle{ext-authortitle} and compresses several
1016 citations by the same author just like \blxstyle{ext-author\-year-comp}:
1017 \enquote{Aristotle, \emph{Physics}, \emph{Poetics}} instead of
1018 \enquote{Aristotle, \emph{Physics}; Aristotle, \emph{Poetics}}.
1019 \begin{bibexample}
1020 \begin{lstlisting}[style=extblxstylelatex]
1021 \usepackage[style=ext-authortitle-comp]{biblatex}
1022 \end{lstlisting}
1023 \tcblower
1024 Aristotle, \emph{Physics}, \emph{Poetics}
1025 \end{bibexample}
1026
1027 \styleitem{ext-authortitle-ibid}
1028 An extended version of the standard \blxstyle{authortitle-ibid} style.
1029 This style is similar to \blxstyle{ext-authortitle}, but replaces repeated
1030 citations of the same work with \enquote{ibidem}.
1031 \begin{bibexample}
1032 \begin{lstlisting}[style=extblxstylelatex]
1033 \usepackage[style=ext-authortitle-ibid]{biblatex}
1034 \end{lstlisting}
1035 \tcblower
1036 Maron, \emph{Animal Triste}\quad ibid.
1037 \end{bibexample}
1038
1039 \styleitem{ext-authortitle-icomp}
1040 An extended version of the standard \blxstyle{authortitle-icomp} style.
1041 This style combines \blxstyle{ext-authortitle-comp} and
1042 \blxstyle{ext-authortitle-ibid}.
1043 \begin{bibexample}
1044 \begin{lstlisting}[style=extblxstylelatex]
1045 \usepackage[style=ext-authortitle-icomp]{biblatex}
1046 \end{lstlisting}
1047 \tcblower
1048 Aristotle, \emph{Physics}, \emph{Poetics}\quad Maron, \emph{Animal Triste}\quad
1049 ibid.
1050 \end{bibexample}
1051
1052 \styleitem{ext-authortitle-terse}
1053 An extended version of the standard \blxstyle{authortitle-terse} style.
1054 This style is similar to \blxstyle{ext-authortitle}, but the title is omitted
1055 in citations if there is only one work by the relevant author.
1056 \begin{bibexample}
1057 \begin{lstlisting}[style=extblxstylelatex]
1058 \usepackage[style=ext-authortitle-terse]{biblatex}
1059 \end{lstlisting}
1060 \tcblower
1061 Sigfridsson and Ryde \quad Aristotle, \emph{Physics}; Aristotle, \emph{Poetics}
1062 \end{bibexample}
1063
1064 \styleitem{ext-authortitle-tcomp}
1065 An extended version of the standard \blxstyle{authortitle-tcomp} style.
1066 This style combines \blxstyle{ext-authortitle-terse} and
1067 \blxstyle{ext-authortitle-comp}.
1068 \begin{bibexample}
1069 \begin{lstlisting}[style=extblxstylelatex]
1070 \usepackage[style=ext-authortitle-tcomp]{biblatex}
1071 \end{lstlisting}
1072 \tcblower
1073 Sigfridsson and Ryde \quad Aristotle, \emph{Physics}, \emph{Poetics}
1074 \end{bibexample}
1075
1076 \styleitem{ext-authortitle-ticomp}
1077 An extended version of the standard \blxstyle{authortitle-ticomp} style.
1078 This style combines \blxstyle{ext-authortitle-terse},
1079 \blxstyle{ext-authortitle-comp} and \blxstyle{ext-authortitle-ibid}.
1080 \begin{bibexample}
1081 \begin{lstlisting}[style=extblxstylelatex]
1082 \usepackage[style=ext-authortitle-ticomp]{biblatex}
1083 \end{lstlisting}
1084 \tcblower
1085 Aristotle, \emph{Physics}, \emph{Poetics} \quad Sigfridsson and Ryde \quad ibid.
1086 \end{bibexample}
1087
1088 \styleitem{ext-verbose}
1089 An extended version of the standard \blxstyle{verbose} style.
1090 This style shows the full bibliographic reference the first time a work is
1091 cited.
1092
1093 \styleitem{ext-verbose-ibid}
1094 An extended version of the standard \blxstyle{verbose-ibid} style.
1095 Based on \blxstyle{ext-verbose}, repeated citations to the same work are
1096 replaced with \enquote{ibidem}.
1097
1098 \styleitem{ext-verbose-note}
1099 An extended version of the standard \blxstyle{verbose-note} style.
1100 Based on \blxstyle{ext-verbose} and intended for use in footnotes, subsequent
1101 citations link back to the footnote the entry was cited at first and in full.
1102
1103 \styleitem{ext-verbose-inote}
1104 An extended version of the standard \blxstyle{verbose-inote} style.
1105 Similar to \blxstyle{verbose-note}, but repeated citations to the same work are
1106 replaced with \enquote{ibidem}.
1107
1108 \styleitem{ext-verbose-trad1}
1109 An extended version of the standard \blxstyle{verbose-trad1} style.
1110 This style makes extensive use of scholarly abbreviations and is otherwise
1111 similar to \blxstyle{ext-verbose}.
1112
1113 \styleitem{ext-verbose-trad2}
1114 An extended version of the standard \blxstyle{verbose-trad2} style.
1115 The style is similar to \blxstyle{ext-verbose-inote} and
1116 uses scholarly abbreviations to shorten citations.
1117
1118 \styleitem{ext-verbose-trad3}
1119 An extended version of the standard \blxstyle{verbose-trad3} style.
1120 This style is similar to \blxstyle{ext-verbose-trad2}.
1121 \end{stylelist}
1122
1123 \subsection{New styles}\label{sec:styles:new}
1124 The following styles are not mere extensions of a particular standard style,
1125 instead they implement new combinations or extensions of the concepts available
1126 in the standard styles.
1127 \begin{stylelist}
1128 \styleitem{ext-authoryear-ecomp}
1129 An author-year citation that is even more compact than
1130 \blxstyle{ext-authoryear-comp}, it compresses lists of \bibfield{extradate}
1131 letters from \enquote{Knuth 1986a,b,c} to \enquote{Knuth 1986a\bibrangedash c}.
1132 \begin{bibexample}
1133 \begin{lstlisting}[style=extblxstylelatex]
1134 \usepackage[style=ext-authoryear-ecomp]{biblatex}
1135 \end{lstlisting}
1136 \tcblower
1137 Sigfridsson and Ryde 1998 \quad Knuth 1986a\bibrangedash c
1138 \end{bibexample}
1139
1140 \styleitem{ext-authoryear-iecomp}
1141 An author-year citation that is even more compact than
1142 \blxstyle{ext-authoryear-icomp}, it compresses lists of \bibfield{extradate}
1143 letters from \enquote{Knuth 1986a,b,c} to \enquote{Knuth 1986a\bibrangedash c}.
1144 \begin{bibexample}
1145 \begin{lstlisting}[style=extblxstylelatex]
1146 \usepackage[style=ext-authoryear-iecomp]{biblatex}
1147 \end{lstlisting}
1148 \tcblower
1149 Sigfridsson and Ryde 1998 \quad ibid.\quad Knuth 1986a\bibrangedash c
1150 \end{bibexample}
1151
1152 \styleitem{ext-authoryear-terse}
1153 An author-year citation style that suppresses years for author lists with only
1154 one work in the bibliography.
1155 This style is like \blxstyle{ext-authortitle-terse}, but it is based on
1156 \blxstyle{ext-authoryear} and not on \blxstyle{ext-authortitle}.
1157 \begin{bibexample}
1158 \begin{lstlisting}[style=extblxstylelatex]
1159 \usepackage[style=ext-authoryear-terse]{biblatex}
1160 \end{lstlisting}
1161 \tcblower
1162 Sigfridsson and Ryde \quad Knuth 1984 \quad Knuth 1986
1163 \end{bibexample}
1164
1165 \styleitem{ext-authoryear-tcomp}
1166 A compact author-year citation style that suppresses years for author lists
1167 with only one work in the bibliography.
1168 This style is like \blxstyle{ext-authortitle-tcomp}, but it is based on
1169 \blxstyle{ext-authoryear} and not on \blxstyle{ext-authortitle}.
1170 \begin{bibexample}
1171 \begin{lstlisting}[style=extblxstylelatex]
1172 \usepackage[style=ext-authoryear-tcomp]{biblatex}
1173 \end{lstlisting}
1174 \tcblower
1175 Sigfridsson and Ryde \quad Knuth 1984, 1986
1176 \end{bibexample}
1177
1178 \styleitem{ext-authoryear-tecomp}
1179 A compact author-year citation style that combines
1180 \blxstyle{ext-authoryear-tcomp} and \blxstyle{ext-authoryear-ecomp}.
1181 \begin{bibexample}
1182 \begin{lstlisting}[style=extblxstylelatex]
1183 \usepackage[style=ext-authoryear-tecomp]{biblatex}
1184 \end{lstlisting}
1185 \tcblower
1186 Sigfridsson and Ryde \quad Knuth 1984, 1986a\bibrangedash c
1187 \end{bibexample}
1188
1189 \styleitem{ext-authoryear-ticomp}
1190 A compact author-year citation style with \enquote{ibidem} function that
1191 suppresses years for author lists with only one work in the bibliography.
1192 This style is like \blxstyle{ext-authortitle-ticomp}, but it is based on
1193 \blxstyle{ext-authoryear} and not on \blxstyle{ext-authortitle}.
1194 \begin{bibexample}
1195 \begin{lstlisting}[style=extblxstylelatex]
1196 \usepackage[style=ext-authoryear-ticomp]{biblatex}
1197 \end{lstlisting}
1198 \tcblower
1199 Sigfridsson and Ryde \quad ibid. \quad Knuth 1984, 1986
1200 \end{bibexample}
1201
1202 \styleitem{ext-authoryear-tiecomp}
1203 A compact author-year citation style that combines
1204 \blxstyle{ext-authoryear-ticomp} and \blxstyle{ext-authoryear-iecomp}.
1205 \begin{bibexample}
1206 \begin{lstlisting}[style=extblxstylelatex]
1207 \usepackage[style=ext-authoryear-tiecomp]{biblatex}
1208 \end{lstlisting}
1209 \tcblower
1210 Sigfridsson and Ryde \quad ibid. \quad Knuth 1984, 1986a\bibrangedash c
1211 \end{bibexample}
1212
1213
1214 \styleitem{ext-authornumber}
1215 An author-number citation style.
1216 The number is taken from the \bibfield{extraname} field
1217 which increases separately for each labelname list.
1218 \begin{bibexample}
1219 \begin{lstlisting}[style=extblxstylelatex]
1220 \usepackage[style=ext-authornumber]{biblatex}
1221 \end{lstlisting}
1222 \tcblower
1223 Knuth [1]; Knuth [2]; Knuth [3]; Sigfridsson and Ryde [1]
1224 \end{bibexample}
1225
1226 \styleitem{ext-authornumber-comp}
1227 A more compact version of \blxstyle{ext-authornumber} that prints
1228 the author only once if subsequent references in the same citation
1229 share the same author.
1230 This style will print
1231 \enquote{Knuth [1, 2]} instead of
1232 \blxstyle{ext-authornumber}'s \enquote{Knuth [1]; Knuth [2]}.
1233 The style will enable the \opt{sortcites} option.
1234 \begin{bibexample}
1235 \begin{lstlisting}[style=extblxstylelatex]
1236 \usepackage[style=ext-authornumber-comp]{biblatex}
1237 \end{lstlisting}
1238 \tcblower
1239 Knuth [1, 2, 3]; Sigfridsson and Ryde [1]
1240 \end{bibexample}
1241
1242 \styleitem{ext-authornumber-ecomp}
1243 An even more compact version of \blxstyle{ext-authornumber-comp}
1244 that also compresses the citation numbers if appropriate.
1245 \enquote{Knuth [1--3]} instead of
1246 \blxstyle{ext-authornumber-comp}'s \enquote{Knuth [1, 2, 3]}.
1247 \begin{bibexample}
1248 \begin{lstlisting}[style=extblxstylelatex]
1249 \usepackage[style=ext-authornumber-ecomp]{biblatex}
1250 \end{lstlisting}
1251 \tcblower
1252 Knuth [1--3]; Sigfridsson and Ryde [1]
1253 \end{bibexample}
1254
1255 \styleitem{ext-authornumber-terse}
1256 A version of \blxstyle{ext-authornumber} which drops the number
1257 if there is only one work by that author.
1258 \begin{bibexample}
1259 \begin{lstlisting}[style=extblxstylelatex]
1260 \usepackage[style=authornumber-terse]{biblatex}
1261 \end{lstlisting}
1262 \tcblower
1263 Knuth [1]; Knuth [2]; Knuth [3]; Sigfridsson and Ryde
1264 \end{bibexample}
1265
1266 \styleitem{ext-authornumber-tcomp}
1267 A combination of \blxstyle{ext-authornumber-terse}
1268 and \blxstyle{ext-authornumber-comp}.
1269 \begin{bibexample}
1270 \begin{lstlisting}[style=extblxstylelatex]
1271 \usepackage[style=authornumber-comp]{biblatex}
1272 \end{lstlisting}
1273 \tcblower
1274 Knuth [1, 2, 3]; Sigfridsson and Ryde
1275 \end{bibexample}
1276
1277 \styleitem{ext-authornumber-tecomp}
1278 A combination of \blxstyle{ext-authornumber-terse}
1279 and \blxstyle{ext-authornumber-ecomp}.
1280 \begin{bibexample}
1281 \begin{lstlisting}[style=extblxstylelatex]
1282 \usepackage[style=authornumber-tecomp]{biblatex}
1283 \end{lstlisting}
1284 \tcblower
1285 Knuth [1--3]; Sigfridsson and Ryde
1286 \end{bibexample}
1287
1288 \end{stylelist}
1289
1290 \clearpage
1291 \section{Options}\label{sec:opt}
1292 All options of the \sty{biblatex} package are supported and each style supports
1293 the options of its standard counterpart.
1294
1295 \subsection{General options}\label{sec:opt:gen}
1296 Additionally, all styles support the following options in global, per-type and
1297 per-entry scope.
1298 The default values are such that the styles can be used as drop-in replacement
1299 for the standard files without significant changes in output.
1300
1301 \begin{optionlist}
1302 \boolitem[true]{articlein}
1303 Whether or not to display \enquote{in:} before the journal information in
1304 \bibtype{article} entries.
1305 All other entry types are not affected by this option.
1306 If it is desired to remove the \enquote{in:} for more entry types or
1307 a more specific behaviour is required, then it is still going to be
1308 necessary to modify the bibmacro~\bibmacro{in:}.
1309
1310 \begingroup
1311 \makeatletter
1312 \togglefalse{bbx:doi}
1313 \newcommand*{\highlighthere}[1]{%
1314 \iffieldequalstr{entrykey}{sigfridsson}
1315 {\textcolor{highlight1}{#1}}
1316 {\iffieldequalstr{entrykey}{westfahl:space}
1317 {\textcolor{highlight2}{#1}}
1318 {#1}}}
1319 \DeclareFieldFormat{highlighthere}{\highlighthere{#1}}
1320 \renewbibmacro*{in:}{%
1321 \blx@begunit\blx@endunit
1322 \printtext[highlighthere]{%
1323 \bibstring{in}}%
1324 \printunit{\highlighthere{\intitlepunct}}}
1325
1326 \begin{bibexample}[title={\kvopt{articlein}{true}}]
1327 \toggletrue{bbx:articlein}
1328 \exampleprintbib{sigfridsson,westfahl:space}
1329 \end{bibexample}
1330
1331 \begin{bibexample}[title={\kvopt{articlein}{false}}]
1332 \togglefalse{bbx:articlein}
1333 \exampleprintbib{sigfridsson,westfahl:space}
1334 \end{bibexample}
1335 \makeatother
1336 \endgroup
1337
1338 \boolitem[false]{citexref}
1339 This option controls if \bibtype{inbook}, \bibtype{incollection} and
1340 \bibtype{inproceedings} entries that are tied to a parent entry with
1341 \bibfield{xref} or \bibfield{crossref} show all data of their
1342 parent entry inline as usual or if they cite their parent entry
1343 instead \emph{if} the parent is listed in the bibliography as a
1344 separate entry.
1345 With the default setting \kvopt{citexref}{false} the parent is not
1346 cited, the entry is shown as in the standard styles.
1347 If the option is set to \optval{true}, the block following the
1348 \enquote{in:} with the parent data is replaced by a citation to the
1349 parent entry and thus becomes more compact.
1350
1351 \begin{remindbox}
1352 Parent entries will only be cited by this feature
1353 if they appear in the bibliography.
1354
1355 The option itself does \emph{not} cause the parent entry to be added
1356 to the bibliography automatically.
1357 This needs to happen either explicitly by citing the parent
1358 (possibly with \cmd{nocite})
1359 or implicitly via the \opt{minxrefs} or \opt{mincrossrefs} option.
1360 \end{remindbox}
1361
1362 \nocite{westfahl:frontier}
1363 \begin{bibexample}[title={\kvopt{citexref}{true}}]
1364 \makeatletter
1365 \renewbibmacro*{crosscite}[1]{%
1366 \printtext[highlight1]{%
1367 \iftoggle{bbx:citexref}
1368 {\iffieldundef{crossref}
1369 {\iffieldundef{xref}
1370 {\usebibmacro{#1}}
1371 {\usebibmacro{bbx@xrefcite}{\thefield{xref}}}}
1372 {\usebibmacro{bbx@xrefcite}{\thefield{crossref}}}}
1373 {\usebibmacro{#1}}}}
1374 \makeatother
1375 \toggletrue{bbx:citexref}
1376 \exampleprintbib{westfahl:space,westfahl:frontier}
1377 \end{bibexample}
1378
1379 \begin{bibexample}[title={\kvopt{citexref}{false}}]
1380 \makeatletter
1381 \renewbibmacro*{crosscite}[1]{%
1382 \printtext[highlight1]{%
1383 \iftoggle{bbx:citexref}
1384 {\iffieldundef{crossref}
1385 {\iffieldundef{xref}
1386 {\usebibmacro{#1}}
1387 {\usebibmacro{bbx@xrefcite}{\thefield{xref}}}}
1388 {\usebibmacro{bbx@xrefcite}{\thefield{crossref}}}}
1389 {\usebibmacro{#1}}}}
1390 \makeatother
1391 \togglefalse{bbx:citexref}
1392 \exampleprintbib{westfahl:space,westfahl:frontier}
1393 \end{bibexample}
1394
1395 For technical reasons the citation label is not produced with a real
1396 cite command.
1397 The user-definable parts of the citation output are controlled by the
1398 bibmacro~\bibmacro{bbx:xrefcite}.
1399 \begin{keymarglistbook}
1400 \keyitem[bbx:xrefcite]
1401 This bibmacro typesets the \enquote{citation} to the parent entry.
1402 With many citation styles it will just call the~\bibmacro{cite}
1403 bibmacro,
1404 but in more complex styles it may also call additional initialisation
1405 or clean-up code.
1406 \end{keymarglistbook}
1407 In order to reproduce the citation label accurately in the bibliography,
1408 some initialisation and housekeeping needs to be done.
1409 \begin{ltxsyntax}
1410 \cmditem{AtXrefcite}{code}
1411 \cmditem*{AtXrefcite}*{code}
1412
1413 Appends the \prm{code} to an internal hook executed when initializing
1414 \cmd{xrefcite}.
1415 The starred variant of the command clears the initialisation hook,
1416 so the defaults can be overwritten.
1417 The default settings execute the internal macro
1418 \cs{extblx@bibcite@init}, which makes sure that the output
1419 takes into account the citation settings but suppresses
1420 unwanted citation tracking and hyperlinks.
1421 \end{ltxsyntax}
1422
1423 Even though the citation produced by this option is not implemented
1424 via a citation command,
1425 the output can be configured as if it were
1426 produced by a citation command called
1427 \cmd{bbx@xrefcite},
1428 which by default is set up to inherit most styling from \cmd{cite}.
1429 \begin{bibexample}[enhanced,
1430 title={Example customisation of \cmd{bbx@xrefcite}}]
1431 \begin{lstlisting}[style=extblxstylelatex]
1432 \UndeclareDelimcontextAlias{bbx@xrefcite}
1433 \DeclareInnerCiteDelims{bbx@xrefcite}{\bibopenparen}{\bibcloseparen}
1434 \end{lstlisting}
1435 \tcblower
1436 \makeatletter
1437 \renewbibmacro*{crosscite}[1]{%
1438 \printtext[highlight1]{%
1439 \iftoggle{bbx:citexref}
1440 {\iffieldundef{crossref}
1441 {\iffieldundef{xref}
1442 {\usebibmacro{#1}}
1443 {\usebibmacro{bbx@xrefcite}{\thefield{xref}}}}
1444 {\usebibmacro{bbx@xrefcite}{\thefield{crossref}}}}
1445 {\usebibmacro{#1}}}}
1446 \makeatother
1447 \UndeclareDelimcontextAlias{bbx@xrefcite}
1448 \DeclareInnerCiteDelims{bbx@xrefcite}{\bibopenparen}{\bibcloseparen}
1449 \toggletrue{bbx:citexref}
1450 \exampleprintbib{westfahl:space,westfahl:frontier}
1451 \end{bibexample}
1452
1453
1454 The following example shows the standard behaviour of \opt{citexref}
1455 with a numeric style and a customisation involving
1456 \bibmacro{bbx:xrefcite} that emulates the output of \cmd{textcite}.
1457
1458 \begin{bibexample}[enhanced,
1459 title={Standard behaviour of \cmd{bbx@xrefcite}
1460 with \blxstyle{ext-numeric}}]
1461 \begin{lstlisting}[style=extblxstylelatex]
1462 %\usepackage[style=ext-numeric, citexref=true]{biblatex}
1463 \end{lstlisting}
1464 \tcblower
1465 \makeatletter
1466 \renewbibmacro*{crosscite}[1]{%
1467 \printtext[highlight1]{%
1468 \iftoggle{bbx:citexref}
1469 {\iffieldundef{crossref}
1470 {\iffieldundef{xref}
1471 {\usebibmacro{#1}}
1472 {\usebibmacro{bbx@xrefcite}{\thefield{xref}}}}
1473 {\usebibmacro{bbx@xrefcite}{\thefield{crossref}}}}
1474 {\usebibmacro{#1}}}}
1475 \makeatother
1476 \UndeclareDelimcontextAlias{bbx@xrefcite}
1477 \DeclareOuterCiteDelims{bbx@xrefcite}{\bibopenbracket}{\bibclosebracket}
1478 \toggletrue{bbx:citexref}
1479 % emulate all the 'numeric'/default behaviour
1480 \DeclareNameAlias{sortname}{given-family}
1481 \renewbibmacro*{author}{%
1482 \ifboolexpr{
1483 test \ifuseauthor
1484 and
1485 not test {\ifnameundef{author}}
1486 }
1487 {\printnames{author}%
1488 \iffieldundef{authortype}
1489 {}
1490 {\setunit{\printdelim{authortypedelim}}%
1491 \usebibmacro{authorstrg}}}
1492 {}}
1493 \renewbibmacro*{editor}{%
1494 \ifboolexpr{
1495 test \ifuseeditor
1496 and
1497 not test {\ifnameundef{editor}}
1498 }
1499 {\printnames{editor}%
1500 \setunit{\printdelim{editortypedelim}}%
1501 \usebibmacro{editorstrg}%
1502 \clearname{editor}}
1503 {}}
1504 \renewbibmacro*{editor+others}{%
1505 \ifboolexpr{
1506 test \ifuseeditor
1507 and
1508 not test {\ifnameundef{editor}}
1509 }
1510 {\printnames{editor}%
1511 \setunit{\printdelim{editortypedelim}}%
1512 \usebibmacro{editor+othersstrg}%
1513 \clearname{editor}}
1514 {}}
1515 \renewbibmacro*{date}{\printdate}%
1516 \renewbibmacro*{cite}{%
1517 \printtext[bibhyperref]{%
1518 \printfield{labelprefix}%
1519 \printfield{labelnumber}}}
1520 \exampleprintbib[env=bibliographyNUM]{westfahl:space,westfahl:frontier}
1521 \end{bibexample}
1522
1523 \begin{bibexample}[enhanced,
1524 title={\cmd{textcite}-like behaviour of \cmd{bbx@xrefcite}
1525 with \blxstyle{ext-numeric}}]
1526 \begin{lstlisting}[style=extblxstylelatex]
1527 %\usepackage[style=ext-numeric, citexref=true]{biblatex}
1528
1529 \UndeclareCiteDelims{bbx@xrefcite}
1530 \DeclareDelimcontextAlias{bbx@xrefcite}{textcite}
1531
1532 \renewbibmacro*{bbx:xrefcite}{%
1533 \usebibmacro{textcite:init}%
1534 \usebibmacro{textcite}%
1535 \usebibmacro{textcite:postnote}}
1536 \end{lstlisting}
1537 \tcblower
1538 \makeatletter
1539 \renewbibmacro*{crosscite}[1]{%
1540 \printtext[highlight1]{%
1541 \iftoggle{bbx:citexref}
1542 {\iffieldundef{crossref}
1543 {\iffieldundef{xref}
1544 {\usebibmacro{#1}}
1545 {\usebibmacro{bbx@xrefcite}{\thefield{xref}}}}
1546 {\usebibmacro{bbx@xrefcite}{\thefield{crossref}}}}
1547 {\usebibmacro{#1}}}}
1548 % emulate all the 'numeric'/default behaviour
1549 \DeclareNameAlias{sortname}{given-family}
1550 \renewbibmacro*{author}{%
1551 \ifboolexpr{
1552 test \ifuseauthor
1553 and
1554 not test {\ifnameundef{author}}
1555 }
1556 {\printnames{author}%
1557 \iffieldundef{authortype}
1558 {}
1559 {\setunit{\printdelim{authortypedelim}}%
1560 \usebibmacro{authorstrg}}}
1561 {}}
1562 \renewbibmacro*{editor}{%
1563 \ifboolexpr{
1564 test \ifuseeditor
1565 and
1566 not test {\ifnameundef{editor}}
1567 }
1568 {\printnames{editor}%
1569 \setunit{\printdelim{editortypedelim}}%
1570 \usebibmacro{editorstrg}%
1571 \clearname{editor}}
1572 {}}
1573 \renewbibmacro*{editor+others}{%
1574 \ifboolexpr{
1575 test \ifuseeditor
1576 and
1577 not test {\ifnameundef{editor}}
1578 }
1579 {\printnames{editor}%
1580 \setunit{\printdelim{editortypedelim}}%
1581 \usebibmacro{editor+othersstrg}%
1582 \clearname{editor}}
1583 {}}
1584 \renewbibmacro*{date}{\printdate}%
1585 \renewbibmacro*{cite}{%
1586 \printtext[bibhyperref]{%
1587 \printfield{labelprefix}%
1588 \printfield{labelnumber}}}
1589 \renewbibmacro*{textcite}{%
1590 \iffieldequals{namehash}{\cbx@lasthash}
1591 {\setunit{\multicitedelim}}
1592 {\ifnameundef{labelname}
1593 {\printfield[citetitle]{labeltitle}}
1594 {\printnames{labelname}}%
1595 \setunit*{\printdelim{namelabeldelim}}%
1596 \printtext{\bibopenbracket}\global\booltrue{cbx:parens}%
1597 \stepcounter{textcitecount}%
1598 \savefield{namehash}{\cbx@lasthash}}%
1599 \ifnumequal{\value{citecount}}{1}
1600 {\usebibmacro{prenote}}
1601 {}%
1602 \usebibmacro{cite}%
1603 \setunit{%
1604 \ifbool{cbx:parens}
1605 {\bibclosebracket\global\boolfalse{cbx:parens}}
1606 {}%
1607 \textcitedelim}}
1608 \newbibmacro*{textcite:init}{%
1609 \ifnumless{\value{multicitecount}}{2}
1610 {\global\boolfalse{cbx:parens}%
1611 \global\undef\cbx@lasthash}
1612 {\global\undef\cbx@lasthash}}
1613 \renewbibmacro*{textcite:postnote}{%
1614 \usebibmacro{postnote}%
1615 \ifnumequal{\value{multicitecount}}{\value{multicitetotal}}
1616 {\setunit{}%
1617 \printtext{%
1618 \ifbool{cbx:parens}
1619 {\bibclosebracket\global\boolfalse{cbx:parens}}
1620 {}}}
1621 {\setunit{%
1622 \ifbool{cbx:parens}
1623 {\bibclosebracket\global\boolfalse{cbx:parens}}
1624 {}%
1625 \textcitedelim}}}
1626 \makeatother
1627 \UndeclareCiteDelims{bbx@xrefcite}
1628 \DeclareDelimcontextAlias{bbx@xrefcite}{textcite}
1629 \renewbibmacro*{bbx:xrefcite}{%
1630 \usebibmacro{textcite:init}%
1631 \usebibmacro{textcite}%
1632 \usebibmacro{textcite:postnote}}
1633 \toggletrue{bbx:citexref}
1634 \exampleprintbib[env=bibliographyNUM]{westfahl:space,westfahl:frontier}
1635 \end{bibexample}
1636
1637
1638 \boolitem[false]{innamebeforetitle}
1639 Whether or not the \bibfield{editor} is moved before the
1640 \bibfield{booktitle} field for \bibtype{incollection}
1641 and \bibtype{inproceedings} entries.
1642
1643 \begin{remindbox}[breakable]
1644 This option does \emph{not} influence the position of the
1645 \bibfield{editor} field for \bibtype{inbook} entries.
1646
1647 The primary name connected to a \bibtype{book} entry is its
1648 \bibfield{author}, which for \bibtype{inbook} entries normally
1649 corresponds to the \bibfield{bookauthor}
1650 (usually \bibfield{author} and \bibfield{bookauthor} will be the
1651 same for \bibfield{inbook} entries) and that is the name one
1652 would normally expect to see before the title.
1653 In most cases where one wants the \bibfield{editor} to appear before
1654 the \bibfield{booktitle}, the entry in question is
1655 an~\bibtype{incollection} or~\bibtype{inproceedings}.
1656 \end{remindbox}
1657
1658 \begin{bibexample}[title={\kvopt{innamebeforetitle}{true}}]
1659 \makeatletter
1660 \renewbibmacro*{bbx:in:editor}[1]{%
1661 \ifboolexpr{
1662 test \ifuseeditor
1663 and
1664 not test {\ifnameundef{editor}}
1665 }
1666 {\printtext[highlight1]{%
1667 \ifboolexpr{togl {bbx:innameidem} and test {\bbx@ineditoridem}}
1668 {\bibstring[\mkibid]{idem\thefield{gender}}}
1669 {\printnames[ineditor]{editor}}%
1670 \setunit{\printdelim{editortypedelim}}%
1671 \usebibmacro{#1}}%
1672 \clearname{editor}}
1673 {}}
1674 \makeatother
1675 \toggletrue{bbx:innamebeforetitle}
1676 \exampleprintbib{pines}
1677 \end{bibexample}
1678
1679 \begin{bibexample}[title={\kvopt{innamebeforetitle}{false}}]
1680 \renewbibmacro*{byeditor+others}{%
1681 \ifnameundef{editor}
1682 {}
1683 {\printtext[highlight1]{%
1684 \usebibmacro{byeditor+othersstrg}%
1685 \setunit{\addspace}%
1686 \printnames[byeditor]{editor}%
1687 \newunit}
1688 \clearname{editor}}%
1689 \usebibmacro{byeditorx}%
1690 \usebibmacro{bytranslator+others}}
1691 \togglefalse{bbx:innamebeforetitle}
1692 \exampleprintbib{pines}
1693 \end{bibexample}
1694
1695 \boolitem[false]{innameidem}
1696 Whether or not the \bibfield{editor} of the \bibfield{booktitle}
1697 for the entry types \bibtype{inbook}, \bibtype{incollection} and
1698 \bibtype{inproceedings} is replaced by \enquote{idem} in case the
1699 \bibfield{editor} and \bibfield{author} name lists coincide.
1700 This option only has an effect if \hyperopt{innamebeforetitle} is set to
1701 \optval{true}.
1702
1703 \begin{bibexample}[title={\kvopt{innameidem}{true}}
1704 {\small (and \kvopt{innamebeforetitle}{true})}]
1705 \togglefalse{bbx:isbn}
1706 \makeatletter
1707 \renewbibmacro*{bbx:in:editor}[1]{%
1708 \ifboolexpr{
1709 test \ifuseeditor
1710 and
1711 not test {\ifnameundef{editor}}
1712 }
1713 {\printtext[highlight1]{%
1714 \ifboolexpr{togl {bbx:innameidem} and test {\bbx@ineditoridem}}
1715 {\bibstring[\mkibid]{idem\thefield{gender}}}
1716 {\printnames[ineditor]{editor}}%
1717 \setunit{\printdelim{editortypedelim}}%
1718 \usebibmacro{#1}%
1719 \clearname{editor}}}
1720 {}}
1721 \makeatother
1722 \toggletrue{bbx:innamebeforetitle}\toggletrue{bbx:innameidem}
1723 \exampleprintbib{gaonkar:in}
1724 \end{bibexample}
1725
1726 \begin{bibexample}[title={\kvopt{innameidem}{false}}
1727 {\small (and \kvopt{innamebeforetitle}{true})}]
1728 \togglefalse{bbx:isbn}
1729 \makeatletter
1730 \renewbibmacro*{bbx:in:editor}[1]{%
1731 \ifboolexpr{
1732 test \ifuseeditor
1733 and
1734 not test {\ifnameundef{editor}}
1735 }
1736 {\printtext[highlight1]{%
1737 \ifboolexpr{togl {bbx:innameidem} and test {\bbx@ineditoridem}}
1738 {\bibstring[\mkibid]{idem\thefield{gender}}}
1739 {\printnames[ineditor]{editor}}%
1740 \setunit{\printdelim{editortypedelim}}%
1741 \usebibmacro{#1}%
1742 \clearname{editor}}}
1743 {}}
1744 \makeatother
1745 \toggletrue{bbx:innamebeforetitle}\togglefalse{bbx:innameidem}
1746 \exampleprintbib{gaonkar:in}
1747 \end{bibexample}
1748
1749
1750 \boolitem[false]{maintitleaftertitle}
1751 Whether or not the \bibfield{maintitle} is printed after the
1752 \bibfield{title} or \bibfield{booktitle} of the work.
1753 If \opt{maintitleaftertitle} is \optval{true}, the \bibfield{volume} field will
1754 be printed with the \hyperbibfieldformat{volumeof} format.
1755
1756 \begingroup
1757 \makeatletter
1758 \renewbibmacro*{maintitle+title}{%
1759 \blx@begunit\blx@endunit
1760 \iftoggle{bbx:maintitleaftertitle}
1761 {}
1762 {\iffieldsequal{maintitle}{title}
1763 {\clearfield{maintitle}%
1764 \clearfield{mainsubtitle}%
1765 \clearfield{maintitleaddon}}
1766 {\printtext[highlight1]{%
1767 \iffieldundef{maintitle}
1768 {}
1769 {\usebibmacro{maintitle}%
1770 \newunit\newblock
1771 \iffieldundef{volume}
1772 {}
1773 {\printfield{volume}%
1774 \printfield{part}%
1775 \setunit{\maintitletitledelim}}}}}}%
1776 \printtext[highlight2]{\usebibmacro{title}\blx@begunit\blx@endunit}%
1777 \printunit{}%
1778 \iftoggle{bbx:maintitleaftertitle}
1779 {\iffieldsequal{maintitle}{title}
1780 {\clearfield{maintitle}%
1781 \clearfield{mainsubtitle}%
1782 \clearfield{maintitleaddon}}
1783 {\iffieldundef{maintitle}
1784 {}
1785 {\setunit{\titlemaintitledelim}%
1786 \printtext[highlight1]{%
1787 \iffieldundef{volume}
1788 {}
1789 {\printfield[volumeof]{volume}%
1790 \printfield{part}%
1791 \setunit{\addspace}%
1792 \bibstring{ofseries}%
1793 \setunit{\addspace}}%
1794 \usebibmacro{maintitle}}}}
1795 {}}%
1796 \newunit}%
1797 \renewcommand*{\maintitletitledelim}{\highlight{\addcolon\space}}
1798 \makeatother
1799 \begin{bibexample}[title={\kvopt{maintitleaftertitle}{true}}]
1800 \togglefalse{bbx:isbn}
1801 \toggletrue{bbx:maintitleaftertitle}
1802 \exampleprintbib{knuth:ct:a}
1803 \end{bibexample}
1804
1805 \begin{bibexample}[title={\kvopt{maintitleaftertitle}{false}}]
1806 \togglefalse{bbx:isbn}
1807 \togglefalse{bbx:maintitleaftertitle}
1808 \exampleprintbib{knuth:ct:a}
1809 \end{bibexample}
1810 \endgroup
1811 \end{optionlist}
1812
1813 \subsection{Style-specific options}\label{sec:opt:style}
1814 \begin{optionlist}
1815 \optitem[true]{dashed}{\optval{true}, \optval{false}, \optval{fullhash},
1816 \optval{bibnamehash}}
1817
1818 The \opt{dashed} option of the \hyperblxstyle[ext-authoryear]{authoryear}-,
1819 \hyperblxstyle[ext-authortitle]{authortitle}-
1820 and \hyperblxstyle[ext-authornumber]{ext-authornumber}-like
1821 bibliography styles allows for
1822 finer control over the dashes than in the standard styles.
1823 The option is available globally and additionally on a per-type and per-entry
1824 level.
1825
1826 This option controls whether or not recurring lists of authors/editors in the
1827 bibliography are replaced with a dash.
1828 The standard values \optval{true} and \optval{false} are still valid and give
1829 the exact same output as in the standard styles.
1830 This means that the output is fully compatible with the standard styles.
1831 The new values \optval{fullhash} and \optval{bibnamehash} differ in how exactly
1832 they determine if a list of authors/editors is the same as the previous.
1833 \begin{valuelist}
1834 \item[true] An alias for \optval{fullhash}.
1835 \item[false] Disable this feature.
1836 \item[bibnamehash] Replace recurring name lists with a dash.
1837 Compare name lists using \bibfield{bib\-name\-hash}, taking
1838 into account only names that are actually listed in the
1839 bibliography account.
1840 \item[fullhash] Replace recurring name lists with a dash.
1841 Compare name lists using \bibfield{fullhash}, taking into
1842 account all names in the list, even those that are truncated
1843 and do not appear in the bibliography.
1844 \end{valuelist}
1845
1846
1847 \begin{refsection}
1848 \makeatletter
1849 Assuming \kvopt{maxnames}{1} and no name list disambiguation
1850 (\kvopt{uniquelist}{false}), the four entries
1851 \inputexamplebibfile[listing options={linerange={1-14,16-20,22-22},
1852 style = extblxstylebibtex}]
1853 {biblatex-ext-examples.bib}
1854 give
1855 \renewcommand*{\bibnamedash}{\textbf{\textemdash\addspace}}
1856 \DeclareFieldFormat{highlighthere}{%
1857 \iffieldequalstr{entrykey}{elk:einio}
1858 {\highlight[1]{#1}}
1859 {\iffieldequalstr{entrykey}{appleby:abl}
1860 {\highlight[2]{#1}}
1861 {#1}}}
1862 \renewbibmacro*{author}{%
1863 \printtext[highlighthere]{%
1864 \ifboolexpr{
1865 test \ifuseauthor
1866 and
1867 not test {\ifnameundef{author}}
1868 }
1869 {\usebibmacro{bbx:dashcheck}
1870 {\printtext{\bibnamedash}}
1871 {\usebibmacro{bbx:savehash}%
1872 \printnames{author}}%
1873 \iffieldundef{authortype}
1874 {\setunit{\printdelim{nameyeardelim}}}
1875 {\setunit{\printdelim{authortypedelim}}}%
1876 \iffieldundef{authortype}
1877 {}
1878 {\usebibmacro{authorstrg}%
1879 \setunit{\printdelim{nameyeardelim}}}}%
1880 {\global\undef\bbx@lasthash
1881 \usebibmacro{labeltitle}%
1882 \setunit*{\printdelim{nonameyeardelim}}}}%
1883 \usebibmacro{date+extradate}}
1884 \let\ExecuteBibliographyOptions\@gobble
1885 \nocite{elk:bronto,elk:einio,appleby:abl,appleby:civ}
1886 \begin{bibexample}[title={\kvopt{dashed}{false}}]
1887 \csuse{extblx@opt@dashed@false}
1888 \printbibliography[heading=none]
1889 \end{bibexample}
1890
1891 \begin{bibexample}[title={\kvopt{dashed}{bibnamehash}}]
1892 \csuse{extblx@opt@dashed@bibnamehash}
1893 \printbibliography[heading=none]
1894 \end{bibexample}
1895
1896 \begin{bibexample}[title={\kvopt{dashed}{fullhash}}]
1897 \csuse{extblx@opt@dashed@fullhash}
1898 \printbibliography[heading=none]
1899 \end{bibexample}
1900 \makeatother
1901 \end{refsection}
1902 With \kvopt{dashed}{bibnamehash} the dash replaces the name list if they are
1903 indistinguishable in the bibliography, while with \kvopt{dashed}{fullhash} the
1904 lists are only replaced if they are indistinguishable in the data source.
1905
1906
1907
1908 \optitem[false]{introcite}{\optval{false}, \optval{plain}, \optval{label}}
1909
1910 \begin{warnbox}
1911 The \opt{introcite} option is available for the bibliography styles of the
1912 \hyperblxstyle[ext-authoryear]{authoryear},
1913 \hyperblxstyle[ext-authortitle]{authortitle}
1914 and \hyperblxstyle[ext-authornumber]{ext-authornumber} family.
1915 It cannot be used with citation styles of the
1916 \hyperblxstyle[ext-verbose]{verbose} family, where
1917 it may produce undesired output or errors.
1918
1919 The option is available globally and on the per-type and per-entry levels.
1920 The value \optval{label} needs support by the bibliography environment.
1921 It is therefore only available globally out of the box.
1922 A warning will be issued if \optval{label} is used on an unsupported level.
1923 The values \optval{plain} and \optval{false} are supported on all levels.
1924 \end{warnbox}
1925
1926 This option controls whether or not the citation label is repeated in the
1927 bibliography.
1928 There are two possible output formats.
1929 \begin{valuelist}
1930 \item[false] Do not show the citation label in the bibliography.
1931 \item[plain] Show the citation label at the beginning of an entry.
1932 \item[label] Show the citation label as the label of a list similar to the
1933 \hyperblxstyle[ext-numeric]{numeric} or
1934 \hyperblxstyle[ext-alphabetic]{alphabetic} styles.
1935 \end{valuelist}
1936
1937 The difference between \optval{plain} and \optval{label} is that the former
1938 simply prints the citation label at the beginning of the entry, while the latter
1939 prints the citation label similar to the item labels in a list or the numeric
1940 labels in a \hyperblxstyle[ext-numeric]{numeric} bibliography.
1941
1942 \begingroup
1943 \togglefalse{bbx:doi}
1944 \setlength{\introcitewidth}{5.5\biblabelsep}
1945 \DeclareFieldFormat{bbx@introcite}{\highlight{#1}}
1946 \renewcommand*{\introcitepunct}{\highlight{\addcolon}\space}
1947 \makeatletter
1948 \begin{bibexample}[title={\kvopt{introcite}{false}}]
1949 \csuse{extblx@opt@dashed@false}
1950 \csletcs{extblx@introcite}{extblx@opt@introcite@false}
1951 \exampleprintbib{sigfridsson,knuth:ct:a,knuth:ct:b}
1952 \end{bibexample}
1953
1954 \begin{bibexample}[title={\kvopt{introcite}{plain}}]
1955 \csuse{extblx@opt@dashed@false}
1956 \csletcs{extblx@introcite}{extblx@opt@introcite@plain}
1957 \exampleprintbib{sigfridsson,knuth:ct:a,knuth:ct:b}
1958 \end{bibexample}
1959
1960 \begin{bibexample}[title={\kvopt{introcite}{label}}]
1961 \csuse{extblx@opt@dashed@false}
1962 \csletcs{extblx@introcite}{extblx@opt@introcite@label}
1963 \exampleprintbib{sigfridsson,knuth:ct:a,knuth:ct:b}
1964 \end{bibexample}
1965 \makeatother
1966 \endgroup
1967
1968
1969 The label produced by the \optval{plain} option can be customised as follows.
1970 \begin{ltxsyntax}
1971 \csitem{introcitepunct}
1972
1973 The punctuation inserted between the label and the
1974 rest of the entry with \kvopt{introcite}{plain}.
1975 The default value is a colon followed by a space.
1976 \begin{bibexample}
1977 \togglefalse{bbx:doi}
1978 \renewcommand*{\introcitepunct}{\highlight{\textbf{\addcolon}\textvisiblespace}}
1979 \csuse{extblx@opt@dashed@false}
1980 \csletcs{extblx@introcite}{extblx@opt@introcite@plain}
1981 \exampleprintbib{sigfridsson}
1982 \end{bibexample}
1983 \end{ltxsyntax}
1984
1985 \begin{keymarglistbook}
1986 \keyitem[bbx:introcite:plain:keeprelated] This toggle controls whether or
1987 not the citation label is also repeated for default related entries.
1988 The default value \optval{false} suppresses the label for related entries.
1989 \begin{bibexample}[title={\gencode{\string\togglefalse\{%
1990 bbx:introcite:plain:keeprelated\}} (default)}]
1991 \togglefalse{bbx:doi}
1992 \csletcs{extblx@introcite}{extblx@opt@introcite@plain}
1993 \exampleprintbib{vizedom:related}
1994 \end{bibexample}
1995 \begin{bibexample}[title={\gencode{\string\toggletrue\{%
1996 bbx:introcite:plain:keeprelated\}}}]
1997 \toggletrue{bbx:introcite:plain:keeprelated}
1998 \renewbibmacro*{related:init}{%
1999 \csundef{bbx:relatedloop}%
2000 \iftoggle{bbx:introcite:plain:keeprelated}{%
2001 \DeclareFieldFormat{bbx@introcite}{\highlight{##1}}%
2002 \renewcommand*{\introcitepunct}{\highlight{\addcolon}\space}%
2003 }{\renewbibmacro{introcite:plain}{}}}
2004 \csuse{extblx@opt@dashed@false}
2005 \csletcs{extblx@introcite}{extblx@opt@introcite@plain}
2006 \exampleprintbib{vizedom:related}
2007 \end{bibexample}
2008 Note that the implementation of some related types automatically suppresses
2009 the introcite label~-- or rather, does not add the label in the first place.
2010 That means that the resulting bibliography should be checked for consistency
2011 if the toggle is set to \optval{true}.
2012 \end{keymarglistbook}
2013
2014 The \optval{label} option can be configured to not allow the label to run into
2015 the remaining bibliography entry thus creating the appearance of a tabular-like
2016 bibliography.
2017 The citation label is not broken across lines, instead it moves the entry text
2018 into the next line with \cmd{introcitebreak} if the width of the citation is
2019 greater than \len{introcitewidth}.
2020
2021 \begin{ltxsyntax}
2022 \lenitem{introcitewidth} The maximum width of the citation label.
2023 The initial value is 8 times \len{biblabelsep}.
2024 \lenitem{introcitesep} This length sets the minimal space between the end of the
2025 citation label and the beginning of the rest of the entry.
2026 The initial value is \len{biblabelsep}.
2027 \csitem{introcitebreak} The command to execute if a citation label exceeds
2028 \len{introcitewidth}. The default is \cs{leavevmode}\cs{newline}.
2029 \end{ltxsyntax}
2030
2031 \makeatletter
2032 \togglefalse{bbx:doi}
2033 \begingroup
2034 \setlength{\introcitewidth}{4.2\biblabelsep}
2035 \setlength{\introcitesep}{3.8\biblabelsep}
2036 \begin{bibexample}[enhanced, title={Lengths for \kvopt{introcite}{label}},
2037 overlay={%
2038 \draw[highlight1, line width=.24mm,|-|] (frame.west)++(5.5mm,-.38cm) --
2039 node [at end, below=1pt] {\len{introcitewidth}} ++
2040 (\introcitewidth,0);
2041 \draw[highlight2, line width=.24mm,|-|] (frame.west)++
2042 (5.5mm+\introcitewidth,-.8mm) -- node [at start, above=2pt]
2043 {\len{introcitesep}} ++ (\introcitesep,0);
2044 \draw[highlight2, line width=.24mm,|-|] (frame.west)++
2045 (5.5mm+\introcitewidth,2.32cm) -- ++ (\introcitesep,0);
2046 }
2047 ]
2048 \csuse{extblx@opt@dashed@false}
2049 \csletcs{extblx@introcite}{extblx@opt@introcite@label}
2050 \exampleprintbib{sigfridsson,coleridge,geer}
2051 \end{bibexample}
2052 \endgroup
2053
2054 \begin{bibexample}[enhanced, breakable,
2055 title={\kvopt{introcite}{label} with empty \cs{introcitebreak}}]
2056 \begin{lstlisting}[style=extblxstylelatex]
2057 %\usepackage[..., introcite=label]{biblatex}
2058 \renewcommand*{\introcitebreak}{}
2059 \end{lstlisting}
2060 \tcblower
2061 \renewcommand*{\introcitebreak}{}
2062 \setlength{\introcitewidth}{1.8cm}
2063 \csuse{extblx@opt@dashed@false}
2064 \csletcs{extblx@introcite}{extblx@opt@introcite@label}
2065 \exampleprintbib{coleridge,geer}
2066 \end{bibexample}
2067
2068 \begin{bibexample}[enhanced, breakable,
2069 title={\kvopt{introcite}{label} with \len{introcitewidth} set to zero
2070 and \len{introcitesep} equal to \len{bibhang}}]
2071 \begin{lstlisting}[style=extblxstylelatex]
2072 %\usepackage[..., introcite=label]{biblatex}
2073 \setlength{\introcitewidth}{0pt}
2074 \setlength{\introcitesep}{\bibhang}
2075 \end{lstlisting}
2076 \tcblower
2077 \setlength{\introcitewidth}{0pt}
2078 \setlength{\introcitesep}{\bibhang}
2079 \csuse{extblx@opt@dashed@false}
2080 \csletcs{extblx@introcite}{extblx@opt@introcite@label}
2081 \exampleprintbib{sigfridsson,geer}
2082 \end{bibexample}
2083 \makeatother
2084
2085 In order to reproduce the citation label accurately in the bibliography,
2086 some initialisation and housekeeping needs to be done.
2087 \begin{ltxsyntax}
2088 \cmditem{AtIntrocite}{code}
2089 \cmditem*{AtIntrocite}*{code}
2090
2091 Appends the \prm{code} to an internal hook executed when initializing
2092 \cmd{introcite}.
2093 The starred variant of the command clears the initialisation hook,
2094 so the defaults can be overwritten.
2095 The default settings execute the internal macro
2096 \cs{extblx@bibcite@init}, which makes sure that the output
2097 takes into account the citation settings but suppresses
2098 unwanted citation tracking and hyperlinks.
2099 \end{ltxsyntax}
2100
2101 The appearance of the citation label can be customised mostly as if it were
2102 produced by a true citation command called \cmd{bbx@introcite}.
2103 The delimiter context is \gencode{bbx@introcite}, the inner citation delimiters
2104 can be accessed as \gencode{bbx@introcite} as well.
2105 The label does not have outer citation delimiters, you can use the wrapper
2106 field format \gencode{bbx@introcite} instead. In fact this approach is more
2107 versatile than the outer citation delimiter feature (see the discussion in
2108 \cref{sec:opt:citedelims}).
2109 The default settings for \cmd{bbx@introcite} emulate the output of \cmd{cite}.
2110
2111 \begin{bibexample}[breakable,
2112 title={Example customisations for \kvopt{introcite}{plain}}]
2113 \begin{lstlisting}[style=extblxstylelatex]
2114 %\usepackage[..., introcite=plain]{biblatex}
2115 \DeclareFieldFormat{bbx@introcite}{\mkbibbrackets{#1}}
2116 \DeclareDelimFormat[bbx@introcite]{nameyeardelim}{\addcomma\space}
2117 \UndeclareInnerCiteDelims{bbx@introcite}
2118 \renewcommand*{\introcitepunct}{\quad}
2119 \end{lstlisting}
2120 \tcblower
2121 \DeclareFieldFormat{bbx@introcite}{\mkbibbrackets{#1}}
2122 \DeclareDelimFormat[bbx@introcite]{nameyeardelim}{\addcomma\space}
2123 \UndeclareInnerCiteDelims{bbx@introcite}
2124 \renewcommand*{\introcitepunct}{\quad}
2125 \csuse{extblx@opt@dashed@false}
2126 \csletcs{extblx@introcite}{extblx@opt@introcite@plain}
2127 \exampleprintbib{sigfridsson}
2128 \end{bibexample}
2129
2130 \begin{bibexample}[breakable,
2131 title={Example customisations for \kvopt{introcite}{plain}}]
2132 \begin{lstlisting}[style=extblxstylelatex]
2133 %\usepackage[..., introcite=plain]{biblatex}
2134 \DeclareFieldFormat{bbx@introcite}{\mkbibbold{#1}}
2135 \renewcommand*{\introcitepunct}{\\}
2136 \end{lstlisting}
2137 \tcblower
2138 \DeclareFieldFormat{bbx@introcite}{\mkbibbold{#1}}
2139 \renewcommand*{\introcitepunct}{\\}
2140 \csuse{extblx@opt@dashed@false}
2141 \csletcs{extblx@introcite}{extblx@opt@introcite@plain}
2142 \exampleprintbib{sigfridsson}
2143 \end{bibexample}
2144
2145 \begin{bibexample}[breakable,
2146 title={Example customisations for \kvopt{introcite}{label}}]
2147 \begin{lstlisting}[style=extblxstylelatex]
2148 %\usepackage[..., introcite=label]{biblatex}
2149 \DeclareFieldFormat{bbx@introcite}{\mkbibbold{#1}}
2150 \DeclareDelimFormat[bbx@introcite]{nameyeardelim}{\addspace}
2151 \DeclareInnerCiteDelims{bbx@introcite}{\bibopenparen}{\bibcloseparen}
2152 \setlength{\introcitewidth}{0pt}
2153 \setlength{\introcitesep}{\bibhang}
2154 \end{lstlisting}
2155 \tcblower
2156 \DeclareFieldFormat{bbx@introcite}{\mkbibbold{#1}}
2157 \DeclareDelimFormat[bbx@introcite]{nameyeardelim}{\addspace}
2158 \DeclareInnerCiteDelims{bbx@introcite}{\bibopenparen}{\bibcloseparen}
2159 \setlength{\introcitewidth}{0pt}
2160 \setlength{\introcitesep}{\bibhang}
2161 \csuse{extblx@opt@dashed@false}
2162 \csletcs{extblx@introcite}{extblx@opt@introcite@label}
2163 \exampleprintbib{coleridge,geer}
2164 \end{bibexample}
2165
2166 If you are using an author-year citation style together with
2167 \kvopt{introcite}{label} or \kvopt{introcite}{label}, you may be interested in
2168 combining this with \kvopt{bibstyle}{ext-authortitle} instead to move the year
2169 back to the end of the entry.
2170 \makeatletter
2171 \begin{bibexample}[breakable, enhanced, title={\kvopt{introcite}{label} with
2172 \kvopt{style}{ext-authoryear} and \kvopt{bibstyle}{ext-authortitle}}]
2173 \begin{lstlisting}[style=extblxstylelatex]
2174 %\usepackage[
2175 % citestyle=ext-authoryear,
2176 % bibstyle=ext-authortitle,
2177 % sorting=nyt,
2178 % introcite=label,
2179 % ...
2180 %]{biblatex}
2181 \setlength{\introcitewidth}{0pt}
2182 \setlength{\introcitesep}{\bibhang}
2183 \end{lstlisting}
2184 \tcblower
2185 \setlength{\introcitewidth}{0pt}
2186 \setlength{\introcitesep}{\bibhang}
2187 \bbx@opt@mergedate@false
2188 \renewbibmacro*{author}{%
2189 \ifboolexpr{
2190 test \ifuseauthor
2191 and
2192 not test {\ifnameundef{author}}
2193 }
2194 {\usebibmacro{bbx:dashcheck}
2195 {\bibnamedash}
2196 {\printnames{author}%
2197 \setunit{\printdelim{authortypedelim}}%
2198 \usebibmacro{bbx:savehash}}%
2199 \usebibmacro{authorstrg}}
2200 {\global\undef\bbx@lasthash}}
2201 \csuse{extblx@opt@dashed@false}
2202 \csletcs{extblx@introcite}{extblx@opt@introcite@label}
2203 \exampleprintbib{sigfridsson,geer}
2204 \end{bibexample}
2205 \makeatother
2206 \end{optionlist}
2207
2208 \clearpage
2209 \section{Further Customisations}\label{sec:opt:cust}
2210 Aside from the new options mentioned in the last section the styles of this
2211 bundle also offer additional field formats, punctuation and delimiter commands,
2212 a new citation delimiter interface and a few new bibliography macros.
2213
2214 The citation delimiter interface is a novel feature of \sty{biblatex-ext},
2215 but for the other subsections familiarity with the underlying \sty{biblatex}
2216 concepts is assumed.
2217 Some of this is easier understood by looking at the source code directly,
2218 so it might not be a bad idea to have \filename{ext-standard.bbx} open when
2219 perusing this section of the manual.
2220
2221 \subsection{Field formats}\label{sec:opt:field}
2222 The styles of this bundle offer customisable field formats
2223 in a few places where the standard styles employ hard-coded formatting
2224 directives instead.
2225 Field formats can be modified with \cmd{DeclareFieldFormat}.
2226
2227 \begin{bibfieldformatlist}
2228
2229 \bibfieldformatitem{bibextraname}
2230 The format for the number added to the name in
2231 \hyperblxstyle[ext-authornumber]{ext-authornumber}-like styles.
2232 The default is to wrap the number in square brackets.
2233 \begin{bibexample}
2234 \togglefalse{bbx:doi}
2235 % VERY hacky, but we can't easily switch styles
2236 \DeclareFieldFormat{biblabeldate}{\highlight{\bibopenbracket}\highlight[2]{1}%
2237 \highlight{\bibclosebracket}}
2238 \exampleprintbib{sigfridsson}
2239 \end{bibexample}
2240
2241 \bibfieldformatitem{biblabeldate} The format for the labeldate in the
2242 bibliography for \hyperblxstyle[ext-authoryear]{authoryear}-like styles.
2243 The default is to wrap the date in round brackets.
2244 \begin{bibexample}
2245 \togglefalse{bbx:doi}
2246 \DeclareFieldFormat{biblabeldate}{\highlight{\bibopenparen}\highlight[2]{#1}%
2247 \highlight{\bibcloseparen}}
2248 \exampleprintbib{sigfridsson}
2249 \end{bibexample}
2250 \begin{bibexample}[title={Customisation example for
2251 \bibfieldformat{biblabeldate}}]
2252 \begin{lstlisting}[style=extblxstylelatex]
2253 \DeclareFieldFormat{biblabeldate}{|1#11|}
2254 \DeclareDelimFormat[bib]{nameyeardelim}{|2\addperiod\space2|}
2255 \end{lstlisting}
2256 \tcblower
2257 \togglefalse{bbx:doi}
2258 \DeclareFieldFormat{biblabeldate}{\highlight[1]{#1}}
2259 \DeclareDelimFormat[bib]{nameyeardelim}{\highlight[2]{\textbf{%
2260 \addperiod}}\space\bibsentence}
2261 \exampleprintbib{sigfridsson}
2262 \end{bibexample}
2263
2264
2265 \bibfieldformatitem{biblistlabeldate} Like \bibfieldformat{biblabeldate},
2266 but for bibliography lists created by \cmd{printbiblist}.
2267 The default is to use the same format as \hyperbibfieldformat{biblabeldate}.
2268
2269 \bibfieldformatitem{issuedate} The format of the \bibfield{issue} and
2270 \bibfield{date} information for \bibtype{article}s. By default this block is
2271 wrapped in round brackets.
2272 \begin{bibexample}
2273 \csuse{bbx@opt@mergedate@false}%
2274 \togglefalse{bbx:doi}
2275 \DeclareFieldFormat{issuedate}{\highlight{\bibopenparen}\highlight[2]{#1}%
2276 \highlight{\bibcloseparen}}
2277 \exampleprintbib{sigfridsson}
2278 \end{bibexample}
2279
2280 A customisation example for \bibfield{issuedate} can be found in the
2281 \hypercmd{volnumdatedelim} description.
2282
2283 \bibfieldformatitem{volumeof} The format for the \bibfield{volume} of a
2284 \bibfield{maintitle} used when \hyperkvopt{maintitleaftertitle}{true}.
2285 \begin{bibexample}
2286 \togglefalse{bbx:isbn}\toggletrue{bbx:maintitleaftertitle}
2287 \DeclareFieldFormat{volumeof}{\highlight{\bibstring{volume}}~%
2288 \highlight[2]{#1}}
2289 \exampleprintbib{knuth:ct:a}
2290 \end{bibexample}
2291
2292 \bibfieldformatitem{biblabeltitle}
2293 The format for the title when it is used in \blxstyle{authoryear}
2294 styles to replace a missing author/editor.
2295 The default settings mirror the default behaviour of the
2296 \bibfieldformat{title} field.
2297 \begin{bibexample}
2298 \DeclareFieldFormat{biblabeltitle}{\highlight[1]{#1}}%
2299 \exampleprintbib{jcg}
2300 \end{bibexample}
2301
2302 \bibfieldformatitem{titlecase:title} The standard styles follow an
2303 all-or-nothing approach when it comes to title casing. The field format
2304 \bibfieldformat{titlecase} intended to enable sentence case with
2305 \cmd{MakeSentenceCase*} is applied to all title-like fields alike. Finer
2306 control over the title casing of each field could require involved code.%
2307 \fnurl{https://tex.stackexchange.com/a/22981/}
2308 The field format \bibfieldformat{titlecase:title} is applied to the fields
2309 \bibfield{title} and \bibfield{subtitle}.
2310 By default this field format is an alias for \bibfieldformat{titlecase}.
2311
2312 \bibfieldformatitem{titlecase:booktitle}
2313 Like \hyperbibfieldformat{titlecase:title}, but controls the title casing
2314 of the \bibfield{booktitle} and \bibfield{booksubtitle} fields.
2315
2316 \bibfieldformatitem{titlecase:maintitle}
2317 Like \hyperbibfieldformat{titlecase:title}, but controls the title casing
2318 of the \bibfield{maintitle} and \bibfield{mainsubtitle} fields.
2319
2320 \bibfieldformatitem{titlecase:journaltitle}
2321 Like \hyperbibfieldformat{titlecase:title}, but controls the title casing
2322 of the \bibfield{journaltitle} and \bibfield{journalsubtitle} fields.
2323
2324 \bibfieldformatitem{titlecase:issuetitle}
2325 Like \hyperbibfieldformat{titlecase:title}, but controls the title casing
2326 of the \bibfield{issuetitle} and \bibfield{issuesubtitle} fields.
2327
2328 \bibfieldformatitem{titlecase:biblabeltitle}
2329 Like \hyperbibfieldformat{titlecase:title}, but controls the title casing
2330 of the title printed instead of missing author/editor name in
2331 \blxstyle{authoryear} styles.
2332
2333 The \bibfieldformat{citetitle} field format can be used to change the title
2334 case in author-title citations, so there is no
2335 \bibfieldformat{citetitle:labeltitle}.
2336
2337 \begin{bibexample}[title={Default output for \bibfieldformat{titlecase}
2338 field formats}]%
2339 \DeclareFieldFormat{titlecase:title}{\highlight[1]{#1}}
2340 \DeclareFieldFormat{titlecase:journaltitle}{\highlight[2]{#1}}
2341 \togglefalse{bbx:doi}
2342 \exampleprintbib{shore}
2343 \end{bibexample}
2344
2345 \begin{bibexample}[title={Example changes to \bibfieldformat{titlecase} field
2346 formats}]%
2347 \begin{lstlisting}[style=extblxstylelatex]
2348 \DeclareFieldFormat{titlecase:title}{|1\MakeSentenceCase*{#1}1|}
2349 \DeclareFieldFormat{titlecase:journaltitle}{|2#12|}
2350 \end{lstlisting}
2351 \tcblower
2352 \DeclareFieldFormat{titlecase:title}{\highlight[1]{\MakeSentenceCase*{#1}}}
2353 \DeclareFieldFormat{titlecase:journaltitle}{\highlight[2]{#1}}
2354 \togglefalse{bbx:doi}
2355 \exampleprintbib{shore}
2356 \end{bibexample}
2357 \end{bibfieldformatlist}
2358
2359 \subsection{Punctuation}\label{sec:opt:punct}
2360 The package provides the following commands to modify the delimiters and
2361 punctuation between fields.
2362 Normal punctuation commands should be redefined with \cmd{renewcommand},
2363 while context-sensitive commands marked with \CSdelim{} should be redefined
2364 with \cmd{DeclareDelimFormat}.
2365 A short overview over common punctuation commands defined by \sty{biblatex-ext}
2366 as well as standard \sty{biblatex} in an example bibliography
2367 can be found in \cref{sec:punctinuse}.
2368 \begin{ltxsyntax}
2369 \csitem{namenumberdelim}\CSdelimMark
2370 Similar to \cmd{nametitledelim}, but for the punctuation between
2371 the name and the label number in
2372 \hyperblxstyle[ext-authornumber]{ext-authornumber} styles.
2373 The default is a space.
2374 \begin{bibexample}
2375 \togglefalse{bbx:doi}
2376 % VERY hacky, but we can't easily switch styles
2377 \DeclareFieldFormat{biblabeldate}{\mkbibbrackets{1}}
2378 \DeclareDelimFormat[bib]{nameyeardelim}{\highlight{\textvisiblespace}}
2379 \exampleprintbib{sigfridsson}
2380 \end{bibexample}
2381
2382 \csitem{nonamenumberdelim}\CSdelimMark
2383 The replacement for \hypercmd{namenumberdelim} if the labelname
2384 does not exist and is replaced by a fallback.
2385 By default this is an alias of \hypercmd{namenumberdelim}.
2386
2387 \csitem{innametitledelim}\CSdelimMark
2388 Similar to \cmd{nametitledelim}, but for names after the \enquote{in:} if
2389 \hyperopt{innamebeforetitle} is \optval{true}.
2390 The default value is that of \cmd{nametitledelim} for all contexts.
2391 Since the definition of \cmd{nametitledelim} is different for the delimiter
2392 contexts \optval{bib} and \optval{biblist}, you may have to use the optional
2393 argument to redefine the delimiter.\footnote{The author admits that it is
2394 somewhat pointless to make \cmd{innametitledelim} context sensitive.
2395 But the obvious parallels with \cmd{nametitledelim} were too tempting.
2396 It is probably too late now.}
2397 \begin{bibexample}
2398 \toggletrue{bbx:innamebeforetitle}
2399 \togglefalse{bbx:isbn}
2400 \DeclareFieldFormat{editortype}{\mkbibparens{#1}}
2401 \DeclareDelimFormat{editortypedelim}{\addspace}
2402 \DeclareDelimFormat[bib,biblist]{innametitledelim}{\highlight{\textbf{%
2403 \addperiod}\textvisiblespace}\bibsentence}% <- hacky & hard-coded!
2404 \exampleprintbib{pines}
2405 \end{bibexample}
2406 \begin{remindbox}
2407 Note that \bibfieldformat{editortype} and \cmd{editortypedelim}
2408 were changed to
2409 \begin{biblatexcode}
2410 \DeclareFieldFormat{editortype}{\mkbibparens{#1}}
2411 \DeclareDelimFormat{editortypedelim}{\addspace}
2412 \end{biblatexcode}
2413 in this example to avoid punctuation clashes.
2414 \end{remindbox}
2415
2416 Since \cmd{nametitledelim} and \cmd{innametitledelim} are independent,
2417 the following output is easily achieved.
2418 Note that the optional argument to \cmd{DeclareDelimFormat} is used
2419 to make sure the definitions apply to the bibliography and bibliography lists
2420 contexts, this is necessary because these contexts have special pre-defined
2421 values that would otherwise not be redefined.
2422 \begin{bibexample}[title={Example customisations for \cs{innametitledelim}}]
2423 \begin{lstlisting}[style=extblxstylelatex]
2424 \ExecuteBibliographyOptions{innamebeforetitle=true}
2425 \DeclareDelimFormat[bib,biblist]{nametitledelim}{|1\addcolon\space1|}
2426 \DeclareDelimFormat[bib,biblist]{innametitledelim}{|2\addcomma\space2|}
2427 \end{lstlisting}
2428 \tcblower
2429 \toggletrue{bbx:innamebeforetitle}
2430 \DeclareDelimFormat[bib,biblist]{nametitledelim}{\highlightbf[1]{\addcolon}%
2431 \space}
2432 \DeclareDelimFormat[bib,biblist]{innametitledelim}{\highlightbf[2]{\addcomma}%
2433 \space}
2434 \exampleprintbib{gaonkar,gaonkar:in}
2435 \end{bibexample}
2436
2437 \csitem{maintitletitledelim}
2438 The punctuation between the \bibfield{maintitle} and \bibfield{title} or
2439 \bibfield{booktitle} of a work if \hyperopt{maintitleaftertitle} is
2440 \optval{false}.
2441 The default is \cs{newunitpunct}.
2442 \begin{bibexample}
2443 \togglefalse{bbx:isbn}
2444 \renewcommand*{\maintitletitledelim}{\highlight{\textbf{\addperiod}%
2445 \textvisiblespace}\bibsentence}% <- hacky & hard-coded!
2446 \exampleprintbib{knuth:ct:a}
2447 \end{bibexample}
2448
2449 \csitem{voltitledelim}
2450 The punctuation between the \bibfield{volume} and \bibfield{title} or
2451 \bibfield{booktitle} of a work if \hyperopt{maintitleaftertitle} is
2452 \optval{false}.
2453 The default is a colon followed by a space.
2454 \begin{bibexample}
2455 \togglefalse{bbx:isbn}
2456 \renewcommand*{\voltitledelim}{\highlight{\textbf{\addcolon}%
2457 \textvisiblespace}\bibsentence}
2458 \exampleprintbib{knuth:ct:a}
2459 \end{bibexample}
2460
2461 \csitem{titlemaintitledelim}
2462 The punctuation between the \bibfield{title} or \bibfield{booktitle} and
2463 \bibfield{maintitle} of a work if \hyperopt{maintitleaftertitle} is
2464 \optval{true}.
2465 The default is \cmd{newunitpunct}.
2466 \begin{bibexample}
2467 \togglefalse{bbx:isbn}
2468 \toggletrue{bbx:maintitleaftertitle}
2469 \renewcommand*{\titlemaintitledelim}{\highlight{\textbf{\addperiod}%
2470 \textvisiblespace}\bibsentence}%<- hacky & hard-coded!
2471 \exampleprintbib{knuth:ct:a}
2472 \end{bibexample}
2473
2474 \csitem{titleaddonpunct}
2475 The punctuation between \bibfield{title}\slash\bibfield{subtitle} and
2476 \bibfield{maintitle} as well as other \bibfield{title}-like and
2477 \bibfield{maintitle}-like fields. The default is \cmd{newunitpunct}
2478 \begin{bibexample}
2479 \renewcommand*{\titleaddonpunct}{\highlight{\textbf{\addperiod}%
2480 \textvisiblespace}\bibsentence}%<- hacky & hard-coded!
2481 \exampleprintbib{salam}
2482 \end{bibexample}
2483 \begin{bibexample}[title={Example customisation of \cmd{titleaddonpunct}}]
2484 \begin{lstlisting}[style=extblxstylelatex]
2485 \DeclareFieldFormat{booktitleaddon}{|1\mkbibbrackets{#1}1|}
2486 \renewcommand*{\titleaddonpunct}{\addspace}
2487 \end{lstlisting}
2488 \tcblower
2489 \DeclareFieldFormat{booktitleaddon}{\highlight{\mkbibbrackets{#1}}}
2490 \renewcommand*{\titleaddonpunct}{\addspace}
2491 \renewbibmacro*{event+venue+date}{}
2492 \exampleprintbib{salam}
2493 \end{bibexample}
2494
2495 \csitem{jourvoldelim}
2496 The delimiter between the \bibfield{journaltitle} and \bibfield{volume} fields
2497 for \bibtype{article} if no \bibfield{series} is present.
2498 The default is a space.
2499 \begin{bibexample}
2500 \togglefalse{bbx:doi}
2501 \renewcommand*{\jourvoldelim}{\highlight{\textvisiblespace}}
2502 \csuse{bbx@opt@mergedate@false}%
2503 \exampleprintbib{sigfridsson}
2504 \end{bibexample}
2505
2506 \begin{bibexample}[title={Example customisation of \cmd{jourvoldelim}
2507 and \cmd{volnumdelim}}]
2508 \begin{lstlisting}[style=extblxstylelatex]
2509 \DeclareFieldFormat[article,periodical]{volume}{|1\bibstring{jourvol}~#11|}
2510 \DeclareFieldFormat[article,periodical]{number}{|2\bibstring{number}~#12|}
2511 \renewcommand*{\jourvoldelim}{|1\addcomma\space1|}
2512 \renewcommand*{\volnumdelim}{|2\addcomma\space2|}
2513 \end{lstlisting}
2514 \tcblower
2515 \togglefalse{bbx:doi}
2516 \DeclareFieldFormat[article,periodical]{volume}{\highlight[1]{\bibstring{jourvol}~#1}}
2517 \DeclareFieldFormat[article,periodical]{number}{\highlight[2]{\bibstring{number}~#1}}
2518 \renewcommand*{\jourvoldelim}{\highlight[1]{\addcomma\space}}
2519 \renewcommand*{\volnumdelim}{\highlight[2]{\addcomma\space}}
2520 \csuse{bbx@opt@mergedate@false}%
2521 \exampleprintbib{sigfridsson}
2522 \end{bibexample}
2523
2524 \csitem{jourserdelim}
2525 The delimiter between the \bibfield{journaltitle} and \bibfield{series} fields
2526 for \bibtype{article}.
2527 The default is \cmd{newunitpunct}.
2528 \begin{bibexample}
2529 \togglefalse{bbx:doi}
2530 \csuse{bbx@opt@mergedate@false}%
2531 \renewcommand*{\jourserdelim}{\highlight{\textbf{\addperiod}\textvisiblespace}%
2532 \bibsentence% <- hacky ...
2533 }% <- hard-coded!
2534 \exampleprintbib{reese,shore}
2535 \end{bibexample}
2536
2537 \csitem{servoldelim}
2538 The delimiter between the \bibfield{series} and \bibfield{volume} fields
2539 for \bibtype{article}.
2540 The default is \hypercmd{jourvoldelim}.
2541 \begin{bibexample}
2542 \togglefalse{bbx:doi}
2543 \csuse{bbx@opt@mergedate@false}%
2544 \renewcommand*{\servoldelim}{\highlight{\textvisiblespace}}% <- hard-coded!
2545 \exampleprintbib{reese,shore}
2546 \end{bibexample}
2547
2548 \csitem{volnumdatedelim}
2549 The delimiter between the \bibfield{volume}, \bibfield{number} block and the
2550 date information for \bibtype{article}.
2551 The default is a space.
2552 \begin{bibexample}
2553 \togglefalse{bbx:doi}
2554 \csuse{bbx@opt@mergedate@false}%
2555 \renewcommand*{\volnumdatedelim}{\highlight{\textvisiblespace}}
2556 \exampleprintbib{sigfridsson}
2557 \end{bibexample}
2558 \begin{bibexample}[title={Example customisation of \cmd{volnumdatedelim}}]
2559 \begin{lstlisting}[style=extblxstylelatex]
2560 \DeclareFieldFormat{issuedate}{|1#11|}
2561 \renewcommand*{\volnumdatedelim}{|2\addcomma\space2|}
2562 \end{lstlisting}
2563 \tcblower
2564 \togglefalse{bbx:doi}
2565 \csuse{bbx@opt@mergedate@false}%
2566 \DeclareFieldFormat{issuedate}{\highlight[1]{#1}}
2567 \renewcommand*{\volnumdatedelim}{\highlight[2]{\addcomma\space}}
2568 \exampleprintbib{sigfridsson}
2569 \end{bibexample}
2570
2571
2572 \csitem{volnumdelim}
2573 The delimiter between \bibfield{volume} and \bibfield{number} for
2574 \bibtype{article}.
2575 The default is a dot.
2576 \begin{bibexample}
2577 \togglefalse{bbx:doi}
2578 \renewcommand*{\volnumdelim}{\highlightbf{\adddot}}
2579 \exampleprintbib{sigfridsson}
2580 \end{bibexample}
2581
2582 \begin{bibexample}[title={Example customisation of~\cmd{volnumdelim}}]
2583 \begin{lstlisting}[style=extblxstylelatex]
2584 \DeclareFieldFormat[article,periodical]{number}{|1\mkbibparens{#1}1|}
2585 \renewcommand*{\volnumdelim}{}
2586 \end{lstlisting}
2587 \tcblower
2588 \togglefalse{bbx:doi}
2589 \DeclareFieldFormat[article,periodical]{number}{\highlight{\mkbibparens{#1}}}
2590 \renewcommand*{\volnumdelim}{}
2591 \exampleprintbib{sigfridsson}
2592 \end{bibexample}
2593
2594 \csitem{sernumdelim}
2595 The delimiter between \bibfield{series} and \bibfield{number} for
2596 \bibtype{book}- and \bibtype{inbook}-like entries.
2597 The default is a space.
2598 \begin{bibexample}
2599 \renewcommand*{\sernumdelim}{\highlight{\textvisiblespace}}
2600 \exampleprintbib{coleridge}
2601 \end{bibexample}
2602
2603 \csitem{locdatedelim}
2604 The delimiter between \bibfield{location} and \bibfield{date}.
2605 The default is a comma followed by a space.
2606 \begin{bibexample}
2607 \renewcommand*{\locdatedelim}{\highlight{\textbf{\addcomma}\textvisiblespace}}
2608 \csuse{bbx@opt@mergedate@false}%
2609 \exampleprintbib{jaffe}
2610 \end{bibexample}
2611
2612 \csitem{locpubdelim}
2613 The delimiter between \bibfield{location} and \bibfield{publisher}\slash%
2614 \bibfield{organization}\slash\bibfield{institution}.
2615 The default is a colon followed by a space.
2616 \begin{bibexample}
2617 \csuse{bbx@opt@mergedate@false}%
2618 \renewcommand*{\locpubdelim}{\highlight{\textbf{\addcolon}\textvisiblespace}}
2619 \exampleprintbib{knuth:ct:a}
2620 \end{bibexample}
2621
2622
2623 \csitem{publocdelim}
2624 The delimiter between \bibfield{publisher}\slash
2625 \bibfield{organization}\slash
2626 \bibfield{institution} and \bibfield{location}.
2627 The default is a comma followed by a space.
2628 This delimiter is not used by the default style, since the standard
2629 order of fields is \bibfield{location}, \bibfield{publisher}\slash
2630 \bibfield{organization}\slash\bibfield{institution}, \bibfield{date}.
2631 You could use \cmd{publocdelim} if you changed the order of these
2632 fields to \bibfield{publisher}\slash\bibfield{organization}\slash
2633 \bibfield{institution}, \bibfield{location} \bibfield{date} by
2634 redefining the bibmacro~\bibmacro{pubinstorg+location+date} as follows.
2635 \begin{bibexample}[title={Example use of \cmd{publocdelim}
2636 and \cmd{locdatedelim}}]
2637 \begin{lstlisting}[style=extblxstylelatex]
2638 \renewbibmacro*{pubinstorg+location+date}[1]{%
2639 \printlist{#1}%
2640 \setunit*{|1\publocdelim1|}%
2641 \printlist{location}%
2642 \setunit*{|2\locdatedelim2|}%
2643 \usebibmacro{date}%
2644 \newunit}
2645 \end{lstlisting}
2646 \tcblower
2647 \renewcommand*{\publocdelim}{\highlight[1]{\textbf{\addcomma}\textvisiblespace}}
2648 \renewcommand*{\locdatedelim}{\highlight[2]{%
2649 \textbf{\addcomma}\textvisiblespace}}
2650 \renewbibmacro*{pubinstorg+location+date}[1]{%
2651 \printlist{#1}%
2652 \setunit*{\publocdelim}%
2653 \printlist{location}%
2654 \setunit*{\locdatedelim}%
2655 \usebibmacro{date}%
2656 \newunit}
2657 \csuse{bbx@opt@mergedate@false}%
2658 \exampleprintbib{knuth:ct:a}
2659 \end{bibexample}
2660
2661
2662 \csitem{pubdatedelim}
2663 The delimiter between \bibfield{publisher}\slash\bibfield{organization}\slash
2664 \bibfield{institution} and \bibfield{date}.
2665 The default is a comma followed by a space.
2666 \begin{bibexample}
2667 \renewcommand*{\pubdatedelim}{\highlight{\textbf{\addcomma}\textvisiblespace}}
2668 \csuse{bbx@opt@mergedate@false}%
2669 \exampleprintbib{knuth:ct:a}
2670 \end{bibexample}
2671 \begin{bibexample}[title={Example customisation of \cmd{pubdatedelim}}]
2672 \begin{lstlisting}[style=extblxstylelatex]
2673 \renewcommand*{\pubdatedelim}{\addspace}
2674 \end{lstlisting}
2675 \tcblower
2676 \renewcommand*{\pubdatedelim}{\addspace}
2677 \csuse{bbx@opt@mergedate@false}%
2678 \exampleprintbib{knuth:ct:a}
2679 \end{bibexample}
2680
2681
2682 \csitem{extradateonlycompcitedelim}\CSdelimMark
2683 Similar to \cmd{compcitedelim}, but indended for use between compressed
2684 author-year citations where the second is an \bibfield{extradate} only.
2685 The default is a comma (\emph{not} followed by a space).
2686 \begin{bibexample}
2687 \DeclareDelimFormat{extradateonlycompcitedelim}{\highlightbf{\addcomma}}
2688 \cite{knuth:ct:b,knuth:ct:c}
2689 \end{bibexample}
2690
2691
2692 \csitem{extradateonlycompciterangedelim}\CSdelimMark
2693 Similar to \hypercmd{extradateonlycompcitedelim}, but indended for use in a
2694 compressed list of \bibfield{extradate}s in the \blxstyle{-ecomp} styles.
2695 The default is \cmd{bibrangedash}.
2696 \begin{bibexample}
2697 \DeclareDelimFormat{extradateonlycompciterangedelim}{%
2698 \highlightbf{\bibrangedash}}
2699 \cite{knuth:ct:b,knuth:ct:c,knuth:ct:d}
2700 \end{bibexample}
2701
2702
2703 \csitem{extranameonlycompcitedelim}\CSdelimMark
2704 Similar to \cmd{compcitedelim}, but indended for use between compressed
2705 author-number citations.
2706 The default is a comma (\emph{not} followed by a space).
2707
2708 \csitem{extranameonlycompciterangedelim}\CSdelimMark
2709 Similar to \hypercmd{extranameonlycompcitedelim}, but indended for use in a
2710 compressed list of \bibfield{extraname}s in the \blxstyle{-ecomp} styles.
2711 The default is \cmd{bibrangedash}.
2712 \end{ltxsyntax}
2713
2714 \subsection{Delimiters for citation commands}\label{sec:opt:citedelims}
2715 The delimiters for citation commands provided by the styles of this bundle
2716 offer a simple way to customise the bracketing of citation commands.
2717
2718 The citation commands \cmd{cite}, \cmd{parencite} and \cmd{textcite} come with
2719 two sets of delimiters: A pair of \emph{outer delimiters} wrapped around the
2720 resulting citation in its entirety and a pair of \emph{inner delimiters} that
2721 sets off certains bits of the citation label from other information.
2722 An example for outer delimiters would be the round brackets of \cmd{parencite}
2723 for \hyperblxstyle[ext-authoryear]{authoryear}-like styles or the
2724 square brackets of \cmd{cite} for \hyperblxstyle[ext-numeric]{numeric}- or
2725 \hyperblxstyle[ext-alphabetic]{alphabetic}-like styles.
2726 Inner delimiters would be the round brackets in \cmd{textcite} around
2727 the year for \hyperblxstyle[ext-authoryear]{authoryear} or around the title for
2728 \hyperblxstyle[ext-authortitle]{authortitle}.
2729 See \cref{tab:citationdelims} for more details.
2730
2731 The delimiters are set up to work as paired delimiters, but you are free to
2732 use non-matching pairs or to leave the opening or closing delimiter empty.
2733 If you want to add punctuation, the context-sensitive delimiters
2734 \gencode{nameyeardelim}, \gencode{nametitledelim},
2735 \gencode{postnotedelim} and friends are more approriate.
2736
2737 \begin{remindbox}
2738 Although the outer delimiters can be set up using \cmd{DeclareCiteCommand}'s
2739 optional \prm{wrapper} argument for most styles, this is not possible for all
2740 styles.
2741 Similarly, inner delimiters can be set up with \cmd{DeclareFieldFormat} in some
2742 styles, but other styles need more intricate implementations.
2743 This means that the commands discussed here can be used to place the citations
2744 between delimiters, but not natively to pass the result of a citation to a
2745 wrapper command as an argument.
2746 \end{remindbox}
2747
2748 \begin{table}[btph]
2749 \centering
2750 \caption[Outer and inner citation delimiters by style]{\highlight[1]{Outer} and
2751 \highlight[2]{inner} citation delimiters by style. If the style does not use
2752 the delimiters by default, \mpdl{} and \mpdr{} are substituted in the
2753 appropriate place.}
2754 \label{tab:citationdelims}
2755 \begin{tabular}{@{}llll@{}}
2756 \toprule
2757 & \multicolumn{3}{c}{Citation command}\\
2758 \cmidrule(lr){2-4}
2759 Style family & \cmd{cite} & \cmd{parencite} & \cmd{textcite}\\
2760 \midrule
2761 \blxstyle{alphabetic} & \highlightbf[1]{[}Knu84\highlightbf[1]{]} &
2762 \highlightbf[1]{[}Knu84\highlightbf[1]{]} & \highlightbf[1]{\hmpdl}Knuth
2763 \highlightbf[2]{[}Knu84\highlightbf[2]{]}\highlightbf[1]{\hmpdr}\\
2764 \blxstyle{numeric} & \highlightbf[1]{[}2\highlightbf[1]{]} &
2765 \highlightbf[1]{[}2\highlightbf[1]{]} & \highlightbf[1]{\hmpdl}Knuth
2766 \highlightbf[2]{[}2\highlightbf[2]{]}\highlightbf[1]{\hmpdr}\\
2767 \blxstyle{authortitle} & \highlightbf[1]{\hmpdl}Knuth,
2768 \highlightbf[2]{\hmpdl}\emph{\TeX book}\highlightbf[2]{\hmpdr}%
2769 \highlightbf[1]{\hmpdr} & \highlightbf[1]{(}Knuth,
2770 \highlightbf[2]{\hmpdl}\emph{\TeX book}\highlightbf[2]{\hmpdr}%
2771 \highlightbf[1]{)} & \highlightbf[1]{\hmpdl}Knuth \highlightbf[2]{(}%
2772 \emph{\TeX book}\highlightbf[2]{)}\highlightbf[1]{\hmpdr}\\
2773 \blxstyle{authoryear} & \highlightbf[1]{\hmpdl}Knuth
2774 \highlightbf[2]{\hmpdl}1984\highlightbf[2]{\hmpdr}%
2775 \highlightbf[1]{\hmpdr} & \highlightbf[1]{(}Knuth
2776 \highlightbf[2]{\hmpdl}1984\highlightbf[2]{\hmpdr}%
2777 \highlightbf[1]{)} & \highlightbf[1]{\hmpdl}Knuth
2778 \highlightbf[2]{(}1984\highlightbf[2]{)}\highlightbf[1]{\hmpdr}\\
2779 \blxstyle{authornumber} & \highlightbf[1]{\hmpdl}Knuth
2780 \highlightbf[2]{[}1\highlightbf[2]{]}%
2781 \highlightbf[1]{\hmpdr} & \highlightbf[1]{(}Knuth
2782 \highlightbf[2]{\hmpdl}1\highlightbf[2]{\hmpdr}%
2783 \highlightbf[1]{)} & \highlightbf[1]{\hmpdl}Knuth
2784 \highlightbf[2]{[}1\highlightbf[2]{]}\highlightbf[1]{\hmpdr}\\
2785 \bottomrule
2786 \end{tabular}
2787 \end{table}
2788
2789 \begin{ltxsyntax}
2790 \cmditem{DeclareOuterCiteDelims}{cite command}{opening delimiter}
2791 {closing delimiter}
2792
2793 Sets up the outer delimiters for the citation command
2794 \cmd{\prm{cite command}}. The name of the \prm{cite command}
2795 is given without leading backslash in the argument, it normally corresponds to
2796 the delimiter context.
2797
2798 Note that outer citation delimiters are often hard-coded so they usually do not
2799 respond to delimiter context aliases.
2800 Inner citation delimiters, on the other hand, usually follow delimiter context
2801 aliases.
2802 This may lead to initially surprising results if aliases are used.
2803
2804 You may use almost any input for \prm{opening delimiter} and
2805 \prm{closing delimiter} as long as typesetting of
2806 \enquote{\prm{opening delimiter}text\prm{closing delimiter}} does not lead to
2807 errors when arbitrary grouping such as
2808 \enquote{\{\prm{opening delimiter}\allowbreak text\}\allowbreak
2809 \prm{closing delimiter}}
2810 or \enquote{\prm{opening delimiter}\allowbreak text\allowbreak
2811 \{\prm{closing delimiter}\}}
2812 is introduced.
2813 It cannot be guaranteed that the opening and closing delimiters are executed
2814 at the same level of grouping, let alone in the same group.
2815 As mentioned above, citation delimiters cannot be used to introduce a
2816 wrapper command for the citation output, i.e.\ to pass the entire output of the
2817 citation command as argument to a macro.
2818
2819 Instead of hard-coded \gencode{(}, \gencode{)}, \gencode{[} and \gencode{]}
2820 their \sty{biblatex} counterparts \cmd{bibopenparen}, \cmd{bibcloseparen},
2821 \cmd{bibopenbracket} and \cmd{bibclosebracket} are preferable, since these
2822 commands respond to nesting and check if opening brackets are always closed.
2823
2824 \cmditem{DeclareOuterCiteDelimsAlias}{cite alias}{cite command}
2825 \cmditem*{DeclareOuterCiteDelimsAlias*}{cite alias}{cite command}
2826
2827 Use the outer delimiters of \cmd{\prm{cite command}} for
2828 \cmd{\prm{cite alias}} as well.
2829 The unstarred version uses \cmd{def} assignment while the starred version uses
2830 \cmd{let}. This means that the starred version copies the values of the
2831 definitions at the time of executing the aliasing command,
2832 whereas the alias created by the unstarred version will only evaluate the
2833 delimiters whenever the citation command is called.
2834
2835 \cmditem{UndeclareOuterCiteDelims}{cite command}
2836
2837 Completely remove the definitions of the outer delimiters for
2838 \cmd{\prm{cite command}}.
2839
2840 \cmditem{DeclareInnerCiteDelims}{cite command}{opening delimiter}
2841 {closing delimiter}
2842
2843 Sets up the inner delimiters for the citation command
2844 \cmd{\prm{cite command}}.
2845
2846 This command is similar to \hypercmd{DeclareOuterCiteDelims} and the same
2847 restrictions for the arguments apply.
2848
2849 Note that inner citation delimiters usually follow context delimiter aliases.
2850 Outer citation delimiters, on the other hand, do not respond to context
2851 delimiter aliases.
2852 This may lead to initially surprising results if aliases are used.
2853
2854 \cmditem{DeclareInnerCiteDelimsAlias}{cite alias}{cite command}
2855 \cmditem*{DeclareInnerCiteDelimsAlias*}{cite alias}{cite command}
2856
2857 Use the inner delimiters of \cmd{\prm{cite command}} for
2858 \cmd{\prm{cite alias}} as well.
2859 The unstarred version uses \cmd{def} assignment while the starred version uses
2860 \cmd{let}. This means that the starred version copies the values of the
2861 definitions at the time of executing the aliasing command,
2862 whereas the alias created by the unstarred version will only evaluate the
2863 delimiters whenever the citation command is called.
2864
2865 \cmditem{UndeclareInnerCiteDelims}{cite command}
2866
2867 Completely remove the definitions of the inner delimiters for
2868 \cmd{\prm{cite command}}.
2869
2870 \cmditem{UndeclareCiteDelims}{cite command}
2871
2872 Remove inner and outer delimiters for \cmd{\prm{cite command}}
2873 by calling \cmd{UndeclareOuterCiteDelims}
2874 and \cmd{UndeclareInnerCiteDelims}.
2875
2876 \cmditem{RegisterCiteDelims}{modifier}{cite command}
2877
2878 Register a pair of \prm{modifier} citation delimiters for
2879 \cmd{\prm{cite command}}.
2880 This command will define a delimiter wrapper command
2881 \cmd{mk\prm{modifier}\prm{cite command}s} that places its argument between
2882 the opening delimiter
2883 \cs{ext\allowbreak blx@\allowbreak cite\allowbreak delim@\allowbreak
2884 \prm{cite command}@\allowbreak\prm{modifier}@\allowbreak open} and
2885 the closing delimiter
2886 \cs{ext\allowbreak blx@\allowbreak cite\allowbreak delim@\allowbreak
2887 \prm{cite command}@\allowbreak\prm{modifier}@\allowbreak close}.
2888 No error will be raised if the opening or closing delimiters are not defined,
2889 but an error will be raised if \cmd{mk\prm{modifier}\prm{cite command}s} is
2890 already defined.
2891
2892 The styles of this bundle only use the values \optval{outer} and \optval{inner}
2893 for \prm{modifier}, but other values are possible. With \optval{outer} and
2894 \optval{inner} you can use \hypercmd{DeclareOuterCiteDelims} or
2895 \hypercmd{DeclareInnerCiteDelims} and friends to define the opening and closing
2896 delimiters, otherwise you need to define them manually.
2897
2898 All styles of \sty{biblatex-ext} define the wrapper commands listed in
2899 \cref{tab:delimwrappers}.
2900 \begin{table}[btph]
2901 \centering
2902 \caption{Delimiter wrappers defined by \sty{biblatex-ext}}
2903 \label{tab:delimwrappers}
2904 \begin{minipage}{\linewidth}
2905 \renewcommand\footnoterule{}
2906 \centering
2907 \begin{tabular}{@{}lll@{}}
2908 \toprule
2909 & \multicolumn{2}{c}{Modifier} \\
2910 \cmidrule(lr){2-3}
2911 Citation command & Outer & Inner\\
2912 \midrule
2913 \cmd{cite} & \cmd{mkoutercitedelims} & \cmd{mkinnercitedelims}\\
2914 \cmd{parencite} & \cmd{mkouterparencitedelims} & \cmd{mkinnerparencitedelims}\\
2915 \cmd{textcite} & \cmd{mkoutertextcitedelims} & \cmd{mkinnertextcitedelims}\\
2916 \cmd{footcite} & \cmd{mkouterfootcitedelims} & \cmd{mkinnerfootcitedelims}\\
2917 \cmd{supercite}\footnote{If defined by the citation style.}
2918 & \cmd{mkoutersupercitedelims} & ---\\
2919 \enquote{\cmd{bbx@xrefcite}}%
2920 \footnote{Not implemented as a citation command, but can be
2921 customised as if it were.}
2922 & \cmd{mkouterbbx@xrefcitedelims} &
2923 \cmd{mkinnerbbx@xrefcitedelims}\\
2924 \enquote{\cmd{bbx@introcite}} & ---%
2925 \footnote{Use the field format \bibfieldformat{bbx@introcite} instead,
2926 see \cref{sec:opt:style}.} & \cmd{mkinnerbbx@introcitedelims}\\
2927 \bottomrule
2928 \end{tabular}
2929 \end{minipage}
2930 \end{table}
2931
2932
2933 The default setup for \hyperblxstyle{ext-authoryear} mirroring
2934 the standard \blxstyle{authoryear} is as follows.
2935 %
2936 \begin{bibexample}[title={\cmd{parencite} setup of
2937 \blxstyle{ext-authoryear}}]
2938 \begin{lstlisting}[style=extblxstylelatex]
2939 \DeclareOuterCiteDelims{parencite}{\bibopenparen}{\bibcloseparen}
2940 \DeclareInnerCiteDelims{parencite}{}{}
2941 \end{lstlisting}
2942 \tcblower
2943 lorem \parencite{knuth:ct:a} ipsum \parencite{sigfridsson}
2944 \end{bibexample}
2945 %
2946 \begin{bibexample}[title={\cmd{textcite} setup of
2947 \blxstyle{ext-authoryear}}]
2948 \begin{lstlisting}[style=extblxstylelatex]
2949 \DeclareOuterCiteDelims{textcite}{}{}
2950 \DeclareInnerCiteDelims{textcite}{\bibopenparen}{\bibcloseparen}
2951 \end{lstlisting}
2952 \tcblower
2953 lorem \textcite{knuth:ct:a} ipsum \textcite{sigfridsson}
2954 \end{bibexample}
2955 %
2956 If you wanted \cmd{parencite} of \hyperblxstyle{ext-authoryear}
2957 to look like \enquote{[Sigfridsson and Worman (1998)]} you would use
2958 \citereset
2959 \begin{bibexample}
2960 \begin{lstlisting}[style=extblxstylelatex]
2961 \DeclareOuterCiteDelims{parencite}{|1\bibopenbracket1|}{|1\bibclosebracket1|}
2962 \DeclareInnerCiteDelims{parencite}{|2\bibopenparen2|}{|2\bibcloseparen2|}
2963 \end{lstlisting}
2964 \tcblower
2965 \DeclareOuterCiteDelims{parencite}{\highlightbf[1]{\bibopenbracket}}{%
2966 \highlightbf[1]{\bibclosebracket}}
2967 \DeclareInnerCiteDelims{parencite}{\highlightbf[2]{\bibopenparen}}{%
2968 \highlightbf[2]{\bibcloseparen}}
2969 \parencite{sigfridsson}\quad\parencite{worman,geer}\quad
2970 \parencite{knuth:ct:a,knuth:ct:b,knuth:ct:c}
2971 \end{bibexample}
2972 \end{ltxsyntax}
2973
2974 \subsection{Selected bibliography macros}\label{sec:opt:bibmacros}
2975 The following macros are defined in \filename{ext-standard.bbx} and may make
2976 certain things easier to customise.
2977 Many of these macros are replacements for bare \cmd{printfield} or
2978 \cmd{printlist} in the bibliography drivers, or pack a frequently-used
2979 sequence of commands into one central place.
2980
2981 \begin{keymarglistbook}
2982 \keyitem[barevolume+volumes]
2983 A bibliography macro to print the \bibfield{volume}, \bibfield{part} and
2984 \bibfield{volumes} fields for \bibtype{mvbook}-, \bibtype{book}- and
2985 \bibtype{inbook}-like entry types.
2986 If \bibfield{maintitle} is defined, the \bibfield{volume} and \bibfield{part}
2987 fields will be printed by \bibmacro{maintitle+title} or
2988 \bibmacro{maintitle+booktitle} instead.
2989
2990 \begin{bibexample}
2991 \renewbibmacro*{barevolume+volumes}{%
2992 \printtext[highlight1]{%
2993 \iffieldundef{maintitle}
2994 {\printfield{volume}%
2995 \printfield{part}}
2996 {}%
2997 \newunit
2998 \printfield{volumes}}}
2999 \csuse{bbx@opt@mergedate@false}%
3000 \exampleprintbib{knuth:ct,matuz:doody}
3001 \end{bibexample}
3002
3003 \keyitem[edition]
3004 A bibliography macro to print the \bibfield{edition} field, this avoids a direct
3005 \lstinline|\printfield{edition}| in the bibliography drivers.
3006 This bibliography macro is particularly useful to suppress the
3007 \bibfield{edition} field in its standard position to print it elsewhere
3008 without having to use \cmd{clearfield}, \cmd{savefield} and \cmd{restorefield}.
3009 \begin{bibexample}[title={Example use of the \bibmacro{edition} bibmacro
3010 for superscript edition before date}]
3011 \begin{lstlisting}[style=extblxstylelatex]
3012 \renewbibmacro*{edition}{}
3013
3014 \DeclareFieldFormat{superedition}{\textsuperscript{#1}}
3015 \newbibmacro*{superedition}{%
3016 \iffieldnums{edition}
3017 {\printfield[superedition]{edition}}
3018 {\printfield{edition}%
3019 \setunit{\addspace}}}
3020
3021 \renewcommand*{\pubdatedelim}{\addspace}
3022 \renewcommand*{\locdatedelim}{\pubdatedelim}
3023 \renewbibmacro*{pubinstorg+location+date}[1]{%
3024 \printlist{location}%
3025 \iflistundef{#1}
3026 {\setunit*{\locdatedelim}}
3027 {\setunit*{\locpubdelim}}%
3028 \printlist{#1}%
3029 \setunit*{\pubdatedelim}%
3030 \usebibmacro{superedition}%
3031 \usebibmacro{date}%
3032 \newunit}
3033 \end{lstlisting}
3034 \tcblower
3035 \renewbibmacro*{edition}{}
3036 \DeclareFieldFormat{superedition}{\textsuperscript{#1}}
3037 \newbibmacro*{superedition}{%
3038 \iffieldnums{edition}
3039 {\printfield[superedition]{edition}}
3040 {\printfield{edition}%
3041 \setunit{\addspace}}}
3042 \renewcommand*{\pubdatedelim}{\addspace}
3043 \renewcommand*{\locdatedelim}{\pubdatedelim}
3044 \renewbibmacro*{pubinstorg+location+date}[1]{%
3045 \printlist{location}%
3046 \iflistundef{#1}
3047 {\setunit*{\locdatedelim}}
3048 {\setunit*{\locpubdelim}}%
3049 \printlist{#1}%
3050 \setunit*{\pubdatedelim}%
3051 \usebibmacro{superedition}%
3052 \usebibmacro{date}%
3053 \newunit}
3054 \csuse{bbx@opt@mergedate@false}%
3055 \exampleprintbib{malinowski}
3056 \end{bibexample}
3057
3058 \keyitem[version]
3059 Similar to the \hyperbibmacro{edition} bibliography macro, \bibmacro{version}
3060 prints the \bibfield{version} field, this avoids a direct
3061 \lstinline|\printfield{version}| in the bibliography drivers.
3062
3063 \keyitem[pagetotal]
3064 Similar to the \hyperbibmacro{edition} bibliography macro, \bibmacro{pagetotal}
3065 prints the \bibfield{pagetotal} field, this avoids a direct
3066 \lstinline|\printfield{pagetotal}| in the bibliography drivers.
3067
3068 \keyitem[in:editor(+others)]
3069 The bibliography macro to print the \bibfield{editor} before the
3070 \bibfield{booktitle} for \bibtype{inbook}, \bibtype{incollection} and
3071 \bibtype{inproceedings} when \hyperopt{innamebeforetitle} is set to
3072 \optval{true}.
3073 The \cmd{printname} uses the name format \bibfield{ineditor}.
3074
3075 \keyitem[language]
3076 A bibliography macro to print the \bibfield{language} field, this avoids a
3077 direct \lstinline|\printlist{language}| in the bibliography drivers.
3078
3079 \keyitem[note]
3080 A bibliography macro to print the \bibfield{note} field, this avoids a direct
3081 \lstinline|\printfield{note}| in the bibliography drivers.
3082
3083 \keyitem[pubinstorg+location+date]
3084 A general-purpose bibliography macro to catch
3085 \bibmacro{publisher+location+date},
3086 \bibmacro{institution+location+date} and \bibmacro{organization+location+date}.
3087 This bibliography macro has one mandatory argument: the name of a list field,
3088 sensible values are \bibfield{publisher}, \bibfield{institution} and
3089 \bibfield{organization}.
3090 By default the macro is defined and used as follows.
3091 \begin{biblatexcode}
3092 \newbibmacro*{pubinstorg+location+date}[1]{%
3093 \printlist{location}%
3094 \iflistundef{|#1|}
3095 {\setunit*{\locdatedelim}}
3096 {\setunit*{\locpubdelim}}%
3097 \printlist{|#1|}%
3098 \setunit*{\pubdatedelim}%
3099 \usebibmacro{date}%
3100 \newunit}
3101
3102 \renewbibmacro*{|publisher|+location+date}{%
3103 \usebibmacro{pubinstorg+location+date}{|publisher|}}
3104
3105 \renewbibmacro*{|institution|+location+date}{%
3106 \usebibmacro{pubinstorg+location+date}{|institution|}}
3107
3108 \renewbibmacro*{|organization|+location+date}{%
3109 \usebibmacro{pubinstorg+location+date}{|organization|}}
3110 \end{biblatexcode}
3111
3112 An example use of \bibmacro{pubinstorg+location+date} is shown
3113 in the description of~\hypercmd{publocdelim}.
3114
3115 \keyitem[type+number]
3116 A bibliography macro to print the \bibfield{type} and \bibfield{number} fields.
3117 \end{keymarglistbook}
3118
3119 \clearpage
3120 \section{Tabular Bibliographies}\label{sec:tabularbib}
3121 \label{exltd@itm@biblatex-ext-tabular}
3122 An experimental addition to this bundle is the package
3123 \sty{biblatex-ext-tabular} which allows you to typeset tabular
3124 (two-column) bibliographies.
3125 The package must be loaded after \sty{biblatex} and has no further options.
3126 \begin{biblatexcode}
3127 \usepackage[(*@\prm{options}@*)]{biblatex}
3128 (*@\dots @*)
3129 \usepackage{biblatex-ext-tabular}
3130 \end{biblatexcode}
3131 If it turns out that the tabular bibliography package is useful on its own,
3132 it may be split off from the rest of this bundle in the future.
3133 In that case the name \sty{biblatex-ext-tabular} may be deprecated in favour
3134 of something more snappy.
3135 The old name should then continue to work, but you may have to install a new
3136 package to be able to use it.
3137
3138 The package \sty{biblatex-ext-tabular} can be used independently of the styles
3139 provided in this bundle.
3140 But no matter what style you use, you will probably have to apply some tweaks
3141 here and there to make the output look acceptable.
3142
3143 The code for the tabular bibliographies is based on Audrey's%
3144 \fnurl{https://tex.stackexchange.com/users/4483/audrey}
3145 answer to a question%
3146 \fnurl{https://tex.stackexchange.com/q/71088/35864}
3147 on \tex{}~--~\latex{} Stack Exchange.
3148 The code has been modernised to keep in sync with changes to internal macros
3149 and modified to allow for slightly more flexible setups, so any bugs you find
3150 are mine and not Audrey's. Please report them via the channels mentioned above
3151 in~\cref{sec:feedback}.
3152
3153 Before tabular bibliographies can be used, a suitable definition
3154 must be supplied with \hypercmd{defbibtabular}.
3155
3156 \begin{ltxsyntax}
3157 \cmditem{printbibtabular}[key=value, \dots]
3158
3159 This commands prints a tabular bibliography.
3160 It accepts the same options as \cmd{printbibliography}, but note that
3161 \optval{env} must be a tabular bibliography declared with
3162 \hypercmd{defbibtabular}.
3163 The default value for \optval{env} is \optval{bibtabular}.
3164
3165 \begin{warnbox}
3166 Note that there is no default definition for the
3167 \opt{bibtabular} environment, so you must define it with
3168 \hypercmd{defbibtabular} before use.
3169 An error will be issued if you fail to provide a definition
3170 for \optval{bibtabular} before you use \cmd{printbibtabular} with the default
3171 \optval{env} value and no bibliography will be printed.
3172 \end{warnbox}
3173
3174 \cmditem{defbibtabular}{name}{begin code}{end code}{row code}
3175
3176 This command defines a tabular bibliography.
3177 The \prm{name} is an identifier passed to the \optval{env} option of
3178 \hypercmd{printbibtabular} when selecting the environment.
3179 The \prm{begin code} is \latex{} code to be executed at the beginning of the
3180 environment, usually it will begin a tabular environment.
3181 The \prm{end code} is executed at the end of the environment and would
3182 usually end the tabular environment.
3183 The \prm{row code} holds the code for one row in the tabular bibliography,
3184 it should have no more columns than ordered in \prm{begin code} and should
3185 end with \lstinline|\\|.
3186
3187 \begin{remindbox}
3188 Please keep in mind that the tabular bibliography is subject to all limitations
3189 of the particular tabular environment you decide to use.
3190 \end{remindbox}
3191
3192 Within the \prm{row code} argument the following macros are defined and can be
3193 used to typeset the result of bibliography macros.
3194 Each cell should normally be wrapped into exactly one of the following macros
3195 since they are responsible for providing the necessary entry data to the
3196 bibliography macros.
3197
3198 \cmditem{plain}{code}
3199
3200 Typesets \prm{code} with the entry data of the current entry.
3201
3202 \cmditem{plainlang}{code}
3203
3204 Like \cmd{plain}, but typesets \prm{code} in the language of the current
3205 item if the language switching options are enabled.
3206
3207 \cmditem{anchor}{code}
3208
3209 Like \cmd{plain}, but additionally sets a link anchor for the current entry.
3210 That link anchor is used when a citation links to the bibliography entry.
3211 There should only be one \cmd{anchor} or \hypercmd{anchorlang} per entry (and
3212 hence per row),
3213 and for proper linking there should be at least one.
3214 Usually \cmd{anchor} or \hypercmd{anchorlang} is the first cell in a row.
3215
3216 \cmditem{anchorlang}{code}
3217
3218 Like \hypercmd{anchor}, but in the entry language like \hypercmd{plainlang}.
3219
3220 \cmditem{driver}{precode}
3221
3222 Typesets the bibliography entry using the correct driver.
3223 This always uses the entry language if language switching is enabled.
3224 The \prm{precode} argument can be used to execute code before the driver
3225 is executed.
3226 Usually \cmd{driver} would be issued in the last (and widest) cell in a row,
3227 duplicate information can be cleaned up with help of the \prm{precode} argument.
3228
3229 Recall that standard \env{tabular} can't break across pages, so you may want
3230 to give \env{longtable} a try.
3231 Additionally, the standard column specifiers \gencode{l}, \gencode{r} and
3232 \gencode{c} define flexible-sized columns which might not be appropriate here;
3233 \gencode{p} defines fixed-width columns but imposes justification, which does
3234 not look good if the columns are too narrow.
3235 You may want to look into fixed-width flush-left or flush-right columns%
3236 \fnurl{https://tex.stackexchange.com/q/12703/35864}.
3237 \end{ltxsyntax}
3238
3239 The package also defines two helpful bibliography macros.
3240 \begin{keymarglistbook}
3241 \keyitem[tabular:sortname] Prints the labelname/sortname.
3242 \keyitem[tabular:omitsortname] Suppresses the labelname/sortname in the current
3243 group.
3244 \end{keymarglistbook}
3245 \begin{remindbox}
3246 These two bibliography macros have a fairly basic definition that should make
3247 them compatible with most styles (not only \sty{biblatex-ext}
3248 or standard styles).
3249 Consequently, they may not be able to support all advanced features of
3250 the style you are using.
3251
3252 If you are missing anything, you will have to write versions of those macros
3253 that are tailored to the specific style you are loading and the features you
3254 want to use.
3255 \end{remindbox}
3256
3257
3258 For the common case of two-column tabular bibliographies there is a thin
3259 wrapper around \hypercmd{defbibtabular} that might turn out a bit easier to use.
3260 \begin{ltxsyntax}
3261 \cmditem{defbibtabulartwocolumn}{name}{begin code}{end code}%
3262 {anchor code}{driver precode}
3263
3264 This defines a two-column tabular bibliography environment with \prm{name},
3265 \prm{begin code} and \prm{end code} as for \hypercmd{defbibtabular}.
3266
3267 The first column is an \hypercmd{anchorlang} column that executes
3268 \prm{anchor code}, the second column executes a pre-code and
3269 the bibliography driver.
3270
3271 \begin{biblatexcode}
3272 \defbibtabulartwocolumn{(*@\prm{name}@*)}
3273 {(*@\prm{begin code}@*)}{(*@\prm{end code}@*)}
3274 {(*@\prm{anchor code}@*)}{(*@\prm{driver precode}@*)}
3275 \end{biblatexcode}
3276 is equivalent to
3277 \begin{biblatexcode}
3278 \defbibtabular{(*@\prm{name}@*)}
3279 {(*@\prm{begin code}@*)}{(*@\prm{end code}@*)}
3280 {\anchorlang{(*@\prm{anchor code}@*)} & \driver{(*@\prm{driver precode}@*)} \\}
3281 \end{biblatexcode}
3282 \end{ltxsyntax}
3283
3284 An annotated example document with a simple tabular bibliography can
3285 be found on the following pages.
3286
3287 \clearpage
3288 \begin{bibexample}[breakable,
3289 title={Example document with tabular bibliography}]
3290 \begin{lstlisting}[style=extblxstylelatex]
3291 \documentclass[british]{article}
3292 \usepackage{babel}
3293 \usepackage{csquotes}
3294
3295 (*@\tikzmark[\strut]{lblxs}@*)\usepackage[backend=biber, style=ext-authoryear]{biblatex}(*@\tikzmark{lblxe}@*)
3296 (*@\tikzmark[\strut]{ltblxs}@*)\usepackage{biblatex-ext-tabular}(*@\tikzmark{ltblxe}@*)
3297
3298 (*@\tikzmark[\strut]{tabss}@*)\usepackage{longtable}
3299 \usepackage{array}
3300 \newcolumntype{L}[1]{%
3301 >{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}(*@\tikzmark{tabse}@*)
3302
3303 (*@\tikzmark[\strut]{dbtabs}@*)\defbibtabular{bibtabular}
3304 {\setlength{\LTpre}{0pt}%
3305 \setlength{\LTpost}{0pt}%
3306 \renewcommand*{\arraystretch}{2}%
3307 \begin{longtable}{%
3308 @{}
3309 L{\dimexpr0.3\textwidth-\tabcolsep\relax}
3310 L{\dimexpr0.7\textwidth-\tabcolsep\relax}
3311 @{}}}
3312 {\end{longtable}}
3313 {\anchorlang{\usebibmacro{tabular:sortname}} &
3314 \driver{\usebibmacro{tabular:omitsortname}} \\}(*@\tikzmark{dbtabe}@*)
3315
3316 \addbibresource{biblatex-examples.bib}
3317
3318 \begin{document}
3319 Lorem \autocite{sigfridsson,nussbaum}
3320 ipsum \autocite{geer}.
3321
3322 (*@\tikzmark[\strut]{pbts}@*)\printbibtabular(*@\tikzmark{pbte}@*)
3323 \end{document}
3324 \end{lstlisting}%
3325 \tikz[overlay,remember picture]{%
3326 \node[draw, rounded corners, highlight1, very thick,
3327 fit=(lblxs.north west) (lblxe.south east)
3328 (ltblxs.north west) (ltblxe.south east)] (lblxb) {};
3329 \node (lblxt)[MWEcommentbox, right=0cm of lblxb, text width=3.25cm]
3330 {Load \sty{biblatex} as usual,\\then load \hypersty{biblatex-ext-tabular}};
3331
3332 \node[draw, rounded corners, highlight2, very thick,
3333 fit=(tabss.north west) (tabse.south east)] (tabsb) {};
3334 \node (tabst)[MWEcommentbox, right=0em of tabsb, text width=2.36cm]
3335 {Set up enhanced table support as desired};
3336
3337 \node[draw, rounded corners, highlight1, very thick,
3338 fit=(dbtabs.north west) (dbtabe.south east)] (dbtabb) {};
3339 \node (dbtabt)[MWEcommentbox, right=0em of dbtabb, text width=4.5cm]
3340 {Set up a tabular bibliography with~\hypercmd{defbibtabular}};
3341
3342 \node[draw, rounded corners, highlight1, very thick, inner sep=0.1em,
3343 fit=(pbts.north west) (pbte.south east)] (pbtb) {};
3344 \node (pbtt)[MWEcommentbox, right=1em of pbtb, text width=7cm]
3345 {Print bibliography table with~\hypercmd{printbibtabular}};
3346 }
3347 \tcblower
3348 \defbibtabular{bibtabular}
3349 {\setlength{\LTpre}{0pt}%
3350 \setlength{\LTpost}{0pt}%
3351 \renewcommand*{\arraystretch}{2}%
3352 \begin{longtable}{%
3353 @{}
3354 L{\dimexpr0.3\textwidth-\tabcolsep\relax}
3355 L{\dimexpr0.7\textwidth-\tabcolsep\relax}
3356 @{}}}
3357 {\end{longtable}}
3358 {\anchorlang{\usebibmacro{tabular:sortname}} &
3359 \driver{\usebibmacro{tabular:omitsortname}} \\}
3360
3361 \exampleprintbibtab{sigfridsson,geer,nussbaum}
3362 \end{bibexample}
3363 This defines a two-column bibliography where the first column shows the
3364 primary name associated with the work (the labelname/sortname) and the
3365 second colum shows the bibliography data with the primary name suppressed
3366 to avoid duplication.
3367 The anchor is set to the first column, so that a viewer jumps there
3368 if a link to the entry is followed.
3369
3370 Using \cmd{defbibtabulartwocolumn} the example from above could be written as
3371 \begin{biblatexcode}
3372 \documentclass[british]{article}
3373 \usepackage{babel}
3374 \usepackage{csquotes}
3375
3376 \usepackage[backend=biber, style=ext-authoryear]{biblatex}
3377 \usepackage{biblatex-ext-tabular}
3378
3379 \usepackage{longtable}
3380 \usepackage{array}
3381 \newcolumntype{L}[1]{%
3382 >{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
3383
3384 \defbibtabulartwocolumn{bibtabular}
3385 {\setlength{\LTpre}{0pt}%
3386 \setlength{\LTpost}{0pt}%
3387 \renewcommand*{\arraystretch}{2}%
3388 \begin{longtable}{%
3389 @{}
3390 L{\dimexpr0.3\textwidth-\tabcolsep\relax}
3391 L{\dimexpr0.7\textwidth-\tabcolsep\relax}
3392 @{}}}
3393 {\end{longtable}}
3394 {\usebibmacro{tabular:sortname}}
3395 {\usebibmacro{tabular:omitsortname}}
3396
3397 \addbibresource{biblatex-examples.bib}
3398
3399 \begin{document}
3400 Lorem \autocite{sigfridsson,nussbaum}
3401 ipsum \autocite{geer}.
3402
3403 \printbibtabular
3404 \end{document}
3405 \end{biblatexcode}
3406
3407
3408 \clearpage
3409 \section{Open Access Symbols}\label{sec:oa}
3410 \label{exltd@itm@biblatex-ext-oa}
3411 The package \sty{biblatex-ext-oa} was inspired by a question%
3412 \fnurl{https://tex.stackexchange.com/q/459449/35864}
3413 by pluton\fnurl{https://tex.stackexchange.com/users/371/pluton} on TeX.SX
3414 about promoting open access works by adding a small open access symbol into
3415 the margin.
3416
3417 The package must be loaded after \sty{biblatex}.
3418 It is not tied to use with styles of this bundle, though it cannot be
3419 guaranteed that everything will work out of the box with all other styles.
3420 The package works as expected with the standard styles and
3421 should work with most contributed styles at least to some extent.
3422 For the actual typesetting of the symbol \sty{biblatex-ext-oa}
3423 patches the bibliography macro \bibmacro{begentry} to include a call to the
3424 bibliography macro \hyperbibmacro{oamark}.
3425 \begin{biblatexcode}
3426 \usepackage[(*@\prm{\sty{biblatex} options}@*)]{biblatex}
3427 (*@\dots @*)
3428 \usepackage[(*@\prm{\sty{biblatex-ext-oa} options}@*)]{biblatex-ext-oa}
3429 \end{biblatexcode}
3430
3431 The package may load the support packages
3432 \hypersty{biblatex-ext-oa-doiapi},
3433 \hypersty{biblatex-ext-oasymb-pict2e},
3434 \hypersty{biblatex-ext-oasymb-l3draw}
3435 and \hypersty{biblatex-ext-oasymb-tikz}.
3436 The preferred way to use those packages is to have them loaded
3437 automatically via \sty{biblatex-ext-oa}'s package options.
3438 It should usually not be necessary to load any of these support packages
3439 directly with \cmd{usepackage}, but it is possible to use them as
3440 stand-alone packages should the need arise in other situations.
3441
3442 \begin{warnbox}
3443 Note that the macro \hypercmd{oasymbol} must be defined and should contain an
3444 open access symbol that can be printed in the margin for the package
3445 \sty{biblatex-ext-oa} to work properly.
3446 The package \sty{biblatex-ext-oa} itself does not provide a definition for
3447 \hypercmd{oasymbol} if the option \hyperopt{symbolpackage} is not used.
3448 So you should either set that option or define command \hypercmd{oasymbol}
3449 yourself.
3450 \end{warnbox}
3451
3452 The package \sty{biblatex-ext-oa} provides the following load-time options.
3453 \begin{optionlist}
3454 \boolitem[true]{enable}
3455
3456 This option controls whether the package is only loaded (\optval{false}) or
3457 loaded and active (\optval{true}).
3458
3459 \enquote{Active} means that the initial state of the global bibliography option
3460 \hyperopt{openaccess} is \optval{auto} and that useful default settings are
3461 applied for semi-automatic open access detection.
3462 These useful defaults include patches of the bibmacro \bibmacro{begentry}
3463 and, if \hyperopt{doiapi} is enabled, also \bibmacro{doi+eprint+url}.
3464
3465 If the package is loaded with \opt{enable} set to \optval{false} the global
3466 bibliography option \hyperopt{openaccess} will be set to \optval{false} and no
3467 sensible defaults are defined for the semi-automatic open access detection.
3468
3469 \optitem[false]{symbolpackage}{\optval{false}, \optval{pict2e}, \optval{l3draw},
3470 \optval{tikz}}
3471
3472 Load one of the available open access symbol support packages.
3473 \begin{valuelist}
3474 \item[false] Don't load any symbol package.
3475 \begin{warnbox}
3476 Since \sty{biblatex-ext-oa} does not provide a default definition for
3477 \hypercmd{oasymbol}, you will have to make sure to define that command
3478 yourself if you don't load any of the symbol packages.
3479 \end{warnbox}
3480 \item[pict2e] Load \hypersty{biblatex-ext-oasymb-pict2e} to provide a
3481 definition for \hypercmd{oasymbol} drawn in \sty{pict2e}.
3482 See \cref{sec:oa:symbol,sec:oa:symbol-pict2e}.
3483 \item[l3draw] Load \hypersty{biblatex-ext-oasymb-l3draw} to provide a
3484 definition for \hypercmd{oasymbol} drawn in \sty{l3draw}.
3485 See \cref{sec:oa:symbol,sec:oa:symbol-l3draw}.
3486 \begin{remindbox}
3487 Please keep in mind that \sty{l3draw} is still considered experimental.
3488
3489 You need at least version \texttt{2026-04-28} of \sty{l3draw}.
3490 \end{remindbox}
3491 \item[tikz] Load \hypersty{biblatex-ext-oasymb-tikz} to provide a
3492 definition for \hypercmd{oasymbol} that is drawn with \pgftikz.
3493 See \cref{sec:oa:symbol,sec:oa:symbol-tikz}.
3494 \begin{remindbox}
3495 The package \hypersty{biblatex-ext-oasymb-tikz} will load \pgftikz.
3496 \end{remindbox}
3497 \end{valuelist}
3498
3499 \begingroup
3500 \makeatletter
3501 % Avoid a multiply defined label.
3502 % I know this is terrible, ...
3503 \def\ltd@pdfbookmark#1#2{%
3504 \exltd@pdfbookmark{#1}{#2}}
3505 \makeatother
3506 \optitem{symbol}{\prm{symbol}}
3507 \endgroup
3508
3509 Set \hypercmd{oasymbol} to output the symbol identified as \prm{symbol}.
3510 This option is passed on to the \prm{symbolpackage} selected
3511 with the \hyperopt{symbolpackage} option.
3512 Possible values can be found in the respective subsections
3513 of \cref{sec:oa:symbol}.
3514
3515 \begin{warnbox}
3516 Note that this option is only available if the
3517 option~\hyperopt{symbolpackage} has been set to a valid value different
3518 from \optval{false} or one of the open access symbol packages has
3519 been loaded manually (the latter is usually not recommended, the
3520 option~\hyperopt{symbolpackage} is the preferred way to load those
3521 packages).
3522 \end{warnbox}
3523
3524 \boolitem[false]{doiapi}
3525
3526 Whether or not to load the support package \hypersty{biblatex-ext-oa-doiapi}
3527 that provides a Lua module to query open access information
3528 from Unpaywall\fnurl{https://unpaywall.org/} via the DOI of an entry.
3529
3530 \begin{warnbox}
3531 The package \hypersty{biblatex-ext-oa-doiapi} and thus this option
3532 can only be used with \lualatex.
3533 With newer versions of the \luatex\ binary ($\geq 1.17.0$) you also need
3534 to enable the socket library via the command-line option
3535 \texttt{-\/-socket}.
3536 \end{warnbox}
3537 \end{optionlist}
3538
3539 The following macros in \sty{biblatex-ext-oa} are also of interest.
3540 \begin{ltxsyntax}
3541
3542
3543 \cmditem{LoadOASymbolPackage}[symbol]{package}
3544
3545 This command provides an alternative to \hyperopt{symbolpackage} for loading
3546 a symbol package.
3547 The mandatory argument \prm{package} can take the same values as the
3548 \hyperopt{symbolpackage} option.
3549 The optional argument \prm{symbol} has the same meaning as the possible values
3550 for the \hyperopt{symbol} package option.
3551
3552 The command can only be used in the preamble.
3553 It may only be used once and only if none of the symbol packages have been
3554 loaded either explicitly or via the \hyperopt{symbolpackage} option.
3555
3556 This command is related to \hypercmd{DefineOASymbol} (see \cref{sec:oa:symbol}).
3557
3558 \csitem{oasymbol}
3559 This commands holds the little symbol that is going to be printed in the margin
3560 to mark open access publications.
3561
3562 This command is initially undefined and must be defined for the
3563 package to work.
3564 One way of giving this command a useful definition is via the
3565 \hyperopt{symbolpackage} option of \sty{biblatex-ext-oa}.
3566 \end{ltxsyntax}
3567
3568 An entry will be marked as open access if it has a \enquote{best open access
3569 URL}.
3570 This best open access URL will be determined according to the rules set out by
3571 the \hyperopt{openaccess} bibliography option (see \cref{sec:oa:detect}) in the
3572 \cmd{AtDataInput} hook,
3573 it is stored in the newly defined field \hyperbibfield{bestoaurl}.
3574 \begin{fieldlist}
3575 \fielditem{bestoaurl}{literal}
3576 This field holds the \enquote{best open access URL} as determined by the open
3577 access detection outlined in \cref{sec:oa:detect}.
3578
3579 Note that this field need not hold the URL in expanded form.
3580 \end{fieldlist}
3581
3582 Depending on the load-time options the package may define the following two
3583 bibliography macros.
3584 \begin{keymarglistbook}
3585 \keyitem[oamark]
3586
3587 Prints the open access symbol if a best open access URL is available.
3588 This bibliography macro is available if the package is loaded with
3589 \hyperopt{enable} set to \optval{true}
3590
3591 \keyitem[api:bestoaurl]
3592
3593 Display the best open access URL according to the Unpaywall API.
3594 The URL is not shown if it coincides with the DOI, the check for that is
3595 performed by \hypercmd{OpenaccessURLisDOI} (see \cref{sec:oa:doiapi}).
3596 This macro is only available if both the \hyperopt{enable} and the
3597 \hyperopt{doiapi} options are set to \optval{true}.
3598
3599 This macro is useful in connection with the Unpaywall API since the best
3600 open access URL may not be amongst the fields that are already displayed
3601 in the entry.
3602 \end{keymarglistbook}
3603
3604 \begin{remindbox}
3605 With \opt{enable} set to \optval{true} the package will furthermore patch
3606 the bibliography macro \bibmacro{begentry} to execute the bibliography macro
3607 \hyperbibmacro{oamark}.
3608 If additionally \hyperopt{doiapi} is \optval{true}, the bibliography macro
3609 \bibmacro{doi+eprint+url} will be patched to include a call to
3610 \hyperbibmacro{api:bestoaurl}.
3611 Please keep that in mind should you need to redefine \bibmacro{begentry}
3612 or \bibmacro{doi+eprint+url}.
3613 \end{remindbox}
3614
3615 \subsection{Open access detection}\label{sec:oa:detect}
3616 The heart of the package \sty{biblatex-ext-oa} is the bibliography option
3617 \hyperopt{openaccess}, which can be set globally, per type or per entry.
3618
3619 A longer example document exploring various aspects of open access
3620 detection can be found at
3621 \url{https://github.com/moewew/biblatex-ext/blob/release/oaslinks.tex}.
3622
3623 \begin{optionlist}
3624 \optitem[auto {\normalfont(\optval{none})}]{openaccess}{\optval{auto},
3625 \optval{doiapi}, \optval{forcedoiapi}, \optval{true}, \optval{false},
3626 \optval{none}, \prm{open access field}}
3627
3628 This option controls how the best open access URL is detected.
3629 The initial value is \optval{auto} unless the package is loaded with the
3630 \hyperopt{enable} option set to \optval{false} in which case the initial
3631 value changes to \optval{none}.
3632
3633 All of the following values are valid at all three levels (global,
3634 per-type and per-entry), but not all options may be useful at all
3635 available levels.
3636 \begin{valuelist}
3637 \item[auto] Use a semi-automatic heuristic to find the best open access URL.
3638
3639 \item[all] Assume that all known \enquote{open access fields} contain an open
3640 access URL.
3641
3642 Note that an entry still needs at least one field that open access field
3643 for the open access symbol to show up.
3644
3645 \item[none] Assume that no known \enquote{open access field} contains an open
3646 access URL.
3647
3648 The value \optval{none} may be used to disable the \opt{openaccess} feature.
3649
3650 \item[doiapi] Use API queries from the \sty{biblatex-ext-oa-doiapi} package
3651 to determine the best open access link from the DOI.
3652
3653 \begin{warnbox}
3654 This option requires that the \hyperopt{doiapi} package option be
3655 set to \optval{true} and only works with \lualatex.
3656 With newer versions of the \luatex\ binary ($\geq 1.17.0$) you also need
3657 to enable the socket library via the command-line option
3658 \texttt{-\/-socket}.
3659 Furthermore it needs a DOI in the \bibfield{doi} field.
3660 If the \bibfield{doi} field is empty, this option falls back to \optval{auto}.
3661 \end{warnbox}
3662
3663 \item[onlydoiapi] Like \optval{doiapi}, but does not fall back to \optval{auto}
3664 in case no DOI is present.
3665
3666 \item[forcedoiapi] Like \optval{doiapi}, but overrides more specific option
3667 levels that would say otherwise.
3668
3669 By default more specific options take precedence over more general options,
3670 that means that a per-entry option trumps a per-type option, which in turn
3671 overrides the global setting.
3672 If \optval{forcedoiapi} is set it will prevail over more specific options that
3673 would say otherwise. A common use case is to override per-entry options with
3674 a global \optval{forcedoiapi}.
3675
3676 \item[forceonlydoiapi] A combination of \optval{onlydoiapi} and
3677 \optval{forcedoiapi}.
3678 This options overrides all more specific values and does not fall back to
3679 \optval{auto} in case the DOI is not given.
3680
3681 \item[true] An alias for \optval{all}.
3682 \item[false] An alias for \optval{none}.
3683
3684 \item[\prm{open access field}] Specifies that the open access version is given
3685 by \prm{open access field}.
3686 This value would normally be used only on a per-entry level.
3687
3688 Any field for which \hypercmd{DeclareOpenAccessFieldUrl} has declared a URL
3689 specification is a valid \enquote{open access field}.
3690 \end{valuelist}
3691
3692 \end{optionlist}
3693
3694 The heuristics to find the best open access link are governed
3695 by the following commands and rely on information present in the \filename{.bib}
3696 file (ideally in field annotations).
3697
3698 \begin{ltxsyntax}
3699 \cmditem{DeclareOpenAccessFieldUrl}[openness]{field}{url spec}
3700
3701 Declares \prm{field} to be an \enquote{open access field}.
3702 The code for \prm{url spec} should expand to the full URL under which the entry
3703 can be accessed.
3704 The optional \prm{openness} argument indicates whether the URL will always be
3705 open access (\texttt{always}) or whether it is only open access under certain
3706 conditions (\texttt{conditional});
3707 if it is not present \texttt{conditional} is assumed.
3708
3709 If the package is loaded with \opt{enable} set to \optval{true},
3710 the following declarations are active.
3711 \begin{biblatexcode}
3712 \DeclareOpenAccessFieldUrl{url}{\thefield{url}}
3713 \DeclareOpenAccessFieldUrl{doi}{https://doi.org/\thefield{doi}}
3714 \end{biblatexcode}
3715
3716 \cmditem{UndeclareOpenAccessFieldUrl}{field}
3717
3718 Disable \prm{field} as \enquote{open access field} and remove its mapping
3719 to a URL.
3720
3721 \cmditem{DeclareOpenAccessEprintUrl}[openness]{eprinttype}{url spec}
3722
3723 Declares the \bibfield{eprinttype} \prm{eprinttype} to be an
3724 \enquote{open access eprint type}.
3725 The code for \prm{url spec} should expand to the full URL under which the entry
3726 can be accessed.
3727
3728 The optional \prm{openness} argument indicates whether the URL will always be
3729 open access (\texttt{always}) or whether it is only open access under certain
3730 conditions (\texttt{conditional});
3731 if it is not present \texttt{conditional} is assumed.
3732
3733 The \texttt{always} decision can be overridden on a per-entry basis by
3734 giving the field annotation \texttt{closedaccess}.
3735 If a field has openness \texttt{conditional} it is only considered for a
3736 particular entry if the field annotation \texttt{openaccess} is set.
3737
3738 If the package is loaded with \opt{enable} set to \optval{true},
3739 the following declarations are active.
3740 \begin{biblatexcode}
3741 \DeclareOpenAccessEprintUrl{jstor}{%
3742 http://www.jstor.org/stable/\thefield{eprint}}
3743 \DeclareOpenAccessEprintUrl{hdl}{%
3744 http://hdl.handle.net/\thefield{eprint}}
3745 \DeclareOpenAccessEprintUrl{pubmed}{%
3746 http://www.ncbi.nlm.nih.gov/pubmed/\thefield{eprint}}
3747 \DeclareOpenAccessEprintUrl[always]{arxiv}{%
3748 https://arxiv.org/\abx@arxivpath/\thefield{eprint}}
3749 \end{biblatexcode}
3750 Since articles on the arXiv are always open access, the declaration
3751 for \bibfield{arxiv} features the optional \prm{openness} argument
3752 \texttt{always}.
3753
3754 \cmditem{DeclareOpenAccessEprintAlias}{alias}{eprinttype}
3755
3756 Handle the open access URL detection for \prm{alias} exactly as that for
3757 \prm{eprinttype}.
3758
3759 If the package is loaded with \opt{enable} set to \optval{true},
3760 the following declarations are active.
3761 \begin{biblatexcode}
3762 \DeclareOpenAccessEprintAlias{JSTOR}{jstor}
3763 \DeclareOpenAccessEprintAlias{HDL}{hdl}
3764 \DeclareOpenAccessEprintAlias{PubMed}{pubmed}
3765 \DeclareOpenAccessEprintAlias{arXiv}{arxiv}
3766 \end{biblatexcode}
3767
3768 \cmditem{UndeclareOpenAccessEprintUrl}{eprinttype}
3769
3770 Disable \prm{eprinttype} as \enquote{open access eprint type} and remove its
3771 mapping to a URL.
3772
3773 \cmditem{DeclareOpenAccessUrlFieldPriority}{fields}
3774
3775 Define the priority order of \enquote{open access fields} if several fields
3776 contain valid open access URLs.
3777 The fields processed in the given order and the last field prevails, meaning
3778 that fields later in the list have higher priority.
3779
3780 The default definition if the package is active is
3781 \begin{biblatexcode}
3782 \DeclareOpenAccessUrlFieldPriority{url,eprint,doi}
3783 \end{biblatexcode}
3784 which means that the DOI is given preference over eprints, which in turn
3785 prevail over the \bibfield{url} field.
3786 \end{ltxsyntax}
3787
3788 The \optval{auto} detection works as follows.
3789 \begin{itemize}
3790 \item The best known open access URL is cleared.
3791 \item For each non-empty field listed in
3792 \hypercmd{DeclareOpenAccessUrlFieldPriority} the URL specification is
3793 obtained.
3794 \begin{itemize}
3795 \item If the field has \prm{openness} \texttt{always}, the best known open
3796 access URL is updated with the new value, unless the field has been
3797 explicitly marked as closed acces with the field annotation
3798 \texttt{closedaccess}.
3799 \item If the field has \prm{openness} \texttt{conditional}, the best known
3800 open access URL is updated with the new value if the field has been marked
3801 with the field annotation \texttt{openaccess}.
3802 \end{itemize}
3803 \end{itemize}
3804
3805 For \optval{auto}-detection, an open access article with DOI would
3806 ideally use the field annotation \texttt{openaccess}
3807 (\lstinline[style=extblxstylebibtex]|{doi+an = {=openaccess},|).
3808 % cipriani
3809 \inputexamplebibfile[listing options={linerange={23-34},
3810 style = extblxstylebibtex}]
3811 {biblatex-ext-examples.bib}
3812 Preprints on the arXiv, on the other hand, need no field annotation, because
3813 they are always open access.
3814 % meckes
3815 \inputexamplebibfile[listing options={linerange={35-43},
3816 style = extblxstylebibtex}]
3817 {biblatex-ext-examples.bib}
3818 \makeatletter
3819 \renewcommand{\extblx@oa@marginmark@do}{%
3820 \vbox to 0pt{%
3821 \kern-3\dp\strutbox
3822 \strut
3823 \hfill
3824 \rlap{\kern.6em
3825 \ifhyperref
3826 {\href{\thefield{bestoaurl}}}
3827 {\@firstofone}%
3828 {\oasymbol}}
3829 \vss
3830 }%
3831 }
3832 \makeatother
3833 \begin{bibexample}
3834 \exampleprintbib{cipriani,meckes,sigfridsson,kastenholz}
3835 \end{bibexample}
3836
3837 If the \opt{openaccess} option is set to one specific field only, only
3838 that field will be taken into consideration and it will be assumed that the
3839 field contains an open access link unless the field annotation
3840 \texttt{closedaccess} is set.
3841 In particular the \prm{openness} of each field does not play a role.
3842
3843
3844 \subsection{Open access detection with the Unpaywall API}\label{sec:oa:doiapi}
3845 \label{exltd@itm@biblatex-ext-oa-doiapi}
3846 Inspired by Eric Marsden's%
3847 \fnurl{https://tex.stackexchange.com/users/29621/eric-marsden}
3848 answer to the open access symbol question on TeX.SX, the package
3849 \sty{biblatex-ext-oa-doiapi}, which can be loaded via the \hyperopt{doiapi}
3850 option of \sty{biblatex-ext-oa}, provides means to automatically find the
3851 best open access link to a given article via its DOI by querying the
3852 Unpaywall API\fnurl{https://unpaywall.org/}.
3853
3854 \begin{warnbox}
3855 This package can only be used with \lualatex{}.
3856 With newer versions of the \luatex\ binary ($\geq 1.17.0$) you also need
3857 to enable the socket library via the command-line option
3858 \texttt{-\/-socket}.
3859 The features of this package need online access to the Unpaywall API\@.
3860 Furthermore the Unpaywall API requires an email address and asks to limit
3861 requests to 100,000 calls per day\fnurl{https://unpaywall.org/products/api}.
3862 \end{warnbox}
3863
3864 To avoid too many calls to the API, the package caches its information in the
3865 temporary \filename{.oai} file.
3866 It is safe to delete that file at any point, but if you do so the next
3867 \lualatex{} run may take a while, because all information has to be retrieved
3868 from the APIs.
3869 To avoid old information sticking around for too long you can set a cache
3870 expiration period.
3871
3872 \begin{ltxsyntax}
3873 \cmditem{SetDOIAPIMail}{email}
3874
3875 Define the email address that is going to be used for API queries that require
3876 an email.
3877
3878 \begin{warnbox}
3879 There is no predefined default email address.
3880 If the package is loaded and no email was provided until the
3881 beginning of the document (as tested in an \cmd{AtEndPreamble} hook)
3882 you will receive a warning.
3883 A fatal error will be thrown if you try to query the Unpaywall database
3884 without an email address.
3885 \end{warnbox}
3886
3887 \cmditem{SetDOIAPICacheExpiration}{days}
3888
3889 Set the expiration period for the cache.
3890 If the information for an entry in the cache is older than \prm{days} days
3891 it will be queried again.
3892 The default expiration period is seven days.
3893
3894 \cmditem{IsOpenaccess}{DOI}{true}{false}
3895
3896 Expands to \prm{true} if the DOI is an open access work according to the
3897 Unpaywall database and to \prm{false} otherwise.
3898
3899 \cmditem{GetOpenaccessURLWrapped}{DOI}
3900
3901 Obtain the best open access URL as returned by the Unpaywall API wrapped in
3902 the \cmd{url} macro.
3903
3904 \cmditem{OpenaccessURLisDOI}{DOI}{true}{false}
3905
3906 Expands to \prm{true} if the best open access URL as returned by the Unpaywall
3907 API is the DOI and to \prm{false} otherwise.
3908 \end{ltxsyntax}
3909
3910
3911 \subsection{Open access symbols}\label{sec:oa:symbol}
3912 Currently, this bundle offers three methods of drawing the open access
3913 symbols.
3914 Each method is packed up in a little sub-package, end users are not
3915 expected to load these packages manually, instead they should use
3916 the option~\hyperopt{symbolpackage} of \hypersty{biblatex-ext-oa}.
3917
3918 The package \hypersty{biblatex-ext-oasymb-pict2e} draws the symbols using
3919 \sty{pict2e}'s \env{picture} environment.
3920 The package \hypersty{biblatex-ext-oasymb-tikz}
3921 uses \pgftikz's \env{tikzpicture}.
3922 The package \hypersty{biblatex-ext-oasymb-l3draw} finally
3923 uses \LaTeX3's \sty{l3draw} package.
3924 The main purpose of these packages is to define the macro \cmd{oasymbol}
3925 for use with \sty{biblatex-ext-oa}.
3926
3927 All packages define a similar set of macros, so they are not indended to
3928 be loaded together.
3929 If used as stand-alone packages, all packages only have one option.
3930
3931 \begin{optionlist}
3932 \optitem[plos]{symbol}{\optval{plos}, \optval{oanet}}
3933
3934 This options determines which of the two available symbols is going to
3935 be used for \hypercmd{oasymbol}.
3936
3937 The possible values are
3938 \begin{valuelist}
3939 \item[plos] Use the open access symbol by PLOS | Public Library of Science%
3940 \fnurl{https://www.plos.org/} \csuse{extblx@oasymb@pict@plos}.
3941
3942 The drawing is based on a CC0%
3943 \fnurl{https://creativecommons.org/publicdomain/zero/1.0/deed.en}
3944 work by PLoS (now PLOS | Public Library of Science),
3945 modified by Wikipedia users Nina, Beao, and JakobVoss%
3946 \fnurl{https://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg}.
3947
3948 \item[oanet] Use the open access symbol by open-access.net%
3949 \fnurl{https://open-access.net/}
3950 \csuse{extblx@oasymb@pict@oanet}.
3951
3952 The drawing is based on the logo uploaded to Wikimedia%
3953 \fnurl{https://commons.wikimedia.org/wiki/File:Open_access.svg}
3954 and originally from open-access.net%
3955 \fnurl{https://open-access.net/fileadmin/logos/oa.svg}.
3956 Wikimedia claims the content does not meet the threshold of originality
3957 for copyright protection.
3958 Even if that is not the case, the legal notices on open-access.net%
3959 \fnurl{https://open-access.net/impressum}
3960 place all contents under a Creative Commons 4.0 Attribution International
3961 (CC BY 4.0) Licence\fnurl{https://creativecommons.org/licenses/by/4.0/}
3962 unless stated otherwise.
3963 The logo designer is listed as
3964 \emph{Medien + Design,
3965 Center für Digitale Systeme,
3966 Kompetenzzentrum e-Learning / Multimedia,
3967 Freie Universität Berlin}.
3968
3969 There is no implication that the open-access.net logo is not covered by
3970 the CC BY 4.0 terms.
3971 Indeed, the German \enquote{about us} page explicitly states
3972 \foreignquote{ngerman}{%
3973 Das Logo der Informationsplattform darf nachgenutzt werden,
3974 gerne mit einem Link zu open-access.net.}%
3975 \fnurl{https://open-access.net/ueber-uns/}
3976 The English version has \enquote{The logo of the information platform
3977 may be reused with a link to open-access.net}%
3978 \fnurl{https://open-access.net/en/about-us/}.
3979 While the German version leaves some leeway as to whether or not a link is
3980 required as attribution, the English version seems more explicit.
3981
3982 That means that if you do not follow Wikimedia in considering the symbol
3983 not protected by copyright in your~-- and all other relevant jurisdictions%
3984 ~-- due to its failure to cross the threshold of originality,
3985 you should probably treat it as CC BY 4.0 and treat the link to
3986 \url{https://open-access.net} as attribution requested by the Licensor
3987 according to Section 3(a)(1)(A) of the license.
3988 If you can't reasonably meet the requirements of the license in your work,
3989 you may want to consider using the PLOS logo, which is licensed under CC0.
3990 \end{valuelist}
3991 \end{optionlist}
3992
3993 Apart from \hypercmd{oasymbol} the packages only define one other user-level
3994 command.
3995 \begin{ltxsyntax}
3996 \cmditem{DefineOASymbol}[symbol]
3997
3998 This command redefines \hypercmd{oasymbol} to point to a different version
3999 of the symbol.
4000 The possible values for the \prm{symbol} argument are the values of the
4001 \hyperopt{symbol} option.
4002 \end{ltxsyntax}
4003
4004 \subsubsection[\sty{pict2e}]{Open access symbols with \sty{pict2e}}
4005 \label{sec:oa:symbol-pict2e}
4006 \label{exltd@itm@biblatex-ext-oasymb-pict2e}
4007 The main purpose of the package \sty{biblatex-ext-oasymb-pict2e}
4008 is to define the command \hypercmd{oasymbol}.
4009 As mentioned above, usually this package is not going to be loaded as a
4010 stand-alone package, instead it is loaded via
4011 \hypersty[symbolpackage]{biblatex-ext-oa}.
4012
4013 The package requires and loads the packages
4014 \sty{pict2e}\fnurl{https://ctan.org/pkg/pict2e} by Hubert Gäßlein,
4015 Rolf Nie\-praschk and Josef Tkadlec,
4016 \sty{xcolor}\fnurl{https://ctan.org/pkg/xcolor} by Uwe Kern
4017 and \sty{xsavebox}\fnurl{https://ctan.org/pkg/xsavebox} by Alexander Grahn.
4018
4019 If used as a stand-alone package, \sty{biblatex-ext-oasymb-pict2e} has one
4020 load-time option, namely \hyperopt{symbol}, and defines one command besides
4021 \hypercmd{oasymbol}, namely \hypercmd{DefineOASymbol}.
4022 The option determines whether \cmd{oasymbol} is defined to display
4023 the PLOS symbol~(\csuse{extblx@oasymb@pict@plos})
4024 or the open-access.net symbol~(\csuse{extblx@oasymb@pict@oanet}).
4025 The command \hypercmd{DefineOASymbol} can be used to change the definition
4026 of \cmd{oasymbol} on the fly.
4027
4028
4029 \subsubsection[Ti\emph{k}Z]{Open access symbols with Ti\emph{k}Z}
4030 \label{sec:oa:symbol-tikz}
4031 \label{exltd@itm@biblatex-ext-oasymb-tikz}
4032 The main purpose of the package \sty{biblatex-ext-oasymb-tikz}
4033 is to define the command \hypercmd{oasymbol}.
4034 As mentioned above, usually this package is not going to be loaded as a
4035 stand-alone package, instead it is loaded via
4036 \hypersty[symbolpackage]{biblatex-ext-oa}.
4037
4038 This package requires and loads the package
4039 \sty{tikz}\fnurl{https://ctan.org/pkg/pgf} by Till Tantau,
4040 its dependencies
4041 and \sty{xsavebox}\fnurl{https://ctan.org/pkg/xsavebox} by Alexander Grahn.
4042
4043 If used as a stand-alone package, \sty{biblatex-ext-oasymb-tikz} has one
4044 load-time option, namely \hyperopt{symbol}, and defines one command besides
4045 \hypercmd{oasymbol}, namely \hypercmd{DefineOASymbol}.
4046 The option determines whether \cmd{oasymbol} is defined to display
4047 the PLOS symbol~(\csuse{extblx@oasymb@tikz@plos})
4048 or the open-access.net symbol~(\csuse{extblx@oasymb@tikz@oanet}).
4049 The command \hypercmd{DefineOASymbol} can be used to change the definition
4050 of \cmd{oasymbol} on the fly.
4051
4052 This package used to be called \sty{biblatex-ext-oa-tikzsymbols},
4053 for consistency reasons it has been renamed to \sty{biblatex-ext-oasymb-tikz}.
4054
4055 The command \cmd{DefineTikZOASymbol} has been renamed to the more generic
4056 \hypercmd{DefineOASymbol}.
4057 Backwards compatibility code for that change is in place.
4058
4059
4060 \subsubsection[\sty{l3draw}]{Open access symbols with \sty{l3draw}}
4061 \label{sec:oa:symbol-l3draw}
4062 \label{exltd@itm@biblatex-ext-oasymb-l3draw}
4063 The main purpose of the package \sty{biblatex-ext-oasymb-l3draw}
4064 is to define the command \hypercmd{oasymbol}.
4065 As mentioned above, usually this package is not going to be loaded as a
4066 stand-alone package, instead it is loaded via
4067 \hypersty[symbolpackage]{biblatex-ext-oa}.
4068
4069 This package requires and loads the full force of \LaTeX3.
4070 Aside from the main package \sty{expl3}\fnurl{https://ctan.org/pkg/expl3} it
4071 loads \sty{xparse}\fnurl{https://ctan.org/pkg/xparse}
4072 and \sty{l3keys2e}\fnurl{https://ctan.org/pkg/l3keys2e}.
4073 Drawing is performed with the (still experimental)
4074 \sty{l3draw}\fnurl{https://ctan.org/pkg/l3experimental} package.
4075 The code requires version 2026-04-28 or above
4076 of~\sty{l3draw}.
4077 The package also loads
4078 \sty{xsavebox}\fnurl{https://ctan.org/pkg/xsavebox} by Alexander Grahn.
4079
4080 If used as a stand-alone package, \sty{biblatex-ext-oasymb-l3draw} has one
4081 load-time option, namely \hyperopt{symbol}, and defines one command besides
4082 \hypercmd{oasymbol}, namely \hypercmd{DefineOASymbol}.
4083 The option determines whether \cmd{oasymbol} is defined to display
4084 the PLOS symbol~(\csuse{extblx@oasymb@draw@plos})
4085 or the open-access.net symbol~(\csuse{extblx@oasymb@draw@oanet}).
4086 The command \hypercmd{DefineOASymbol} can be used to change the definition
4087 of \cmd{oasymbol} on the fly.
4088
4089
4090
4091
4092 \clearpage
4093 \section{Revision History}\label{sec:log}
4094 The GitHub repository of this project uses release tags, so you can compare
4095 the changes in source code there.\footnote{\url{\gitbaseurl/compare/}}
4096 See also \filename{CHANGES.md}.
4097
4098 The numbers on the right indicate the relevant section of the manual.
4099 \begin{changelog}
4100 \begin{release}{0.21}{2026-05-19}
4101 \item Removed uses of \cmd{ifthenelse} in favour of \sty{etoolbox}
4102 commands.
4103 \item Synced \hypersty{biblatex-ext-oasymb-l3draw}
4104 with \sty{l3draw} changes.
4105 Version \texttt{2026-04-28} or above is now required.%
4106 \see{sec:oa:symbol}
4107 \end{release}
4108 \begin{release}{0.20}{2025-06-24}
4109 \item Use \sty{xsavebox} in order to typeset open access symbols
4110 (in \hypersty{biblatex-ext-oasymb-pict2e},
4111 \hypersty{biblatex-ext-oasymb-tikz},
4112 and \hypersty{biblatex-ext-oasymb-l3draw}).\see{sec:oa:symbol}
4113 \end{release}
4114 \begin{release}{0.19}{2025-03-31}
4115 \item Synced \hypercmd{printbibtabular} implementation with
4116 \cmd{@doendpe} \sty{biblatex}~3.20 changes.
4117 \item Added \cmd{leavevmode} to \hypersty{biblatex-ext-tabular}'s
4118 cell macros (\hypercmd{plain}, \hypercmd{plainlang},
4119 \hypercmd{anchor}, \hypercmd{anchorlang}, \hypercmd{driver}).
4120 \end{release}
4121 \begin{release}{0.18}{2024-03-24}
4122 \item Changed colour model in \hypersty{biblatex-ext-oasymb-l3draw}
4123 from CMYK to HTML.\see{sec:oa:symbol-l3draw}
4124 \item Document that \hyperopt{doiapi} (\hypersty{biblatex-ext-oa-doiapi})
4125 needs \luatex's \texttt{-\/-socket} option
4126 with \luatex\ v.~1.17.0 and above.
4127 \see{sec:oa:doiapi}
4128 \item Synced \cmd{printbibtabular} implementation with
4129 \sty{biblatex}~3.20 changes.
4130 \end{release}
4131 \begin{release}{0.17}{2023-03-18}
4132 \item Synced \cmd{textcite} implementation in some styles
4133 with \sty{biblatex}~3.19 changes.
4134 \item Synced \hypercmd{printbibtabular} implementation
4135 with \sty{biblatex}~3.19.\see{sec:tabularbib}
4136 \end{release}
4137 \begin{release}{0.16}{2022-06-18}
4138 \item Reworked \hyperopt{citexref} implementation\see{sec:opt}
4139 \end{release}
4140 \begin{release}{0.15}{2022-03-06}
4141 \item New \hyperblxstyle[ext-authornumber]{ext-authornumber-*} style
4142 subfamily\see{sec:styles:new}
4143 \end{release}
4144 \begin{release}{0.14}{2021-08-31}
4145 \item Use \hyperbibmacro{language} bibmacro also in
4146 \bibtype{dataset} driver\see{sec:opt:bibmacros}
4147 \item Fixed inner cite delims for \hyperopt{citexref}/%
4148 \cmd{bbx@xrefcite}\see{sec:opt:gen}
4149 \end{release}
4150 \begin{release}{0.13}{2021-06-08}
4151 \item Fixed title formatting with related entries in
4152 \blxstyle{authoryear} style family
4153 \item Added \hyperbibfieldformat{biblabeltitle} and
4154 \hyperbibfieldformat{titlecase:biblabeltitle} field formats
4155 \see{sec:opt:field}
4156 \end{release}
4157 \begin{release}{0.12b}{2021-04-22}
4158 \item Fixed bug with refcontext assignment in
4159 \hypercmd{printbibtabular}\see{sec:tabularbib}
4160 \end{release}
4161 \begin{release}{0.12a}{2021-04-20}
4162 \item Fixed bug with \opt{env} option for
4163 \hypercmd{printbibtabular}\see{sec:tabularbib}
4164 \end{release}
4165 \begin{release}{0.12}{2021-02-27}
4166 \item Added \hypercmd{UndeclareCiteDelims}\see{sec:opt:citedelims}
4167 \item Clarified \hyperopt{innamebeforetitle} documentation%
4168 \see{sec:opt:gen}
4169 \end{release}
4170 \begin{release}{0.11}{2021-02-19}
4171 \item Synced with \sty{l3draw} changes.
4172 \end{release}
4173 \begin{release}{0.10}{2021-01-01}
4174 \item Synced with \sty{biblatex}~3.16 changes.
4175 \end{release}
4176 \begin{release}{0.9}{2020-08-21}
4177 \item Synced with \sty{biblatex}~3.15 changes.
4178 \end{release}
4179 \begin{release}{0.8g}{2020-08-09}
4180 \item Synced \hypersty{biblatex-ext-oasymb-l3draw} with 2020-08-07
4181 \sty{l3color}/\sty{l3draw} changes.\see{sec:oa:symbol-l3draw}
4182 \end{release}
4183 \begin{release}{0.8f}{2020-05-09}
4184 \item Fixed inner cite delimiters for \cmd{footcitetext}%
4185 \see{sec:opt:citedelims}
4186 \end{release}
4187 \begin{release}{0.8e}{2020-05-05}
4188 \item Fixed \hyperopt{introcite} definition for
4189 \blxstyle{ext-numeric-comp}\see{sec:opt:style}
4190 \item Fixed issue with \bibfield{labelprefix} in
4191 \hypercmd{printbibtabular}\see{sec:tabularbib}
4192 \end{release}
4193 \begin{release}{0.8d}{2020-03-15}
4194 \item Fixed issue with \hyperbibmacro{tabular:sortname}\see{sec:tabularbib}
4195 \end{release}
4196 \begin{release}{0.8c}{2019-11-30}
4197 \item Stopped querying \url{https://doi.org} API for DOI
4198 verification\see{sec:oa:doiapi}
4199 \end{release}
4200 \begin{release}{0.8b}{2019-11-01}
4201 \item Fixed bug in \blxstyle{ext-verbose-trad2}%
4202 \see{sec:styles:standard}
4203 \end{release}
4204 \begin{release}{0.8a}{2019-10-31}
4205 \item Fixed default value of \hypercmd{servoldelim}\see{sec:opt:punct}
4206 \item Fixed bug in \blxstyle{ext-authoryear-tiecomp}%
4207 \see{sec:styles:new}
4208 \end{release}
4209 \begin{release}{0.8}{2019-08-25}
4210 \item Added \hypercmd{AtIntrocite} \see{sec:opt:style}
4211 \item Require \sty{biblatex}~v3.13 (2010/08/17)\see{sec:req}
4212 \end{release}
4213 \begin{release}{0.7a}{2019-04-04}
4214 \item Fixed bug in the \opt{env} option of \hypercmd{printbibtabular}%
4215 \see{sec:tabularbib}
4216 \end{release}
4217 \begin{release}{0.7}{2019-02-08}
4218 \item Added outer citation delimiters for \cmd{supercite}%
4219 \see{sec:opt:citedelims}
4220 \item Added \hypersty{biblatex-ext-oasymb-pict2e}\see{sec:oa:symbol-pict2e}
4221 \item Added \hypersty{biblatex-ext-oasymb-l3draw}\see{sec:oa:symbol-l3draw}
4222 \item Renamed \sty{biblatex-ext-oa-tikzsymbols} to
4223 \hypersty{biblatex-ext-oasymb-tikz}\see{sec:oa:symbol-tikz}
4224 \item Deprecated option \opt{tikzsymbol} of \hypersty{biblatex-ext-oa} in
4225 favour of \hyperopt{symbolpackage} and \hyperopt{symbol}\see{sec:oa}
4226 \item Renamed and generalised \cmd{DefineTikZOASymbol} to
4227 \hypercmd{DefineOASymbol}\see{sec:oa:symbol}
4228 \item Renamed and generalised \cmd{LoadTikZOASymbol} to
4229 \hypercmd{LoadOASymbolPackage}\see{sec:oa}
4230 \end{release}
4231 \begin{release}{0.6b}{2019-01-11}
4232 \item Fixed issue loading \texttt{socket.url} module in
4233 \hypersty{biblatex-ext-oa-doiapi}\see{sec:oa:doiapi}
4234 \end{release}
4235 \begin{release}{0.6a}{2019-01-04}
4236 \item Minor improvements for \hypersty{biblatex-ext-oa}\see{sec:oa}
4237 \end{release}
4238 \begin{release}{0.6}{2018-11-23}
4239 \item Require \sty{biblatex} 3.12
4240 \item Made \hyperopt{dashed} and \hyperopt{introcite} options available on a
4241 per-entry and per-type basis\see{sec:opt:style}
4242 \item Added \hypercmd{titleaddonpunct}\see{sec:opt:punct}
4243 \item Added \hypersty{biblatex-ext-oa} package for open access detection and
4244 symbols\see{sec:oa}
4245 \end{release}
4246 \begin{release}{0.5a}{2018-10-09}
4247 \item Fixed a bug with \cmd{footcites} and \cmd{footcitetexts} in
4248 \blxstyle{ext-authoryear}
4249 \end{release}
4250 \begin{release}{0.5}{2018-10-02}
4251 \item New \hyperblxstyle[ext-authoryear-ecomp]{ext-authoryear-*ecomp} style
4252 subfamily\see{sec:styles:new}
4253 \item Added outer cite delimiters for \cmd{footcite}\see{sec:opt:citedelims}
4254 \item Added experimental tabular bibliography\see{sec:tabularbib}
4255 \end{release}
4256 \begin{release}{0.4}{2018-06-10}
4257 \item Renamed \cmd{DeclareOuterCiteDelim} and friends to
4258 \hypercmd{DeclareOuterCiteDelims}\see{sec:opt:citedelims}
4259 \item Added \hypercmd{RegisterCiteDelims}\see{sec:opt:citedelims}
4260 \item Renamed \enquote{virtual} cite command \cmd{bbx:introcite} to
4261 \cmd{bbx@introcite}\see{sec:opt:style}
4262 \item Renamed \opt{citeinxref} to \hyperopt{citexref}\see{sec:opt}
4263 \end{release}
4264 \begin{release}{0.3}{2018-06-04}
4265 \item Added \hyperbibfieldformat[titlecase:title]{titlecase:\dots title}
4266 field formats\see{sec:opt:field}
4267 \item Added \hypersty{bbx:introcite:plain:keeprelated} toggle%
4268 \see{sec:opt:style}
4269 \item Added \hypercmd{jourvoldelim}, \hypercmd{jourserdelim} and
4270 \hypercmd{servoldelim}\see{sec:opt:punct}
4271 \item Improved documentation
4272 \end{release}
4273 \begin{release}{0.2}{2018-03-28}
4274 \item Rework lengths for \hyperkvopt{introcite}{label}\see{sec:opt:style}
4275 \item Fixed meaning of \hypercmd{maintitletitledelim}\see{sec:opt:punct}
4276 \item Added \hypercmd{voltitledelim}\see{sec:opt:punct}
4277 \end{release}
4278 \begin{release}{0.1a}{2018-03-20}
4279 \item Fixed inner citation delimiters for \hyperblxstyle{ext-authoryear},
4280 \hyperblxstyle{ext-authortitle} and their \blxstyle{-ibid} versions%
4281 \see{sec:opt:citedelims}
4282 \item Fixed \cmd{smartcite} delimiters\see{sec:opt:citedelims}
4283 \end{release}
4284 \begin{release}{0.1}{2018-03-18}
4285 \item First public release
4286 \end{release}
4287 \end{changelog}
4288
4289 \begin{bibexample}[breakable]
4290 \printbibliography[heading=bibintoc, title={Example \refname}]
4291 \end{bibexample}
4292
4293 \clearpage
4294 \appendix
4295 \section{Punctuation Commands in Use}\label{sec:punctinuse}
4296 The following example bibliography shows some common punctuation commands
4297 in use.
4298 Commands provided by standard \sty{biblatex} are marked in
4299 \textit{\cmd{italics}}, new commands defined by \sty{biblatex-ext} are in
4300 \textbf{\cmd{bold}} and linked to their documentation.
4301 \begin{bibexample}[title={Punctuation and delimiters
4302 (defined by \textit{standard \sty{biblatex}} and
4303 \textbf{\sty{biblatex-ext}})},
4304 top=6mm,bottom=4mm,remember,
4305 overlay={
4306 % geer
4307 \punctarrow*{nameyeardelim}{-.8mm}{6mm}
4308 \punctarrow*{nametitledelim}{2.5mm}{6mm}
4309 % companion
4310 \punctarrow*{multinamedelim}{-2.5mm}{6mm}
4311 \punctarrow*{finalnamdelim}{2.5mm}{4mm}
4312 \punctarrow{locpubdelim}{-2.5mm}{-5mm}
4313 \punctarrow{pubdatedelim}{2.5mm}{-4mm}
4314 % knuth:ct:a
4315 \punctarrow{maintitletitledelim}{-2.5mm}{-.8cm}
4316 \punctarrow{voltitledelim}{2.5mm}{-4mm}
4317 % moore
4318 \punctarrow*{intitlepunct}{-4mm}{-4mm}
4319 \punctarrow*{bibpagespunct}{-2.5mm}{-4mm}
4320 \punctarrow*{bibrangedash}{.2cm}{-4mm}
4321 % sigfridsson
4322 \punctarrow{jourvoldelim}{-.2cm}{-4mm}
4323 \punctarrow{volnumdelim}{.2cm}{-4mm}
4324 % vizedom:related
4325 \punctarrow*{translatortypedelim}{2.5mm}{6mm}
4326 \punctarrow*{begrelateddelim}{.8cm}{-4mm}
4327 % westfahl:frontier
4328 \punctarrow*{editortypedelim}{2.5mm}{6mm}
4329 \punctarrow*{newunitpunct}{-.2cm}{-4mm}
4330 % westfahl:space
4331 \punctarrow*{bibnamedash}{2.5mm}{5mm}
4332 \punctarrow*{subtitlepunct}{2.5mm}{5mm}
4333 }
4334 ]
4335 \frenchspacing
4336 \list{}
4337 {\setlength{\leftmargin}{\bibhang}%
4338 \setlength{\itemindent}{-\leftmargin}%
4339 \setlength{\itemsep}{8mm}%
4340 \setlength{\parsep}{\bibparsep}}
4341 \item\nocite{geer}
4342 Geer, Ingrid de\tikztextmark{nameyeardelim}{\textvisiblespace}(1985)%
4343 \tikztextmark{nametitledelim}{.} \enquote{Earl, Saint, Bishop, Skald --
4344 and Music. The Orkney Earldom of the Twelfth Century. A Musicological Study}.
4345 PhD thesis. Uppsala: Uppsala Universitet.
4346
4347 \item\nocite{companion}
4348 Goossens, Michel\tikztextmark{multinamedelim}{,} Frank Mittelbach
4349 \tikztextmark{finalnamdelim}{and} Alexander Samarin (1994).
4350 \emph{The LaTeX Companion}. 1st ed. Reading, Mass.%
4351 \tikztextmark{locpubdelim}{:} Addison-Wesley\tikztextmark{pubdatedelim}{,}
4352 1994. 528 pp.
4353
4354 \item\nocite{knuth:ct:a}
4355 Knuth, Donald E. (1984). \emph{Computers \& Typesetting}%
4356 \tikztextmark{maintitletitledelim}{.} Vol. A\tikztextmark{voltitledelim}{:}
4357 \emph{The \TeX{} book}. Reading, Mass.: Addison-Wesley, 1984.
4358
4359 \item\nocite{moore}
4360 Moore, Gordon E. (1965). \enquote{Cramming more components onto integrated
4361 circuits}. In\tikztextmark{intitlepunct}{:} \emph{Electronics} 38.8%
4362 \tikztextmark{bibpagespunct}{,} pp. 114\tikztextmark{bibrangedash}{--}117.
4363
4364 \item\nocite{sigfridsson}
4365 Sigfridsson, Emma and Ulf Ryde (1998). \enquote{Comparison of methods for
4366 deriving atomic charges from the electrostatic potential and moments}.
4367 In: \emph{Journal of Computational
4368 Chemistry}\tikztextmark{jourvoldelim}{\textvisiblespace}19%
4369 \tikztextmark{volnumdelim}{.}4 (1998), pp. 377--395.
4370
4371 \item\nocite{vizedom:related}
4372 Vizedom, Monika B. and Gabrielle L. Cafee%
4373 \tikztextmark{translatortypedelim}{,} trans. (1960).
4374 \emph{The Rites of Passage.} University of Chicago Press%
4375 \tikztextmark{begrelateddelim}{.} Trans. of Arnold van Gennep.
4376 \emph{Les rites de passage.}
4377 Paris: Nourry, 1909.
4378
4379 \item\nocite{westfahl:frontier}
4380 Westfahl, Gary\tikztextmark{editortypedelim}{,} ed. (2000a).
4381 \emph{Space and Beyond. The Frontier Theme in Science Fiction}%
4382 \tikztextmark{newunitpunct}{.} Westport, Conn. and London: Greenwood, 2000.
4383
4384 \item\nocite{westfahl:space}
4385 \tikztextmark{bibnamedash}{--} (2000b). \enquote{The True Frontier%
4386 \tikztextmark{subtitlepunct}{.} Confronting and Avoiding the Realities of
4387 Space in American Science Fiction Films}. In: \emph{Space and Beyond.
4388 The Frontier Theme in Science Fiction}. Ed. by Gary Westfahl. Westport, Conn.
4389 and London: Greenwood, 2000, pp. 55--65.
4390 \endlist
4391 \end{bibexample}
4392
4393 \end{document}
4394 \endinput