summaryrefslogtreecommitdiff
path: root/tex/context/base/bibl-tra.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-07-07 16:20:16 +0300
committerMarius <mariausol@gmail.com>2012-07-07 16:20:16 +0300
commitb8ea4e2f5b32ae2714de161f7589ca65222117e2 (patch)
treeb15ab430c6afba3873c8173126a58a9f727bee94 /tex/context/base/bibl-tra.mkiv
parent9ba0684d7d13bb398c11c5854df61e25ee62f077 (diff)
downloadcontext-b8ea4e2f5b32ae2714de161f7589ca65222117e2.tar.gz
beta 2012.07.07 15:04
Diffstat (limited to 'tex/context/base/bibl-tra.mkiv')
-rw-r--r--tex/context/base/bibl-tra.mkiv21
1 files changed, 7 insertions, 14 deletions
diff --git a/tex/context/base/bibl-tra.mkiv b/tex/context/base/bibl-tra.mkiv
index 7cef23d88..d4cb71166 100644
--- a/tex/context/base/bibl-tra.mkiv
+++ b/tex/context/base/bibl-tra.mkiv
@@ -1244,7 +1244,7 @@
%D \type{\ixbibauthoryearref} stores the data in the macros
%D \type{\currentbibauthor} and \type{\currentbibyear}.
-\def\ifbibinteractionelse
+\def\doifbibinteractionelse
{\iflocation
\edef\test{\bibalternative\c!interaction}%
\ifx\test\v!stop
@@ -1256,20 +1256,11 @@
\@EA\secondoftwoarguments
\fi}
-\def\ifbibinteractionelse
- {\iflocation
- \doifelse{\bibalternative\c!interaction}\v!stop
- {\@EA\secondoftwoarguments}
- {\@EA\firstoftwoarguments}%
- \else
- \@EA\secondoftwoarguments
- \fi}
-
\def\bibmaybeinteractive#1#2%
{\ifbibcitecompress
#2%
\else
- \ifbibinteractionelse{\gotobiblink{#2}[#1]}{#2}%
+ \doifbibinteractionelse{\gotobiblink{#2}[#1]}{#2}%
\fi}
\def\bibauthoryearref[#1]%
@@ -1360,7 +1351,7 @@
\gotobiblink{#1}[#1]}
\def\bibgotoDOI#1#2%
- {\ifbibinteractionelse
+ {\doifbibinteractionelse
{\useURL[bibfooDoi#1][#2]%
\useURL[bibfoo#1][http://dx.doi.org/#2]%
\goto{\url[bibfooDoi#1]}[url(bibfoo#1)]}
@@ -1383,7 +1374,7 @@
\bibalternative\v!right}
\def\bibgotoURL#1#2%
- {\ifbibinteractionelse
+ {\doifbibinteractionelse
{\useURL[bibfoo#1][#2]\goto{\url[bibfoo#1]}[url(bibfoo#1)]}
{\hyphenatedurl{#2}}}
@@ -1411,7 +1402,7 @@
\def\dobibpageref#1%
{\bibinsertrefsep
- \ifbibinteractionelse
+ \doifbibinteractionelse
{\atbiblink[#1]}
{{\referencingfalse\at[#1]}}}
@@ -1500,4 +1491,6 @@
% \appendtoks \preloadbiblist \to \everysetuppublications
% \appendtoks \preloadbiblist \to \everystarttext
+\let\ifbibinteractionelse\doifbibinteractionelse
+
\protect \endinput