From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/402 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: templates Date: Sun, 25 Apr 1999 21:05:36 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37236780.E03F58BC@wxs.nl> 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 1035391264 23775 80.91.224.250 (23 Oct 2002 16:41:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:41:04 +0000 (UTC) Original-To: NTG-CONTEXT Xref: main.gmane.org gmane.comp.tex.context:402 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:402 Hi All, Sometimes keying in macros can be annoying. For this reason, sometimes macro packages use | to shorten things, like |word| for verbatim in macros related to programming source code or manuals. In itself such macros are not that expressive, but they at least save typing keys. Currently in ConTeXt the || is used for compound words and other things that concern hyphenation (like in this|(|one) where the '(' is to be taken into account in the break). The next release will introduce templates, that also use the |. Think of: \definetemplate [b] [style=bold] \definetemplate [t] [style=type] \definetemplate [w] [command=\Word] \definetemplate [c] [style=cap] \definetemplate [u] [style=type,command=\hyphenatedurl] something |t:monospaced| and something |b:bold| and something |w:capitalized| or really |c:cap| but, you||see the compound words and whatever goes|:|between and|::|between or|*|between and should hyphenated still works ok and even colons |t:like here:| come out ok, just like the next rather fuzzy |u:http://www.pragma-ade.nl| Maybe it makes sense to predefine some templates, like t (type), e (emphasys) and b (bold). Maybe even m (math) makes sense. Any ideas are welcome. Furthermore, in a few weeks I will upload context up-to-date 1999-003, which shows how to do flow charts. (Maybe 1999-004 will concern math). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------