summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/README6
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.pdfbin0 -> 53457 bytes
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.sty26
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.tex86
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/latexmkrc2
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/makefile12
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.bbx23
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.dbx20
8 files changed, 175 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/README b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/README
new file mode 100644
index 0000000000..fef2e20573
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/README
@@ -0,0 +1,6 @@
+biblatex-multiple-dm
+====================
+
+Loading multiple datamodel with biblatex
+
+Inspired by http://tex.stackexchange.com/a/154568/7712. \ No newline at end of file
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.pdf
new file mode 100644
index 0000000000..a8b1075725
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.pdf
Binary files differ
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.sty b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.sty
new file mode 100644
index 0000000000..432f050cf2
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.sty
@@ -0,0 +1,26 @@
+%% Copyright 2014 Maïeul Rouquette
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Maïeul Rouquette
+% This work consists of the files multiple-dm.dbx, mutliple-dm.bbx, multiple-dm.sty
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{biblatex-multiple-dm}[2015/04/26 1.0.1]
+\RequirePackage{kvoptions,etoolbox}
+
+\SetupKeyvalOptions {family=@biblatexmultipledm@,prefix=biblatexmultipledm@}
+
+\DeclareStringOption[verbose]{bibstyle}
+\DeclareStringOption{tools}
+
+\ProcessKeyvalOptions*
+\endinput \ No newline at end of file
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.tex b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.tex
new file mode 100644
index 0000000000..23fd41b256
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/biblatex-multiple-dm.tex
@@ -0,0 +1,86 @@
+\documentclass{ltxdockit}[2011/03/25]
+\usepackage{btxdockit}
+\usepackage{fontspec}
+\usepackage[mono=false]{libertine}
+\usepackage{microtype}
+\usepackage[american]{babel}
+\usepackage[strict]{csquotes}
+\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}
+\usepackage{shortvrb}
+\usepackage{pifont}
+\usepackage{minted}
+% Usefull commands
+\newcommand{\biblatex}{biblatex\xspace}
+\pretocmd{\bibfield}{\sloppy}{}{}
+\pretocmd{\bibtype}{\sloppy}{}{}
+\newcommand{\namebibstyle}[1]{\texttt{#1}}
+% Meta-datas
+\titlepage{%
+ title={Loading multiple data models with biblatex},
+ subtitle={},
+ email={maieul <at> maieul <dot> net},
+ author={Maïeul Rouquette},
+ revision={1.0.1},
+ date={26/04/2015},
+ url={https://github.com/maieul/biblatex-multiple-dm}}
+
+\begin{document}
+
+
+\printtitlepage
+\tableofcontents
+
+\section{Introduction}
+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}.
+
+This package \emph{biblatex-multiple-dm} allows to load multiple datamodel without creating a full \biblatex style.
+
+\section{Use}
+The package must be loaded before the \biblatex package. It's loaded with two options:
+\begin{description}
+ \item[tools] which is a comma separated list of the datamodels to be loaded.
+ \item[bibstyle] which is the main bibstyle to be loaded.
+\end{description}
+
+For example:
+\begin{minted}{latex}
+\usepackage[tools={realauthor,manuscripts},bibstyle=verbose]{biblatex-multiple-dm}
+\end{minted}
+
+After that, the \biblatex package must be loaded with the bibstyle option equal to \verb+multiple-dm+:
+\begin{minted}{latex}
+\usepackage[bibstyle=multiple-dm,citestyle=verbose-trad2]{biblatex}
+\end{minted}
+
+
+\section{For developers}
+
+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:
+
+\begin{minted}{latex}
+\ifdef{\biblatexmultipledm@bibstyle}
+ {\RequireBibliographyStyle{\biblatexmultipledm@bibstyle}}
+ {\RequireBibliographyStyle{verbose}}
+\end{minted}
+
+\section{Credits}
+
+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}.}.
+
+
+All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-multiple-dm/issues}.}.
+
+\section{Change history}
+
+\begin{changelog}
+
+\begin{release}{1.0.1}{2014-06-25}
+\item Show the correct file version with \cmd{ProvidesFile}.
+\end{release}
+
+
+\begin{release}{1.0.0}{2014-06-25}
+\item First public release.
+\end{release}
+\end{changelog}
+\end{document}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/latexmkrc b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/latexmkrc
new file mode 100644
index 0000000000..d6cfc714fa
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/latexmkrc
@@ -0,0 +1,2 @@
+$pdflatex = "xelatex --shell-escape %S";
+$pdf_mode = "1";
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/makefile b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/makefile
new file mode 100644
index 0000000000..176131b85d
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/makefile
@@ -0,0 +1,12 @@
+FILES = *sty *tex *pdf *bbx *dbx README makefile latexmkrc
+%.pdf: %.tex latexmkrc
+ latexmk *tex
+dist: biblatex-multiple-dm.pdf
+ @$(RM) ../biblatex-multiple-dm.zip
+ rm -rf biblatex-multiple-dm
+ mkdir biblatex-multiple-dm
+ ln $(FILES) biblatex-multiple-dm
+ zip -r ../biblatex-multiple-dm.zip biblatex-multiple-dm
+
+clean:
+ @$(RM) *.pdf *.toc *.aux *.out *.fdb_latexmk *.log *.bbl *.bcf *.blg *run.xml *.synctex.gz*
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.bbx
new file mode 100644
index 0000000000..7f8f459723
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.bbx
@@ -0,0 +1,23 @@
+%% Copyright 2014 Maïeul Rouquette
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Maïeul Rouquette
+% This work consists of the files multiple-dm.dbx, mutliple-dm.bbx, multiple-dm.sty
+
+\ProvidesFile{multiple-dm.bbx}[2015/04/26 1.0.1]
+
+\renewcommand{\do}[1]{\blx@inputonce{#1.bbx}{}{}{}{}{}}
+\expandafter\docsvlist\expandafter{\biblatexmultipledm@tools}
+
+\RequireBibliographyStyle{\biblatexmultipledm@bibstyle}
+
+\endinput \ No newline at end of file
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.dbx b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.dbx
new file mode 100644
index 0000000000..12f58f657d
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-multiple-dm/multiple-dm.dbx
@@ -0,0 +1,20 @@
+%% Copyright 2014 Maïeul Rouquette
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Maïeul Rouquette
+% This work consists of the files multiple-dm.dbx, mutliple-dm.bbx, multiple-dm.sty
+
+\ProvidesFile{multiple-dm.dbx}[2015/04/26 1.0.1]
+
+\renewcommand{\do}[1]{\blx@inputonce{#1.dbx}{}{}{}{}{}}
+\expandafter\docsvlist\expandafter{\biblatexmultipledm@tools}
+