• No results found

The citeall package, v1.4

N/A
N/A
Protected

Academic year: 2021

Share "The citeall package, v1.4"

Copied!
3
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The citeall package, v1.4

Ulrike Fischer

*

December 3, 2017

1 Changes

Version 1.4 changed the code to adapt the package to the newest biblatex 3.9.

Version 1.3 added code to handle the @preamble field in a bib. Changed the definition of\sortlist to adapt to the newest biblatex.

Version 1.2 adapts the package to biblatex 3.0 and correct some small bugs (e.g. unwanted spaces).

2 Important

citeallworks only together with (newer versions of )biblatex.biblatexshould be loaded before citeall.

The package relies on some inner working ofbiblatex, so it could break with future or older versions (I tested with version 3.9).

3 The aim of the package

Theciteallpackage is a package to help to adapt and debugbiblatexcitation styles. When adapting such a style one often needs to inspect the output of examples. While it is easy with \nocite{*}to output all entries of a bib-file in the bibliography it is more troublesome to show citations. So I wrote a (very) small package which allows me to show citations of all entries of the bib-files.

4 The command

The main command of the package is called like the package and has two optional arguments:

\citeall[〈list of commands〉][〈number of entries〉]

The second optional argument sets the number of entries of the .bib (more precisely the .bbl-file) printed by\citeall. By default everything is cited.

The first optional argument is a comma separated list. For each entrykey in the .bbl\citeallwill loop through this list and pass to each item the entrykey as last argument. By default this list consist

*fischer@troubleshooting-tex.de

(2)

simply of a\citecommand. The items don’t need to be cite commands. As the examples show you can add text and other commands.

• The last command should be something that can handle the entry key argument.

• If there are brackets e.g. from optional argument of a\citeyou should protect them with braces.

• If there are commas you should protect them with braces. • If you want to insert a paragraph break, use\endgraf

• Don’t overdo the system. It is meant for simple debugging not for complicated citation print-outs.

5 Some examples

\citeall BookAuthor 2015 Fischer 2015 Itemize 2015 Muster 2015 Unknown 2015 \citeall[][1] BookAuthor 2015

\citeall[\fullcite] Eva BookAuthor (2015). a book. Ed. by Ben Editor. Publisher Ulrike Fischer (2015). The citeall package

Max Itemize (2015). “itemize”. In: ipsum ipsum ipsum ipsum • abc

• abc

Max Muster (Feb. 2015). “Title of Article”. In: Testjournal 1.2, p. 15 Max Unknown (2015). A curious file name.URL:%7B%5C%22u%7Dber_ gang.html

\citeall[\cite[15],\cite] BookAuthor 2015, p. 15, ibid. Fischer 2015, p. 15, ibid. Itemize 2015, p. 15, ibid. Muster 2015, p. 15, ibid. Unknown 2015, p. 15, ibid.

\citeall[Key: \textcolor{red},{\cite[15]},Test ibid: \cite] Key:book2015, BookAuthor 2015, p. 15, Test ibid: ibid.

Key:fischer2015, Fischer 2015, p. 15, Test ibid: ibid. Key:itemize, Itemize 2015, p. 15, Test ibid: ibid. Key:article2015, Muster 2015, p. 15, Test ibid: ibid. Key:fileproblem, Unknown 2015, p. 15, Test ibid: ibid. \citeall[{\cite[15]},\endgraf \cite]

(3)

BookAuthor 2015, p. 15, ibid. Fischer 2015, p. 15, ibid. Itemize 2015, p. 15, ibid. Muster 2015, p. 15, ibid. Unknown 2015, p. 15, ibid.

6 Printing the bibliography

\citeallinternally issues a\nocite{*}, so\printbibliographywill print all entries of the bib-file. Since version 1.1\citealladds all entries it cites to a category “citeall”. So if you restrict the number of citation with the second optional argument, you can also restrict the length of the bibliography with\printbibliography[category=citeall]

7 Configuration

\citeallgroupseparator \citeallseparator \citeallfinentry \citealldefaultcite

By default the item of an entry are separated by a comma and a space. This can be changed by re-defining\citeallseparator. The last item is finished by\citeallfinentry(default nothing). The entries are separated by a\par, this can be changed by redefining\citeallgroupseparator. The

default cite command used by\citeallis (\cite). This can be changed by redefining\citealldefaultcite.

\citeallpreambledefinition

.bib files can contain a special entry type@preamblewhich can contain definitions that should be executed at the begin of the bibliography, e.g. to ensure that some commands are defined. Such a field lead to a command\preamble{...}in the .bbl. When\citeallreads the .bbl it redefines \preambleto do nothing. You can change this behaviour by redefining this macro. It should always have one argument!

Referenties

GERELATEERDE DOCUMENTEN

This style transforms the current path or the current node in a link acting as if it is produced by the macro \actionsocg (the visibility status of OCGs of the first list is..

preamble, all ordinary cross-references of the label+cross-reference mechanism of LaTeX are by default made into pdf hyperlinks. This includes all cross-references in philex that

Alternatively, one may use the commands shadowoffsetx and shadowoffsety to independently change the horizontal and vertical offset.

Stubs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of

\TABcell{}{} – presents the cell content in the prevailing mode (text or math) and style set by stackengine and tabstackengine \TABcellBox{}{} – presents the cell content, in

The command works like \raggedright, but produces generally narrowe lines in paragraphs, with more text in the last line (the lines have more-equal lengths). ∗ Documentation

Exclusion ends with the first detected \end{〈name〉}, even if there are additional \begin{〈name〉} declarations in the skipped text; that is, nesting of environments is not

That means that one can build a font that takes e.g. the capital letters from a sans serif font and the lowercase letters from a serif font. Or a font that pulls in missing greek