diff options
author | Karl Berry <karl@freefriends.org> | 2014-03-16 21:08:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-03-16 21:08:58 +0000 |
commit | 1d5112325f65cbc2470ff12c81854ada5ce499a9 (patch) | |
tree | 9b0e396b527e2512687e08b1612707c4e4f9b9f1 /Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx | |
parent | bfbbe1994c80b945cfce367c1630a527cd3643fd (diff) |
biblatex-manuscripts-philology (16mar14)
git-svn-id: svn://tug.org/texlive/trunk@33195 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 | 33 |
1 files changed, 26 insertions, 7 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 4a31137feae..0340725651a 100644 --- a/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-manuscripts-philology/manuscripts.bbx @@ -155,7 +155,7 @@ \setlength{\parsep}{\bibparsep}% \renewcommand*{\makelabel}[1]{##1\hss}}} {\endlist} - {\item} + {\item\iffieldundef{shorthand}{\hspace{-\labelwidth}\hspace{-\labelsep}}} % 5. Others %% 5.1 Driver @@ -195,13 +195,9 @@ {\usebibmacro{cite:postnote}} %% 5.3 Mapping - \DeclareStyleSourcemap{ + +\DeclareStyleSourcemap{ \maps[datatype=bibtex]{ - \map{ - \pertype{manuscript} - \step[fieldsource=entrykey] - \step[fieldset=shorthand, origfieldval] - } \map[overwrite]{ \pertype{manuscript} \step[fieldsource=catalog,final] @@ -221,4 +217,27 @@ \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 |