diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-03-22 18:23:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-03-22 18:23:00 +0100 |
commit | 7301c500d2c7487c188a524a206b7f491c855ab3 (patch) | |
tree | eaf15cc4af9ca1979756ffae5ebdce80c3b8e96e /tex/context/base/scrn-ini.mkvi | |
parent | f584f7999f7c6b44675a9071eb9a8f74babf001e (diff) | |
download | context-7301c500d2c7487c188a524a206b7f491c855ab3.tar.gz |
beta 2013.03.22 18:23
Diffstat (limited to 'tex/context/base/scrn-ini.mkvi')
-rw-r--r-- | tex/context/base/scrn-ini.mkvi | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tex/context/base/scrn-ini.mkvi b/tex/context/base/scrn-ini.mkvi index a6cb495ee..88b528686 100644 --- a/tex/context/base/scrn-ini.mkvi +++ b/tex/context/base/scrn-ini.mkvi @@ -32,14 +32,19 @@ \installswitchcommandhandler \??interaction {interaction} \??interaction \appendtoks - \ifx\currentinteraction\previousinteraction - \doifelse{\interactionparameter\c!state}\v!start - {\locationtrue \setsystemmode \v!interaction}% - {\locationfalse \resetsystemmode\v!interaction}% - \fi + \ifx\previousinteraction\empty + \checkinteractionstate + \else\ifx\currentinteraction\previousinteraction + \checkinteractionstate + \fi\fi \to \everysetupinteraction -\def\doifelselocation +\unexpanded\def\checkinteractionstate + {\doifelse{\interactionparameter\c!state}\v!start + {\locationtrue \setsystemmode \v!interaction}% + {\locationfalse \resetsystemmode\v!interaction}} + +\def\doifelselocation % expandable {\iflocation \expandafter\firstoftwoarguments \else @@ -187,9 +192,9 @@ % this comes before starttext \appendtoks % not interfaced i.e. english - \doifvariable{document}{metadata:author} {\setupinteraction [author=\documentvariable{metadata:author}]}% - \doifvariable{document}{metadata:title} {\setupinteraction [title=\documentvariable{metadata:title}]}% - \doifvariable{document}{metadata:subject}{\setupinteraction[subject=\documentvariable{metadata:subject}]}% + \doifvariable{document}{metadata:author} {\setupinteraction [\c!author=\documentvariable{metadata:author}]}% + \doifvariable{document}{metadata:title} {\setupinteraction [\c!title=\documentvariable{metadata:title}]}% + \doifvariable{document}{metadata:subject}{\setupinteraction[\c!subject=\documentvariable{metadata:subject}]}% \to \everysetupdocument \setupinteraction |