summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.pdfbin76483 -> 76092 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.tex48
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.pdfbin6321 -> 34121 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.tex2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/english-manuscripts.lbx3
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/french-manuscripts.lbx3
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.bbx35
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.dbx17
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.bbx212
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.dbx22
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx238
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.dbx12
12 files changed, 332 insertions, 260 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.pdf b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.pdf
index b32b36d2b74..28812afef2d 100644
--- a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.tex b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.tex
index 965f8b476e4..9651ec2d04e 100644
--- a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.tex
+++ b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.tex
@@ -19,8 +19,8 @@
subtitle={New data types},
email={maieul <at> maieul <dot> net},
author={Maïeul Rouquette},
- revision={1.1.0},
- date={15/03/2014},
+ revision={1.1.1},
+ date={20/03/2014},
url={https://github.com/maieul/biblatex-manuscripts-philology}}
@@ -53,7 +53,7 @@ All issues can be submitted, in French or English, in the GitHub issues page\foo
\section{New type and fields}
-This package defines one new bibtype \bibtype{manuscript}, which is to be used to defined a manuscript.
+This package defines one new bibtype \bibtype{manuscript}, which is to be used to define a manuscript.
\subsection{Mandatory}
This bibtype has these mandatory fields:
@@ -95,7 +95,7 @@ This bibtype can use the optional fields:
\fielditem{pagination}{key} the pagination of part of manuscript which is studied. The standard pagination key are allowed, but the package add a new key: \verb+folio+.
-\fielditem{shorthand}{litteral} the shorthand of the manuscript. If this field is empty, the entry key will be used as shorthand, except if the option \opt{msnoautoshorthand} is loaded. See \secref{opt:msnoautoshorthand}.
+\fielditem{shorthand}{litteral} the shorthand of the manuscript. If this field is empty, the entry key will be used as shorthand, except if the version \opt{manuscript-noauthoshorthand} is loaded. See \secref{noauthoshorthand}.
\fielditem{support}{key} the support of the manuscript, which will be translated in your work language. These keys are defined: \texttt{papyrus}, \texttt{paper}, \texttt{pergament}.
@@ -135,17 +135,11 @@ When loading the \biblatex package, use the option \opt{bibstyle} with value equ
\usepackage[bibstyle=manuscripts,otheroption…]{biblatex}
\end{minted}
-\subsubsection{Options}
+\label{noautoshorthand}If you don't want the \bibfield{shorthand} of the manuscript be auto-defined from the entry key, use \opt{manuscripts-noautoshorthand instead}.
-
-Loading \biblatex, you can use all the standard \biblatex options. But you can also use these specific options:
-
-\begin{optionlist}
-
-\boolitem[false]{msnoautoshorthand}\label{opt:msnoautoshorthand}
-
-Disable the auto definition of manuscript's shorthand by using the citation key.
-\end{optionlist}
+\begin{minted}{latex}
+\usepackage[bibstyle=manuscripts-noautoshorthand,otheroption…]{biblatex}
+\end{minted}
\subsection{Citation of one manuscript}
The manuscript description is supposed to be used with a \opt{citestyle} of the \emph{verbose} family (see the \biblatex handbook).
@@ -182,21 +176,21 @@ If you want to print a list of manuscripts with detailed fields listed in \secre
In this case, you must run two times biber: one after the first run of \LaTeX\ and one after the second run, to add in the \file{.bbl} the catalogues. After that, run a three time \LaTeX.
-If you use \opt{msnoautoshorthand} option, this list could contain manuscripts without shorthand. By default, the descriptions of such manuscripts will be aligned on the left of the shorthands column.
+If you use \opt{manuscripts-noautoshorthand} version, this list could contain manuscripts without shorthand. By default, the descriptions of such manuscripts will be aligned on the left of the shorthands column.
\label{bibcheck}An other solution is to make two lists: one with manuscripts with shorthand and one with manuscript withoutshortands. You can add to your \cmd{printbiblography} commands a \opt{bibcheck} option, equal to \opt{withshorthand} or \opt{withoutshorthand}:
\begin{minted}{latex}
\printbibliography[
- type=manuscript,
- env=details,
- title=Description of used manuscripts,
- check=withshorthand
- ]
+ type=manuscript,
+ env=details,
+ title=Description of used manuscripts,
+ check=withshorthand
+]
\printbibliography[
- type=manuscript,
- title=Description of other manuscripts,
- check=withoutshorthand
- ]
+ type=manuscript,
+ title=Description of other manuscripts,
+ check=withoutshorthand
+]
\end{minted}
\section{Customization}
@@ -244,9 +238,13 @@ The \file{manuscripts.bbx} file defines bibmacros and field formats (read the \b
\begin{changelog}
+\begin{release}{1.1.1}{2014-03-20}
+ \item Delete \opt{msnoautoshorthand} option and replace it by the \opt{manuscripts-noautoshorthand} style. \see{noautoshorthand}
+\end{release}
+
\begin{release}{1.1.0}{2014-03-15}
+\item Add \opt{msnoautoshorthand} option.
\item Add \bibfield{shortcollection} field.\see{field:shortcollection}
-\item Add \opt{msnoautoshorthand} option. \see{opt:msnoautoshorthand}
\item Add \opt{withshorthand} and \opt{withoutshorthand} bibcheck. \see{bibcheck}
\end{release}
diff --git a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.pdf b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.pdf
index 8e8ceeb8389..b0b88b7cb3c 100644
--- a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.tex b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.tex
index d9214964154..1e0d9e88d16 100644
--- a/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.tex
+++ b/Master/texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/example.tex
@@ -3,7 +3,7 @@
\usepackage{polyglossia}
\setmainlanguage{english}
\setmainfont{Linux Libertine O}
-\usepackage[backend=biber,bibstyle=manuscripts,citestyle=verbose,datamodel=manuscripts]{biblatex}
+\usepackage[backend=biber,bibstyle=manuscripts,citestyle=verbose]{biblatex}
\addbibresource{example.bib}
\begin{document}
\title{Examples}
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/english-manuscripts.lbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/english-manuscripts.lbx
index 9414c2db1ab..821e825f51d 100644
--- a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/english-manuscripts.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/english-manuscripts.lbx
@@ -11,8 +11,7 @@
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Maïeul Rouquette
-% This work consists of the files manuscripts.dbx, manuscripts.bbx, french-manuscripts.lbx and english-manuscripts.lbx
-
+% This work consists of the files manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
\ProvidesFile{french-manuscripts.lbx}[2014/03/15\space v1.1.0\space manuscripts biblatex localisation]
\InheritBibliographyExtras{english}
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/french-manuscripts.lbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/french-manuscripts.lbx
index 73b557f05c2..c00ce88964f 100644
--- a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/french-manuscripts.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/french-manuscripts.lbx
@@ -11,8 +11,7 @@
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Maïeul Rouquette
-% This work consists of the files manuscripts.dbx, manuscripts.bbx, french-manuscripts.lbx and english-manuscripts.lbx
-
+% This work consists of the files manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
\ProvidesFile{french-manuscripts.lbx}[2014/03/15\space v1.1.0\space manuscripts biblatex localisation]
\InheritBibliographyExtras{french}
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.bbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.bbx
new file mode 100644
index 00000000000..54b6f2ed023
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.bbx
@@ -0,0 +1,35 @@
+%% Copyright 2013 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 manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
+\ProvidesFile{manuscripts-noautoshorthand.bbx}
+[\abx@bbxid]
+
+
+\RequireBibliographyStyle{manuscripts-shared}
+
+% Mapping
+% Mapping
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map[overwrite]{
+ \pertype{manuscript}
+ \step[fieldsource=catalog,final]
+ \step[fieldset=catalog,fieldvalue={\cites}]
+ \step[origfieldval,fieldset=catalog,append]
+ }
+ }
+}
+\endinput
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.dbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.dbx
new file mode 100644
index 00000000000..6a1a5bb08f4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-noautoshorthand.dbx
@@ -0,0 +1,17 @@
+%% Copyright 2013 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 manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
+\ProvidesFile{manuscripts-noautoshorthand.dbx}
+[\abx@bbxid]
+\blx@inputonce{manuscripts-shared.dbx}{}{}{}{}{} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.bbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.bbx
new file mode 100644
index 00000000000..efbd96ab3da
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.bbx
@@ -0,0 +1,212 @@
+%% Copyright 2013 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 manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
+
+\ProvidesFile{manuscripts-commons}
+[\abx@bbxid]
+
+
+\RequireBibliographyStyle{verbose}
+
+% This file contains code shared by manuscript.bbx and manuscript-noauthoshorthand.
+% This file is organized from the must close of user to the less close.
+% 1. Some commands to be redefined
+
+
+
+
+\newcommand{\collectionshelfmarkpunct}{\addspace}
+\newcommand{\datingpagespunct}{\isdot\addcomma\addspace}
+\newcommand{\librarycollectionpunct}{\addcomma\addspace}
+
+
+\newcommand{\mkcolumns}[1]{\addspace\mkbibparens{#1}}
+\newcommand{\mklocation}[1]{\mkbibnamelast{#1}}
+\newcommand{\mkmanuscriptdescriptionlabel}[1]{\textbf{#1}\manuscriptdescriptionlabelpunct}
+\newcommand{\mkshcite}[1]{#1}
+
+\newcommand{\locationlibrarypunct}{\addcolon\addspace}
+\newcommand{\manuscriptdescriptionlabelpunct}{\addcolon\addspace}
+\newcommand{\moreinterpunct}{\addsemicolon\addspace}
+\newcommand{\pagetotalpagespunct}{\addcolon\addspace}
+
+\def\recto{r}
+\def\verso{v}
+
+
+
+% 2. Some macros
+
+
+\newbibmacro{annotation}{%
+ \iffieldundef{annotation}{}{\printfield{annotation}}
+}
+
+\newbibmacro{manuscript:more}{%
+ \printlist{origin}%
+ \setunit{\moreinterpunct}%
+ \printnames{scribe}%
+ \setunit{\moreinterpunct}%
+ \printnames{owner}%
+}
+\newbibmacro{more+annotation+catalog}{%
+ \iftoggle{shorthand:details}{%
+ \setunit{\finentrypunct\par}%
+ \usebibmacro{manuscript:more}%
+ \setunit{\finentrypunct\par}%
+ \usebibmacro{annotation}%
+ \setunit{\finentrypunct\par}%
+ \usebibmacro{catalog}%
+ }{}%
+}
+
+\newbibmacro{catalog}{%
+ \iffieldundef{catalog}{}%
+ {\printfield{catalog}}%
+}
+
+\newbibmacro{collection+shelfmark}{%
+ \mkbibemph{%
+ \printfield{collection}%
+ \setunit{\collectionshelfmarkpunct}%
+ \printfield{shelfmark}%
+ }%
+}
+
+\newbibmacro{date/dating}{%
+ \iffieldundef{dating}{\usebibmacro{date}}
+ {\printfield{dating}}%
+}
+
+\newbibmacro{location+library+series+shelfmark}{%
+ \printlist{location}%
+ \setunit{\locationlibrarypunct}%
+ \printfield{library}%
+ \setunit{\librarycollectionpunct}%
+ \usebibmacro{collection+shelfmark}%
+}
+
+\newbibmacro{manuscript:pages}{%
+ \printfield{pagetotal}%
+ \iffieldundef{columns}{}{\bibstring[\mkcolumns]{\strfield{columns}column}}%
+ \setunit{\pagetotalpagespunct}%
+ \printfield{pages}%
+}
+
+\newbibmacro{support+dating}{%
+ \printfield{support}%
+ \newunit%
+ \usebibmacro{date/dating}%
+ }
+
+% 3. Some Field or List Format
+\DeclareFieldFormat{catalog}{%
+ \bibstring[\mkmanuscriptdescriptionlabel]{catalog}%
+ #1%
+}
+\DeclareFieldFormat{support}{\bibstring{#1}}
+
+\DeclareNameFormat{manuscript}{%
+ \ifnumgreater{\value{listcount}}{\value{liststart}}%
+ {\multilistdelim}%
+ {\bibstring[\mkmanuscriptdescriptionlabel]{\currentname}}%
+ \ifuseprefix
+ {\usebibmacro{name:first-last}{#1}{#4}{#5}{#8}}
+ {\usebibmacro{name:first-last}{#1}{#4}{#6}{#8}}%
+}
+\DeclareNameAlias{scribe}{manuscript}
+\DeclareNameAlias{owner}{manuscript}
+\DeclareListFormat[manuscript]{location}{%
+ \usebibmacro{list:delim}{\mklocation{#1}}%
+ \mklocation{#1}\isdot%
+ \usebibmacro{list:andothers}}
+
+\DeclareListFormat[manuscript]{origin}{%
+ \ifnumgreater{\value{listcount}}{\value{liststart}}%
+ {\multilistdelim}%
+ {\bibstring[\mkmanuscriptdescriptionlabel]{origin}}%
+ #1%
+ }
+
+% 4. Printshorthands Environment
+
+\newtoggle{shorthand:details}
+\defbibenvironment{details}
+ {\toggletrue{shorthand:details}
+ \list
+ {\printfield[shorthandwidth]{shorthand}}
+ {\setlength{\listparindent}{\parindent}%
+ \setlength{\labelwidth}{\shorthandwidth}%
+ \setlength{\leftmargin}{\labelwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \addtolength{\leftmargin}{\labelsep}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}%
+ \renewcommand*{\makelabel}[1]{##1\hss}}}
+ {\endlist}
+ {\item\iffieldundef{shorthand}{\hspace{-\labelwidth}\hspace{-\labelsep}}}
+
+% 5. Others
+%% 5.1 Driver
+\DeclareBibliographyDriver{manuscript}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{location+library+series+shelfmark}%
+ \newunit
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \printfield{howpublished}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{support+dating}
+ \newunit\newblock
+ \iftoggle{bbx:url}
+ {\usebibmacro{url+urldate}}
+ {}%
+ \setunit{\datingpagespunct}
+ \usebibmacro{manuscript:pages}
+ \iftoggle{bbx:related}
+ {\newunit\newblock%
+ \usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{more+annotation+catalog}%
+ \usebibmacro{finentry}}
+
+%% 5.2 Citation command
+\DeclareCiteCommand{\shcite}[\mkshcite]
+ {\usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:shorthand}}
+ {\multicitedelim}
+ {\usebibmacro{cite:postnote}}
+
+
+%% 5.3 NumCheckSetup (should not be changed)
+
+
+\NumCheckSetup{\def\verso{}\def\recto{}}
+
+%% 5.4 Language mapping
+
+\DeclareLanguageMapping{english}{english-manuscripts}
+\DeclareLanguageMapping{french}{french-manuscripts}
+
+% 5.5 bibcheck
+
+\defbibcheck{withshorthand}{\iffieldundef{shorthand}{\skipentry}{}}
+\defbibcheck{withoutshorthand}{\iffieldundef{shorthand}{}{\skipentry}}
+\endinput
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.dbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.dbx
new file mode 100644
index 00000000000..3ef698ae950
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts-shared.dbx
@@ -0,0 +1,22 @@
+%% Copyright 2013 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 manuscripts.dbx, manuscripts.bbx, french-manuscripts.lbx and english-manuscripts.lbx
+\ProvidesFile{manuscripts-shared.dbx}
+[\abx@bbxid]
+\DeclareDatamodelEntrytypes{manuscript}
+\DeclareDatamodelFields[type=field,datatype=literal]{catalog,dating,shortlibrary,columns, collection,shortcollection,usualtitle,shelfmark,support,columns}
+\DeclareDatamodelFields[type=list,datatype=name]{scribe,owner}
+\DeclareDatamodelFields[type=list,datatype=literal]{origin}
+\DeclareDatamodelEntryfields[manuscript]{catalog,dating,shortlibrary,shortcollection,columns,languages, collection,usualtitle,shelfmark,support,columns,origin,scribe,owner}
+
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx
index 0340725651a..2b24688a1a3 100644
--- a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx
@@ -11,233 +11,27 @@
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Maïeul Rouquette
-% This work consists of the files manuscripts.dbx, manuscripts.bbx, french-manuscripts.lbx and english-manuscripts.lbx
+% This work consists of the files manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
\ProvidesFile{manuscripts.bbx}
[\abx@bbxid]
-\RequireBibliographyStyle{verbose}
-% This file is organiszed from the must close of user to the less close.
-% 1. Some commands to be redefine
+\RequireBibliographyStyle{manuscripts-shared}
-
-
-
-
-
-
-\newcommand{\collectionshelfmarkpunct}{\addspace}
-\newcommand{\datingpagespunct}{\isdot\addcomma\addspace}
-\newcommand{\librarycollectionpunct}{\addcomma\addspace}
-
-
-\newcommand{\mkcolumns}[1]{\addspace\mkbibparens{#1}}
-\newcommand{\mklocation}[1]{\mkbibnamelast{#1}}
-\newcommand{\mkmanuscriptdescriptionlabel}[1]{\textbf{#1}\manuscriptdescriptionlabelpunct}
-\newcommand{\mkshcite}[1]{#1}
-
-\newcommand{\locationlibrarypunct}{\addcolon\addspace}
-\newcommand{\manuscriptdescriptionlabelpunct}{\addcolon\addspace}
-\newcommand{\moreinterpunct}{\addsemicolon\addspace}
-\newcommand{\pagetotalpagespunct}{\addcolon\addspace}
-
-\def\recto{r}
-\def\verso{v}
-
-
-
-% 2. Some macros
-
-
-\newbibmacro{annotation}{%
- \iffieldundef{annotation}{}{\printfield{annotation}}
-}
-
-\newbibmacro{manuscript:more}{%
- \printlist{origin}%
- \setunit{\moreinterpunct}%
- \printnames{scribe}%
- \setunit{\moreinterpunct}%
- \printnames{owner}%
-}
-\newbibmacro{more+annotation+catalog}{%
- \iftoggle{shorthand:details}{%
- \setunit{\finentrypunct\par}%
- \usebibmacro{manuscript:more}%
- \setunit{\finentrypunct\par}%
- \usebibmacro{annotation}%
- \setunit{\finentrypunct\par}%
- \usebibmacro{catalog}%
- }{}%
-}
-
-\newbibmacro{catalog}{%
- \iffieldundef{catalog}{}%
- {\printfield{catalog}}%
-}
-
-\newbibmacro{collection+shelfmark}{%
- \mkbibemph{%
- \printfield{collection}%
- \setunit{\collectionshelfmarkpunct}%
- \printfield{shelfmark}%
- }%
-}
-
-\newbibmacro{date/dating}{%
- \iffieldundef{dating}{\usebibmacro{date}}
- {\printfield{dating}}%
-}
-
-\newbibmacro{location+library+series+shelfmark}{%
- \printlist{location}%
- \setunit{\locationlibrarypunct}%
- \printfield{library}%
- \setunit{\librarycollectionpunct}%
- \usebibmacro{collection+shelfmark}%
-}
-
-\newbibmacro{manuscript:pages}{%
- \printfield{pagetotal}%
- \iffieldundef{columns}{}{\bibstring[\mkcolumns]{\strfield{columns}column}}%
- \setunit{\pagetotalpagespunct}%
- \printfield{pages}%
-}
-
-\newbibmacro{support+dating}{%
- \printfield{support}%
- \newunit%
- \usebibmacro{date/dating}%
- }
-
-% 3. Some Field or List Format
-\DeclareFieldFormat{catalog}{%
- \bibstring[\mkmanuscriptdescriptionlabel]{catalog}%
- #1%
-}
-\DeclareFieldFormat{support}{\bibstring{#1}}
-
-\DeclareNameFormat{manuscript}{%
- \ifnumgreater{\value{listcount}}{\value{liststart}}%
- {\multilistdelim}%
- {\bibstring[\mkmanuscriptdescriptionlabel]{\currentname}}%
- \ifuseprefix
- {\usebibmacro{name:first-last}{#1}{#4}{#5}{#8}}
- {\usebibmacro{name:first-last}{#1}{#4}{#6}{#8}}%
-}
-\DeclareNameAlias{scribe}{manuscript}
-\DeclareNameAlias{owner}{manuscript}
-\DeclareListFormat[manuscript]{location}{%
- \usebibmacro{list:delim}{\mklocation{#1}}%
- \mklocation{#1}\isdot%
- \usebibmacro{list:andothers}}
-
-\DeclareListFormat[manuscript]{origin}{%
- \ifnumgreater{\value{listcount}}{\value{liststart}}%
- {\multilistdelim}%
- {\bibstring[\mkmanuscriptdescriptionlabel]{origin}}%
- #1%
- }
-
-% 4. Printshorthands Environment
-
-\newtoggle{shorthand:details}
-\defbibenvironment{details}
- {\toggletrue{shorthand:details}
- \list
- {\printfield[shorthandwidth]{shorthand}}
- {\setlength{\listparindent}{\parindent}%
- \setlength{\labelwidth}{\shorthandwidth}%
- \setlength{\leftmargin}{\labelwidth}%
- \setlength{\labelsep}{\biblabelsep}%
- \addtolength{\leftmargin}{\labelsep}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}%
- \renewcommand*{\makelabel}[1]{##1\hss}}}
- {\endlist}
- {\item\iffieldundef{shorthand}{\hspace{-\labelwidth}\hspace{-\labelsep}}}
-
-% 5. Others
-%% 5.1 Driver
-\DeclareBibliographyDriver{manuscript}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{location+library+series+shelfmark}%
- \newunit
- \newunit
- \printlist{language}%
- \newunit\newblock
- \printfield{howpublished}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{support+dating}
- \newunit\newblock
- \iftoggle{bbx:url}
- {\usebibmacro{url+urldate}}
- {}%
- \setunit{\datingpagespunct}
- \usebibmacro{manuscript:pages}
- \iftoggle{bbx:related}
- {\newunit\newblock%
- \usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{more+annotation+catalog}%
- \usebibmacro{finentry}}
-
-%% 5.2 Citation command
-\DeclareCiteCommand{\shcite}[\mkshcite]
- {\usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:shorthand}}
- {\multicitedelim}
- {\usebibmacro{cite:postnote}}
-
-%% 5.3 Mapping
-
-\DeclareStyleSourcemap{
+% Mapping
+ \DeclareStyleSourcemap{
\maps[datatype=bibtex]{
- \map[overwrite]{
- \pertype{manuscript}
- \step[fieldsource=catalog,final]
- \step[fieldset=catalog,fieldvalue={\cites}]
- \step[origfieldval,fieldset=catalog,append]
- }
- }
+ \map{
+ \pertype{manuscript}
+ \step[fieldsource=entrykey]
+ \step[fieldset=shorthand, origfieldval]
+ }
+ \map[overwrite]{
+ \pertype{manuscript}
+ \step[fieldsource=catalog,final]
+ \step[fieldset=catalog,fieldvalue={\cites}]
+ \step[origfieldval,fieldset=catalog,append]
+ }
+ }
}
-
-%% 5.4 NumCheckSetup (should not be changed)
-
-
-\NumCheckSetup{\def\verso{}\def\recto{}}
-
-%% 5.5 Language mapping
-
-\DeclareLanguageMapping{english}{english-manuscripts}
-\DeclareLanguageMapping{french}{french-manuscripts}
-
-% 5.6 Auto shorthand
-
-\newbool{bbx:msnoautoshorthand}
-\DeclareBibliographyOption{msnoautoshorthand}[true]{%
- \csuse{bool#1}{bbx:msnoautoshorthand}%
-}
-
-\AtEveryCitekey{%
- \notbool{bbx:msnoautoshorthand}{%
- \ifentrytype{manuscript}{%
- \iffieldundef{shorthand}{%
- \savefield{entrykey}{\entrykey}%
- \restorefield{shorthand}{\entrykey}%
- }{}%
- }{}%
- }%
- {}%
-}
-
-% 5.7 bibcheck
-
-\defbibcheck{withshorthand}{\iffieldundef{shorthand}{\skipentry}{}}
-\defbibcheck{withoutshorthand}{\iffieldundef{shorthand}{}{\skipentry}}
\endinput
diff --git a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.dbx b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.dbx
index 91045a5e51a..fef10600b78 100644
--- a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.dbx
+++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.dbx
@@ -11,11 +11,7 @@
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Maïeul Rouquette
-% This work consists of the files manuscripts.dbx, manuscripts.bbx, french-manuscripts.lbx and english-manuscripts.lbx
-
-\DeclareDatamodelEntrytypes{manuscript}
-\DeclareDatamodelFields[type=field,datatype=literal]{catalog,dating,shortlibrary,columns, collection,shortcollection,usualtitle,shelfmark,support,columns}
-\DeclareDatamodelFields[type=list,datatype=name]{scribe,owner}
-\DeclareDatamodelFields[type=list,datatype=literal]{origin}
-\DeclareDatamodelEntryfields[manuscript]{catalog,dating,shortlibrary,shortcollection,columns,languages, collection,usualtitle,shelfmark,support,columns,origin,scribe,owner}
-
+% This work consists of the files manuscripts*.dbx, manuscripts*.bbx, manuscripts*.lbx
+\ProvidesFile{manuscripts.dbx}
+[\abx@bbxid]
+\blx@inputonce{manuscripts-shared.dbx}{}{}{}{}{} \ No newline at end of file