diff options
Diffstat (limited to 'tex/context/base/bibl-tra.mkiv')
-rw-r--r-- | tex/context/base/bibl-tra.mkiv | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tex/context/base/bibl-tra.mkiv b/tex/context/base/bibl-tra.mkiv index 936f310be..9648c068a 100644 --- a/tex/context/base/bibl-tra.mkiv +++ b/tex/context/base/bibl-tra.mkiv @@ -939,19 +939,25 @@ %D \type{\cite} commands with a braced argument (these might appear %D in included data from the \type{.bib} file). +% \unexpanded\def\cite +% {\doifnextoptionalelse\dodocite\dobibref} +% \def\dobibref#1% +% {\docite[#1][]} +% \def\dodocite[#1]% +% {\startstrictinspectnextcharacter +% \dodoubleempty\dododocite[#1]} +% \def\dododocite % [#1][#2] +% {\stopstrictinspectnextcharacter +% \docite} + \unexpanded\def\cite - {\doifnextoptionalelse\dodocite\dobibref} + {\strictdoifnextoptionalelse\dodocite\dobibref} \def\dobibref#1% {\docite[#1][]} \def\dodocite[#1]% - {\startstrictinspectnextcharacter - \dodoubleempty\dododocite[#1]} - -\def\dododocite % [#1][#2] - {\stopstrictinspectnextcharacter - \docite} + {\strictdoifnextoptionalelse{\docite[#1]}{\docite[#1][]}} \def\docite[#1][#2]% {\begingroup |