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 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?


Explicit \start a /b/ c \stop style grouping is normally best, but
a shortcut is just an active character with a closing defimiter,
so this will work for you special case:

  \catcode`\/=\other
  \typefile {some/dir/file}
  \catcode`\/=\active



Thanks Taco. I was experimenting with \bgroup \egroup and thinking about some more explicit and visible. BTW where is these \start \stop defined?

--
Radhelorn <[EMAIL PROTECTED]>
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to