diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-04 23:39:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-04 23:39:42 +0000 |
commit | 9887db96f6bd00a498bd06f2d0411a4a0542b86a (patch) | |
tree | 45551e2652130eb3ca108288a2bd4ca56d903411 /Master/texmf-dist/tex/latex/biblatex-gost/gost-alphabetic.cbx | |
parent | c7f11261a82371f868980fd5c05f76c00646d036 (diff) |
biblatex-gost (2apr13)
git-svn-id: svn://tug.org/texlive/trunk@29663 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gost/gost-alphabetic.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-gost/gost-alphabetic.cbx | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gost/gost-alphabetic.cbx b/Master/texmf-dist/tex/latex/biblatex-gost/gost-alphabetic.cbx new file mode 100644 index 00000000000..6d49861dab3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-gost/gost-alphabetic.cbx @@ -0,0 +1,75 @@ +\ProvidesFile{gost-alphabetic.cbx} +[2013/04/03\space v0.8\space biblatex-gost styles] + +\ExecuteBibliographyOptions{labelalpha,autocite=inline} + +\newbibmacro*{cite}{% + \printtext[bibhyperref]{% + \printfield{prefixnumber}% + \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}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\parencite}[\mkbibbrackets] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcite}[\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibbrackets\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\textcite} + {\let\cbx@tempa=\empty + \undef\cbx@lasthash} + {\usebibmacro{citeindex}% + \usebibmacro{textcite}} + {} + {\usebibmacro{postnote}% + \bibclosebracket} + +\DeclareMultiCiteCommand{\cites}[\mkbibbrackets]{\cite}{\multicitedelim} +\DeclareMultiCiteCommand{\parencites}[\mkbibbrackets]{\parencite}{\multicitedelim} +\DeclareMultiCiteCommand{\smartcites}[\iffootnote\mkbibbrackets\mkbibfootnote]{\smartcite}{\multicitedelim} + +\endinput |