diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/cbx/numeric-verb.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/cbx/numeric-verb.cbx | 80 |
1 files changed, 37 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/cbx/numeric-verb.cbx b/Master/texmf-dist/tex/latex/biblatex/cbx/numeric-verb.cbx index 39b04f0fd7d..8490d61a40a 100644 --- a/Master/texmf-dist/tex/latex/biblatex/cbx/numeric-verb.cbx +++ b/Master/texmf-dist/tex/latex/biblatex/cbx/numeric-verb.cbx @@ -1,72 +1,70 @@ -% $Id: numeric-verb.cbx,v 0.9 2010/02/14 15:42:33 lehman beta $ +% $Id: numeric-verb.cbx,v 0.9a 2010/03/19 19:52:15 lehman beta $ \ProvidesFile{numeric-verb.cbx} -[\abx@cbxid $Id: numeric-verb.cbx,v 0.9 2010/02/14 15:42:33 lehman beta $] +[\abx@cbxid $Id: numeric-verb.cbx,v 0.9a 2010/03/19 19:52:15 lehman beta $] \ExecuteBibliographyOptions{labelnumber,autocite=inline} +\renewcommand*{\multicitedelim}{\addcomma\space} \providebool{bbx:subentry} \DeclareFieldFormat{entrysetcount}{\mknumalph{#1}} +\newbibmacro*{cite}{% + \printtext[bibhyperref]{% + \printfield{labelnumber}% + \ifbool{bbx:subentry} + {\printfield{entrysetcount}} + {}}} + +\newbibmacro*{textcite}{% + \ifnameundef{labelname} + {\printfield[citetitle]{labeltitle}} + {\printnames{labelname}}% + \addspace\bibopenbracket + \ifnumequal{\value{citecount}}{1} + {\usebibmacro{prenote}} + {}% + \usebibmacro{cite}} + \DeclareCiteCommand{\cite} - {\usebibmacro{prenote}} + {\bibopenbracket + \usebibmacro{prenote}} {\usebibmacro{citeindex}% - \bibleftbracket - \printtext[bibhyperref]{% - \printfield{labelnumber}% - \ifbool{bbx:subentry} - {\printfield{entrysetcount}} - {}}} - {\bibrightbracket\multicitedelim} + \ifnumgreater{\value{citecount}}{1} + {\bibopenbracket} + {}% + \usebibmacro{cite}} + {\bibclosebracket\multicitedelim} {\usebibmacro{postnote}% - \bibrightbracket} + \bibclosebracket} \DeclareCiteCommand{\parencite}[\mkbibbrackets] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelnumber}% - \ifbool{bbx:subentry} - {\printfield{entrysetcount}} - {}}} + \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}} \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelnumber}% - \ifbool{bbx:subentry} - {\printfield{entrysetcount}} - {}}} + \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}} \DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelnumber}% - \ifbool{bbx:subentry} - {\printfield{entrysetcount}} - {}}} + \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}} \DeclareCiteCommand{\textcite} - {\usebibmacro{prenote}} + {} {\usebibmacro{citeindex}% - \ifnameundef{labelname} - {\printfield[citetitle]{labeltitle}} - {\printnames{labelname}}% - \addspace\bibleftbracket - \printtext[bibhyperref]{% - \printfield{labelnumber}% - \ifbool{bbx:subentry} - {\printfield{entrysetcount}} - {}}}% - {\bibrightbracket\multicitedelim} - {\usebibmacro{postnote}\bibrightbracket} + \usebibmacro{textcite}} + {\bibclosebracket\multicitedelim} + {\usebibmacro{postnote}% + \bibclosebracket} \DeclareCiteCommand{\supercite}[\mkbibsuperscript] {\iffieldundef{prenote} @@ -76,11 +74,7 @@ {} {\BibliographyWarning{Ignoring postnote argument}}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelnumber}% - \ifbool{bbx:subentry} - {\printfield{entrysetcount}} - {}}} + \usebibmacro{cite}} {\supercitedelim} {} |