From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17633 Path: main.gmane.org!not-for-mail From: John Culleton Newsgroups: gmane.comp.tex.context Subject: Re: algorithms style : need \starttyping with TeX and math feature Date: Sat, 25 Dec 2004 14:03:10 -0500 Organization: WexfordPress Message-ID: <200412251403.10518.john@wexfordpress.com> References: <41CC2657.7000508@guest.arnes.si> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104001948 21011 80.91.229.6 (25 Dec 2004 19:12:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Dec 2004 19:12:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 25 20:12:22 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CiHKw-0003MQ-00 for ; Sat, 25 Dec 2004 20:12:22 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3B1DD1279F; Sat, 25 Dec 2004 20:12:22 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26116-04; Sat, 25 Dec 2004 20:12:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D0CB12780; Sat, 25 Dec 2004 20:12:19 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B553B12780 for ; Sat, 25 Dec 2004 20:12:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25987-04 for ; Sat, 25 Dec 2004 20:12:17 +0100 (CET) Original-Received: from mta10.adelphia.net (unknown [68.168.78.202]) by ronja.ntg.nl (Postfix) with ESMTP id B969D12777 for ; Sat, 25 Dec 2004 20:12:16 +0100 (CET) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta10.adelphia.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20041225191153.TWJQ25543.mta10.adelphia.net@69-174-190-44.frdrmd.adelphia.net> for ; Sat, 25 Dec 2004 14:11:53 -0500 Original-To: mailing list for ConTeXt users User-Agent: KMail/1.6.2 In-Reply-To: <41CC2657.7000508@guest.arnes.si> Content-Disposition: inline X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17633 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17633 On Friday 24 December 2004 09:23, Mojca Miklavec wrote: > Maurice Diamantini wrote: > > Well I agree that it's no more "typing" any more! > > So a special option for \setuplines would be more appropriate? > > Exactly, \starttyping does exactly that what you don't want: it disables > math and expansion of TeX commands. > > > Also, perhaps my request is simply an option of \startlines > > which keep not only the lines break, but also the first > > spaces of each line (in a verbatim font fors these space) > > In plain TeX you have a command \obeyspaces (apart from \obeylines). > Nevertheless, whitespaces at the beginning of line are ignored when > using \obeyspaces, so you additionally need to write an escaped > whitespace '\ ' or \strut at the beginning of line (I guess there's a > more efficient solution for that, but I'm no expert). > > But if you really only need whitespace at the beginning of line, > probably make something like: > \def\tab{\strut\hbox to 3em{}} % or any other size instead 3em > instead of using \obeyspaces and simply put \tab where you need a > certain amount of white space. > > Mojca > Using eplain.tex you can say: \verbatim |endverbatim (note bar instead of backslash.) If you need a vertical bar in the verbatim text then just double it. Anything in between including blank spaces and lines is printed verbatim. Context used to complain about one non-critical statement in the eplain file. Actually it complains about the following statement but you can easily spot the troublemaker. Delete it and eplain works fine with Context. Latest versions of eplain may already have the fix, haven't tested them. -- John Culleton Short list of publishing/marketing books: http://wexfordpress.com/tex/shortlist.pdf