From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4791 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Environments and shortcuts Date: Tue, 5 Jun 2001 12:34:53 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <1708537342.20010605123453@bigfoot.com> References: <3.0.6.32.20010604121415.009daa00@server-1> Reply-To: Giuseppe Bilotta NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035395431 28760 80.91.224.250 (23 Oct 2002 17:50:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:50:31 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Hans Hagen Xref: main.gmane.org gmane.comp.tex.context:4791 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4791 Monday, June 04, 2001 Hans Hagen wrote: HH> At 02:45 PM 6/2/01 +0200, Giuseppe Bilotta wrote: >>Hello, >> >>I know I should not be using shortcuts (they are not "official"), >>but they're so usefull ... ok, here's the problem. >> >>If I define a shortcut in an environment file, like >> >>\startenvironment novel >> >>\defineshortcut[color=red] >> >>\stopenvironment >> >>and the use \environment novel, the shortcut definition does not >>work (all other definitions do, though). What might the problem >>be? HH> since < > are used in macros (\ifnum etc) they are pushed popped when HH> loading critical files which means that after loading the env, the < has HH> it's old meaning. So, you need to add HH> \catcode`\<=\active HH> to the main file (\def\enableshortcuts{\catcode...} \enableshortcuts) Works like a chamr, thank you. -- Giuseppe "Oblomov" Bilotta