Re: [NTG-context] About \defineshortcut

2005-12-21 Thread Hans Hagen
Radhelorn wrote: It is a pity that such useful command (setups) remains undocumented. As far as I understand inside setups can be any commands and environment changes are fully restored after their execution. Right? And \setups command can replace any single command (in arguments and such).

Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Radhelorn
Hans Hagen wrote: Radhelorn wrote: I think that \defineshortcut commands are most useful inside some environment (start/stop pair). So it is possible to have such environment that restores back all catcode changes (or other variable changes) made inside it (like local variables in some program

Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Hans Hagen
Radhelorn wrote: Taco Hoekwater wrote: For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typefile {some/dir/file} So how to revert to previous meaning of '/'? It is possible to do it only t

Re: [NTG-context] About \defineshortcut

2005-12-20 Thread Radhelorn
Taco Hoekwater wrote: For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typefile {some/dir/file} So how to revert to previous meaning of '/'? It is possible to do it only temporarily? Explici

Re: [NTG-context] About \defineshortcut

2005-12-17 Thread Taco Hoekwater
Radhelorn wrote: Thanks Taco. I was experimenting with \bgroup \egroup and thinking about some more explicit and visible. BTW where is these \start \stop defined? core-sys.tex, line 128-136: \def\complexstart[#1]{\bgroup\getvalue{\e!start#1}} \def\complexstop [#1]{\getvalue{\e!stop #1}\egr

Re: [NTG-context] About \defineshortcut

2005-12-17 Thread Radhelorn
Taco Hoekwater wrote: Radhelorn wrote: Hello All! There is intresting macros in cont-new -- shortcuts. It works pretty well, but I have one question: how to undefine them back? For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is ex

Re: [NTG-context] About \defineshortcut

2005-12-16 Thread Taco Hoekwater
Radhelorn wrote: Hello All! There is intresting macros in cont-new -- shortcuts. It works pretty well, but I have one question: how to undefine them back? For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks th

[NTG-context] About \defineshortcut

2005-12-15 Thread Radhelorn
Hello All! There is intresting macros in cont-new -- shortcuts. It works pretty well, but I have one question: how to undefine them back? For example after command: \defineshortcut [//] [] [style=\em] I can get slash only by \textslash (which is expected) and it breaks things like: \typef