summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex
blob: 2f4fc227341eb47ba68db41d7dc06c973906f6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
\documentclass{ltxdockit}[2011/03/25]
\usepackage{btxdockit}
\usepackage[main=english,french,latin]{babel}
\usepackage[bibstyle=verbose,citestyle=verbose]{biblatex}
\addbibresource{biblatex-source-division.bib}
\usepackage{biblatex-source-division}
\usepackage{fontspec}
\usepackage[mono=false]{libertine}
\usepackage{microtype}
\usepackage[strict]{csquotes}
\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}
\usepackage{shortvrb}
\usepackage{minted}
\usepackage{pifont}

% Usefull commands
\newcommand{\biblatex}{biblatex\xspace}
\pretocmd{\bibfield}{\sloppy}{}{}
\pretocmd{\bibtype}{\sloppy}{}{}
\newcommand{\bibkey}[1]{\texttt #1}
% Meta-datas
\titlepage{%
	title={Source division with biblatex},
	email={maieul <at> maieul <dot> net},
	author={Maïeul Rouquette},
	subtitle={},
	revision={1.0.2},
	date={16/01/2014},
	url={https://github.com/maieul/biblatex-source-division}}
% Hyphen
\hyphenation{Ma-de-lei-ne}

\begin{document}

\printtitlepage

\tableofcontents
\section{Introduction}
\subsection{Goals}
The \biblatex package allows to refer to a precise page number when citing a reference:
\begin{minted}{latex}
\cite[23]{key}
\end{minted}

Means \enquote{cite the entry {\bibkey key}, and precise this we are referring to the p.~23 of this entry.}

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. 

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}:

\begin{quotation}
\cite[(II, \textsc{viii}, 13)152-154]{Augustin_DeDoctChr_BA}
\end{quotation}

And the same passage in the edition of the \emph{\selectlanguage{latin}Corpus Christianorum Series Latina}:
\begin{quotation}
\cite[(II, \textsc{viii}, 13)39-40]{Augustin_DeDoctChr_CCSL}
\end{quotation}

As you can see, the passage is the same, but the pagination is not the same.
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.
\subsection{Credits}

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}.}. 
Its code is freely inspired of a contribution of Andrey Boruvka\footnote{\url{http://tex.stackexchange.com/q/95110/}.}.

All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-source-division/issues}.}.

\section{Usage}

The package is to be used in combination of \biblatex citestyle of the \emph{verbose} family.
It must be loaded after the \biblatex package.
\begin{minted}{tex}
\usepackage[citestyle=verbose-***,...]{biblatex}
\usepackage{biblatex-source-division}
\end{minted}

When citing a reference (with \cmd{cite}, \cmd{footcite} or other citation command),  the division of source is added in parenthesis in the \opt{prenote} arg. The syntax of the rest of the \opt{prenote} arg is the normal syntax of \biblatex.

For example, our \file{.bib} for us texts in this documentation introduction is:

\inputminted{tex}{biblatex-source-division.bib}

And we called them with :

\begin{minted}{latex}
\cite[(II, \textsc{viii}, 13)152-154]{Augustin_DeDoctChr_BA}

\cite[(II, \textsc{viii}, 13)39-40]{Augustin_DeDoctChr_CCSL}
\end{minted}

\subsection{Styling}

The division of source is put on the \bibfield{titleaddon} field. So you can stylize it with all the tools of biblatex.

\subsection{Limitation}

This package redefines the standard bibmacro \verb+prenote+. If you want to redefine it, ensure to load the \verb+getsourcedivision+ bibmacro:

\begin{minted}{latex}
\renewbibmacro*{prenote}{%
  \usebibmacro{getsourcedivision}%
  ... your customisation}
\end{minted}

\section{Revision History}
\begin{changelog}

\begin{release}{1.0.2}{2014-01-16}
\item Fixes spurious spaces.
\end{release}

\begin{release}{1.0.1}{2014-01-15}
\item Debug when using in tabular.
\end{release}


\begin{release}{1.0.0}{2013-12-07}
\item First public release.
\end{release}

\end{changelog}
\end{document}