Debian Codegraph @

texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex

raw
1 \documentclass{ltxdockit}[2011/03/25]
2 \usepackage{btxdockit}
3 \usepackage[main=english,french,latin]{babel}
4 \usepackage[bibstyle=verbose,citestyle=verbose]{biblatex}
5 \addbibresource{biblatex-source-division.bib}
6 \usepackage{biblatex-source-division}
7 \usepackage{fontspec}
8 \usepackage[mono=false]{libertine}
9 \usepackage{microtype}
10 \usepackage[strict]{csquotes}
11 \setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}
12 \usepackage{shortvrb}
13 \usepackage{minted}
14 \usepackage{pifont}
15
16 % Usefull commands
17 \newcommand{\biblatex}{biblatex\xspace}
18 \pretocmd{\bibfield}{\sloppy}{}{}
19 \pretocmd{\bibtype}{\sloppy}{}{}
20 \newcommand{\bibkey}[1]{\texttt #1}
21 % Meta-datas
22 \titlepage{%
23 title={Source division with biblatex},
24 email={maieul <at> maieul <dot> net},
25 author={Maïeul Rouquette},
26 subtitle={},
27 revision={2.4.2},
28 date={21/09/2017},
29 url={https://github.com/maieul/biblatex-source-division}}
30 % Hyphen
31 \hyphenation{Ma-de-lei-ne}
32
33 \begin{document}
34
35 \printtitlepage
36
37 \tableofcontents
38 \section{Introduction}
39 \subsection{Goals}
40 The \biblatex package allows to refer to a precise page number when citing a reference:
41 \begin{minted}{latex}
42 \cite[23]{key}
43 \end{minted}
44
45 Means \enquote{cite the entry {\bibkey key}, and precise this we are referring to the p.~23 of this entry.}
46
47 However, historian or philologist can want to precise an other information: the source division, which for an old text is independent of the edition. Mostly, this source division is something like: book, chapter, section, but it can have an other scheme. The source division is printed after the book name, but before the publication information (translator, address, publisher). The book division doesn't prevent printing the page number.
48
49 For example, citing the work of Augustine \emph{De Doctrina Christiana} in the book~II, chapter~\textsc{viii} section~13 in French translation of the \emph{\selectlanguage{french}Bibliothèque Augustinienne}:
50
51 \begin{quotation}
52 \cite[(II, \textsc{viii}, 13)152-154]{Augustin_DeDoctChr_BA}
53 \end{quotation}
54
55 And the same passage in the edition of the \emph{\selectlanguage{latin}Corpus Christianorum Series Latina}:
56 \begin{quotation}
57 \cite[(II, \textsc{viii}, 13)39-40]{Augustin_DeDoctChr_CCSL}
58 \end{quotation}
59
60 As you can see, the passage is the same, but the pagination is not the same.
61 However, the biblatex package doesn't provide easy tools to change both the page number and the source division. That is the aim of this package.
62 \subsection{Credits}
63
64 This package was created for Maïeul Rouquette's phd dissertation\footnote{\url{http://apocryphes.hypothese.org}.} in 2013. It is licensed on the \emph{\LaTeX\ Project Public License}\footnote{\url{http://latex-project.org/lppl/lppl-1-3c.html}.}.
65 Its code is freely inspired of a contribution of Andrey Boruvka\footnote{\url{http://tex.stackexchange.com/q/95110/}.}.
66
67 All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-source-division/issues}.}.
68
69 \section{Usage}
70
71 The package is to be used in combination of \biblatex citestyle of the \emph{verbose} family.
72 It must be loaded after the \biblatex package.
73 \begin{minted}{tex}
74 \usepackage[citestyle=verbose-***,...]{biblatex}
75 \usepackage{biblatex-source-division}
76 \end{minted}
77
78 When citing a reference (with \cmd{cite}, \cmd{footcite} or other citation command), the division of source is added in parenthesis in the \opt{postnote} arg. The syntax of the rest of the \opt{postnote} arg is the normal syntax of \biblatex.
79
80 For example, our \file{.bib} used for texts in this documentation introduction is:
81
82 \inputminted{tex}{biblatex-source-division.bib}
83
84 And we called them with :
85
86 \begin{minted}{latex}
87 \cite[(II, \textsc{viii}, 13)152-154]{Augustin_DeDoctChr_BA}
88
89 \cite[(II, \textsc{viii}, 13)39-40]{Augustin_DeDoctChr_CCSL}
90 \end{minted}
91
92 \subsection{Option}
93
94 \label{after}If a \bibfield{maintitle} field is defined for an entry, the source division will be print after it. However, you can load the package with \verb+after=title+ option to print the source division after the \bibfield{title} field.
95
96 \subsection{Styling}
97
98 The division of source is put on the \bibfield{titleaddon} field.
99 However, if a \bibfield{maintitle} field is used and if the \verb+after+ option is not set to \verb+title+, the division source is put on the \bibfield{maintitleaddon} field.
100
101 So you can stylise it with all the tools of biblatex.
102
103
104
105 \section{Revision History}
106 \begin{changelog}
107
108 \begin{release}{2.4.2}{2017-09-21}
109 \item Fix bug with \biblatex option \option{ibidpage} when there is not any source division.
110 \item Fix potential conflicts with other package.
111 \end{release}
112
113 \begin{release}{2.4.1}{2016-06-07}
114 \item Fix bug when using \cs{volcite} command and related.
115 \end{release}
116
117
118 \begin{release}{2.4.0}{2016-06-07}
119 \item Add error message to know more quickly break compatibility with new releases of biblatex.
120 \end{release}
121
122 \begin{release}{2.3.1}{2015-07-07}
123 \item Fix compatibility with op. cit. form when using bibstyle `verbose-trad1'.
124 \end{release}
125
126 \begin{release}{2.3.0}{2015-05-15}
127 \item Add \verb+after+ package option. \see{after}
128 \end{release}
129
130 \begin{release}{2.2.2}{2015-05-12}
131 \item Fix spurious field separator when source division is used without page number.
132 \end{release}
133
134 \begin{release}{2.2.1}{2014-06-28}
135 \item Add the source division after the short form of a work, when entry has \bibfield{maintitle} field.
136 \end{release}
137
138 \begin{release}{2.2.0}{2014-06-17}
139 \item Add the source division after the short form of a work when using verbose citestyle.
140 \end{release}
141
142 \begin{release}{2.1.1}{2014-03-25}
143 \item Warning if the package is loaded after \emph{bibla­tex-true-citepages-omit}.
144 \end{release}
145
146 \begin{release}{2.1.0}{2014-03-17}
147 \item Compatibility with \cs{<x>volcites} commands.
148 \item Add the source division after \emph{maintitle} when using a multi-volume book.
149 \item Use \cmd{AtEveryCitekey} instead of patching \verb+prenote+ macro.
150 \end{release}
151
152
153 \begin{release}{2.0.0}{2014-03-15}
154 \item Use the \emph{xpatch} package to prevent overriding of the \verb+prenote+ macro.
155 \item Add the source division after \emph{op. cit.} and \emph{ibid.}.
156 \end{release}
157
158
159 \begin{release}{1.1.0}{2014-01-19}
160 \item Compatibility with \cs{<x>volcite} commands.
161 \end{release}
162
163 \begin{release}{1.0.3}{2014-01-16}
164 \item Fixes bug when no postnote arg is used.
165 \end{release}
166
167 \begin{release}{1.0.2}{2014-01-16}
168 \item Fixes spurious spaces.
169 \end{release}
170
171 \begin{release}{1.0.1}{2014-01-15}
172 \item Debug when using in tabular.
173 \end{release}
174
175
176 \begin{release}{1.0.0}{2013-12-07}
177 \item First public release.
178 \end{release}
179
180 \end{changelog}
181 \end{document}