From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17627 Path: main.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: algorithms style : need \starttyping with TeX and math feature Date: Fri, 24 Dec 2004 15:23:19 +0100 Message-ID: <41CC2657.7000508@guest.arnes.si> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103898335 15231 80.91.229.6 (24 Dec 2004 14:25:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Dec 2004 14:25:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 24 15:25:27 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 1ChqNj-0005WO-00 for ; Fri, 24 Dec 2004 15:25:27 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 653A41278A; Fri, 24 Dec 2004 15:25:26 +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 19120-02; Fri, 24 Dec 2004 15:25:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2F5E12783; Fri, 24 Dec 2004 15:23:32 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C57912783 for ; Fri, 24 Dec 2004 15:23:31 +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 19120-01 for ; Fri, 24 Dec 2004 15:23:30 +0100 (CET) Original-Received: from acheron.informatik.uni-muenchen.de (unknown [129.187.214.135]) by ronja.ntg.nl (Postfix) with ESMTP id AACE4126F8 for ; Fri, 24 Dec 2004 15:23:30 +0100 (CET) Original-Received: from internaldeliver.acheron.informatik.uni-muenchen.de (localhost [127.0.0.1]) by acheron.informatik.uni-muenchen.de (Postfix) with ESMTP id 8E4224358E for ; Fri, 24 Dec 2004 15:23:30 +0100 (CET) Original-Received: from [194.249.10.218] (ar20-26i.dial-up.arnes.si [194.249.10.218]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by acheron.informatik.uni-muenchen.de (Postfix) with ESMTP id E461343579 for ; Fri, 24 Dec 2004 15:23:28 +0100 (CET) User-Agent: Mozilla/4.5-4.75 (Windows; U; Windows NT 5.1; sl-SI; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: sl, en, en-us, de Original-To: mailing list for ConTeXt users In-Reply-To: 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:17627 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17627 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