From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2191 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Context-like? Date: Fri, 02 Jun 2000 01:23:45 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000602012345.00b7ea00@pop.wxs.nl> References: <3.0.5.32.20000601112522.00868310@mail.northcoast.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392977 6810 80.91.224.250 (23 Oct 2002 17:09:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:09:37 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Arnold In-Reply-To: <3.0.5.32.20000601112522.00868310@mail.northcoast.com> Xref: main.gmane.org gmane.comp.tex.context:2191 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2191 At 11:25 AM 6/1/2000 -0700, David Arnold wrote: >This works, it doesn't seem very Context-like. Any suggestions? > >You are not limited to single characters in naming variables and >parameters. There are some naming conventions, but equations such >as > >\midaligned{\type{fish' = growth_rate * fish * (1 - fish/6)}} > >\noindenting and parameters such as > >\midaligned{\type{growth_rate=0.20}} > >\noindenting are equally valid. You want-it context, you got it: \definetyping [somecode] [before={\startalignment[middle]}, after=\stopalignment, indentnext=no] \setupindenting [medium] test test \startsomecode test test \stopsomecode test test \startsomecode test test \stopsomecode test test [maybe I should add align=middle as option] 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 -----------------------------------------------------------------