diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx b/Master/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx index 859c52bf783..1d3f605eef1 100644 --- a/Master/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx +++ b/Master/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx @@ -1,67 +1,68 @@ -% $Id: alphabetic.cbx,v 0.9 2010/02/14 15:42:33 lehman beta $ +% $Id: alphabetic.cbx,v 0.9a 2010/03/19 19:52:15 lehman beta $ \ProvidesFile{alphabetic.cbx} -[\abx@cbxid $Id: alphabetic.cbx,v 0.9 2010/02/14 15:42:33 lehman beta $] +[\abx@cbxid $Id: alphabetic.cbx,v 0.9a 2010/03/19 19:52:15 lehman beta $] \ExecuteBibliographyOptions{labelalpha,autocite=inline} -\DeclareCiteCommand{\cite} - {\usebibmacro{prenote}\bibleftbracket} +\newbibmacro*{cite}{% + \printtext[bibhyperref]{% + \printfield{labelalpha}% + \printfield{extraalpha}}} + +\newbibmacro*{textcite}{% + \iffieldequals{namehash}{\cbx@lasthash} + {\multicitedelim} + {\cbx@tempa + \ifnameundef{labelname} + {} + {\printnames{labelname}\space}% + \bibopenbracket}% + \ifnumequal{\value{citecount}}{1} + {\usebibmacro{prenote}} + {}% + \usebibmacro{cite}% + \savefield{namehash}{\cbx@lasthash}% + \gdef\cbx@tempa{\bibclosebracket\multicitedelim}} + +\DeclareCiteCommand{\cite}[\mkbibbrackets] + {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelalpha}% - \printfield{extraalpha}}} + \usebibmacro{cite}} {\multicitedelim} - {\usebibmacro{postnote}\bibrightbracket} + {\usebibmacro{postnote}} \DeclareCiteCommand{\parencite}[\mkbibbrackets] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelalpha}% - \printfield{extraalpha}}} + \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}} \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelalpha}% - \printfield{extraalpha}}} + \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}} \DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% - \printtext[bibhyperref]{% - \printfield{labelalpha}% - \printfield{extraalpha}}} + \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{postnote}} \DeclareCiteCommand{\textcite} {\let\cbx@tempa=\empty - \undef\cbx@lasthash - \usebibmacro{prenote}} + \undef\cbx@lasthash} {\usebibmacro{citeindex}% - \iffieldequals{namehash}{\cbx@lasthash} - {\multicitedelim} - {\cbx@tempa - \ifnameundef{labelname} - {} - {\printnames{labelname}\space}% - \bibleftbracket}% - \printtext[bibhyperref]{% - \printfield{labelalpha}% - \printfield{extraalpha}}% - \savefield{namehash}{\cbx@lasthash}% - \gdef\cbx@tempa{\bibrightbracket\multicitedelim}} + \usebibmacro{textcite}} {} - {\usebibmacro{postnote}\bibrightbracket} + {\usebibmacro{postnote}% + \bibclosebracket} -\DeclareMultiCiteCommand{\cites}[\mkbibbrackets]{\parencite}{\multicitedelim} +\DeclareMultiCiteCommand{\cites}[\mkbibbrackets]{\cite}{\multicitedelim} \DeclareMultiCiteCommand{\parencites}[\mkbibbrackets]{\parencite}{\multicitedelim} \endinput |