Debian Codegraph @

texmf-dist/doc/latex/biblatex-multiple-dm/biblatex-multiple-dm.tex

raw
1 \documentclass{ltxdockit}[2011/03/25]
2 \usepackage{btxdockit}
3 \usepackage{fontspec}
4 \usepackage[mono=false]{libertine}
5 \usepackage{microtype}
6 \usepackage[american]{babel}
7 \usepackage[strict]{csquotes}
8 \setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}
9 \usepackage{shortvrb}
10 \usepackage{pifont}
11 \usepackage{minted}
12 % Usefull commands
13 \newcommand{\biblatex}{biblatex\xspace}
14 \pretocmd{\bibfield}{\sloppy}{}{}
15 \pretocmd{\bibtype}{\sloppy}{}{}
16 \newcommand{\namebibstyle}[1]{\texttt{#1}}
17 % Meta-datas
18 \titlepage{%
19 title={Loading multiple data models with biblatex},
20 subtitle={},
21 email={maieul <at> maieul <dot> net},
22 author={Maïeul Rouquette},
23 revision={1.0.1},
24 date={26/04/2015},
25 url={https://github.com/maieul/biblatex-multiple-dm}}
26
27 \begin{document}
28
29
30 \printtitlepage
31 \tableofcontents
32
33 \section{Introduction}
34 Datamodel in \biblatex are conceived to be distributed as a part of citations and bibliographic styles\footnote{See: \url{https://github.com/plk/biblatex/issues/220\#issuecomment-37761639}.}. However, sometime, the modification in datamodel is too tiny to need a new style, and can be easily integrated to standard \biblatex styles. That is the case in the two projects \emph{biblatex-realauthor} and \emph{biblatex-manuscripts-philology}. Because of \biblatex conception of datamodel distribution, it's not possible to load both datamodels of \emph{biblatex-realauthor} and \emph{biblatex-manuscripts-philology}.
35
36 This package \emph{biblatex-multiple-dm} allows to load multiple datamodel without creating a full \biblatex style.
37
38 \section{Use}
39 The package must be loaded before the \biblatex package. It's loaded with two options:
40 \begin{description}
41 \item[tools] which is a comma separated list of the datamodels to be loaded.
42 \item[bibstyle] which is the main bibstyle to be loaded.
43 \end{description}
44
45 For example:
46 \begin{minted}{latex}
47 \usepackage[tools={realauthor,manuscripts},bibstyle=verbose]{biblatex-multiple-dm}
48 \end{minted}
49
50 After that, the \biblatex package must be loaded with the bibstyle option equal to \verb+multiple-dm+:
51 \begin{minted}{latex}
52 \usepackage[bibstyle=multiple-dm,citestyle=verbose-trad2]{biblatex}
53 \end{minted}
54
55
56 \section{For developers}
57
58 If one developer wants to allow is \enquote{bibliography style} be compatible with \verb+biblatex-multiple-dm+, he/she has just to try the existing of \cs{biblatexmultipledm@bibstyle} macro when loading primary bibstyle:
59
60 \begin{minted}{latex}
61 \ifdef{\biblatexmultipledm@bibstyle}
62 {\RequireBibliographyStyle{\biblatexmultipledm@bibstyle}}
63 {\RequireBibliographyStyle{verbose}}
64 \end{minted}
65
66 \section{Credits}
67
68 This package was created for Maïeul Rouquette's phd dissertation\footnote{\url{http://apocryphes.hypothese.org}.} in 2014. It is licensed on the \emph{\LaTeX\ Project Public License}\footnote{\url{http://latex-project.org/lppl/lppl-1-3c.html}.}. It's freely inspired by a code of Oleg Domanov\footnote{\url{http://tex.stackexchange.com/a/154568/7712}.}.
69
70
71 All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-multiple-dm/issues}.}.
72
73 \section{Change history}
74
75 \begin{changelog}
76
77 \begin{release}{1.0.1}{2014-06-25}
78 \item Show the correct file version with \cmd{ProvidesFile}.
79 \end{release}
80
81
82 \begin{release}{1.0.0}{2014-06-25}
83 \item First public release.
84 \end{release}
85 \end{changelog}
86 \end{document}