diff options
author | Karl Berry <karl@freefriends.org> | 2014-03-20 22:50:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-03-20 22:50:39 +0000 |
commit | 38b305d3983e9f6bf193cf73e4f70f29fbf38fd8 (patch) | |
tree | 7bbcef1582f407f12653b385b778dcc2cc583c4c /Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx | |
parent | a65dc1bcbc389c1b017601758db3956f3585d5c7 (diff) |
biblatex-manuscripts-philology (20mar14)
git-svn-id: svn://tug.org/texlive/trunk@33235 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx | 238 |
1 files changed, 16 insertions, 222 deletions
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 |