diff options
author | Hans Hagen <pragma@wxs.nl> | 2003-08-08 00:00:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2003-08-08 00:00:00 +0200 |
commit | 3f9c44091f54eb858cfbb71b6346445e606b8687 (patch) | |
tree | 9e30c9fe11ef8906f5c8717a8c42c9fb70ee40c1 /tex/context/base/core-int.tex | |
parent | 91f5bdb707b063e6e7acc31073db4cc17bd66593 (diff) | |
download | context-3f9c44091f54eb858cfbb71b6346445e606b8687.tar.gz |
stable 2003.08.08
Diffstat (limited to 'tex/context/base/core-int.tex')
-rw-r--r-- | tex/context/base/core-int.tex | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/tex/context/base/core-int.tex b/tex/context/base/core-int.tex index 14ffe5b98..771887a6d 100644 --- a/tex/context/base/core-int.tex +++ b/tex/context/base/core-int.tex @@ -1,6 +1,6 @@ %D \module %D [ file=core-int, -%D version=1995.1.1, +%D version=1995.01.01, %D title=\CONTEXT\ Core Macros, %D subtitle=Interaction, %D author=Hans Hagen, @@ -872,7 +872,7 @@ \advance\dimen0 -\getvalue{\??am#3\c!onderoffset}% \setbox0\vbox to \dimen0 {\forgetall % Voor't geval de afstand - %\stelblankoin[\v!standaard]% % (tijdelijk) is aangepast. + %\setupblank[\v!standaard]% % (tijdelijk) is aangepast. \restorestandardblank \hsize#2\relax \executeamboxcommands{#3}{#4}\c!voor\c!tussen\c!na}% @@ -2233,6 +2233,44 @@ \def\placecomments {\doflushcomments} +% \setupinteraction[state=start] +% +% \useattachment[whatever][[new name]][test.tex] +% +% % \setupattachments[\c!symbool={symbol-normal,symbol-down}] +% +% \starttext \attachment[whatever] \stoptext + +\definesystemvariable{at} + +\def\useattachment + {\dotripleempty\douseattachment} + +\def\douseattachment[#1][#2][#3]% + {\setgvalue{\??at :#1}{#2}% + \setgvalue{\??at::#1}{#3}% + \doifvaluenothing{\??at :#1}{\setxvalue{\??at :#1}{#1}}% + \doifvaluenothing{\??at::#1}{\setxvalue{\??at::#1}{\getvalue{\??at:#1}}}} + +\def\attachment[#1]% + {\ifundefined{\??at:#1}\else \iflocation + \doif\@@atstatus\v!start + {\doiffileelse{\getvalue{\??at:#1}}% + {\doPDFattachfile + {\getvalue{\??at::#1}}% + {1em}{1ex}\@@atkleur\@@atsymbool + {\getvalue{\??at:#1}}}% + {}}% + \fi \fi} + +\def\setupattachments + {\dodoubleempty\getparameters[\??at]} + +\setupattachments + [\c!status=\v!start, + \c!kleur=\@@iakleur, + \c!symbool=] + % jammer, tussen/midden had erin gemoeten; \c!commando toevoegen \def\registermenucommand#1% |