From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17706 Path: main.gmane.org!not-for-mail From: Maurice Diamantini Newsgroups: gmane.comp.tex.context Subject: Re: algorithms style : need \starttyping with TeX and math feature Date: Mon, 3 Jan 2005 16:13:21 +0100 Message-ID: <01649DF0-5D9A-11D9-B03E-000A9595B57C@ensta.fr> References: <41CC2657.7000508@guest.arnes.si> <200412251403.10518.john@wexfordpress.com> <41CF25AA.8040604@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1104765628 21654 80.91.229.6 (3 Jan 2005 15:20:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2005 15:20:28 +0000 (UTC) Cc: Maurice Diamantini Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 03 16:20:18 2005 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 1ClU0I-000514-00 for ; Mon, 03 Jan 2005 16:20:18 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C9FC4127BC; Mon, 3 Jan 2005 16:20: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 01557-01; Mon, 3 Jan 2005 16:20:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92E54127A8; Mon, 3 Jan 2005 16:20:15 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B463127A8 for ; Mon, 3 Jan 2005 16:20:14 +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 01520-03 for ; Mon, 3 Jan 2005 16:20:13 +0100 (CET) Original-Received: from ns1.ensta.fr (unknown [147.250.10.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D81D1279D for ; Mon, 3 Jan 2005 16:20:12 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by ns1.ensta.fr (Postfix) with ESMTP id 3EFF0316529 for ; Mon, 3 Jan 2005 16:18:25 +0100 (CET) Original-Received: from ns1.ensta.fr ([127.0.0.1]) by localhost (ns1.ensta.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29448-08 for ; Mon, 3 Jan 2005 16:18:23 +0100 (CET) Original-Received: from ensta.ensta.fr (ensta.ensta.fr [147.250.1.1]) by ns1.ensta.fr (Postfix) with ESMTP id 30CE131651E for ; Mon, 3 Jan 2005 16:18:23 +0100 (CET) Original-Received: from [147.250.33.133] (mac-oc1 [147.250.33.133]) by ensta.ensta.fr (8.11.6/9.11.6) with ESMTP id j03FIE931627; Mon, 3 Jan 2005 16:18:14 +0100 In-Reply-To: <41CF25AA.8040604@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) 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:17706 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17706 Le 26 d=E9c. 04, =E0 21:57, h h extern a =E9crit : > Christmas present ... Thank you Hans for this present !! I just had to search the key to open this present, as I used an old ConTeXt version So I'm trying to switch to the texlive-2004 distribution (choosing the GUTenberg installation set) After some setup (m-bib has changed, ...) I could try your code and... *** it does exactly what I need ! *** Thank you very much ! Just a question. As you keep calling this environment "\startline" I suppose it is intended to be a standard option for "\startline" (which is a great news as I think it is quite usefull for numerous situations) But as the new version of context is not yet in the texlive-2004 (or as texlive-2005 is not yet out ;-) Would it not be a better idea to provide another environnement name to avoid conflict with the future standard startline environment? I tried to rename "startlines" to "startLines" with other hack, but it doesn't seem to be suffisant (but I didn't expect to!). Any way thank you for the solution ! > \unprotect > > \setuplines[\c!space=3D\v!default] > > \def\startlines > {\@@rgbefore > \whitespace > %\page[\v!preference]} gaat mis na koppen, nieuw: later \nobreak > \begingroup > \def\@@rgstepyes{\parindent\zeropoint}% > \def\@@rgstepno {\parindent\zeropoint}% > \edef\@@rgparindent{\the\parindent}% > \globallet\@@rglinesteptoggle\!!plusone > \processaction > [\@@rgindenting] > [ \v!yes=3D>\def\@@rgstepyes{\parindent\@@rgparindent}% > \def\@@rgstepno {\parindent\@@rgparindent}, > \v!odd=3D>\def\@@rgstepyes{\parindent\zeropoint }% > \def\@@rgstepno {\parindent\@@rgparindent}, > \v!even=3D>\def\@@rgstepno {\parindent\zeropoint }% > \def\@@rgstepyes{\parindent\@@rgparindent}]% > \typesettinglinestrue > \setupwhitespace[\v!none]% > \obeylines > \let\checkindentation\relax > \@@rgstepno > \ignorespaces > \gdef\afterfirstobeyedline % tzt two pass, net als opsomming > {\gdef\afterfirstobeyedline > {\nobreak > \global\let\afterfirstobeyedline\relax}}% > \def\obeyedline > {\par > \let\checkindentation\relax % else problems with odd/even > \afterfirstobeyedline > \ifdim\lastskip>\zeropoint > \globallet\@@rglinesteptoggle\!!zerocount > \else > \doglobal\increment\@@rglinesteptoggle > \fi > \ifodd\@@rglinesteptoggle\relax > \@@rgstepyes > \else > \@@rgstepno > \fi > \futurelet\next\dobetweenthelines}% > \processaction > [\@@rgspace] > [ \v!on=3D>\obeyspaces > \def\obeyedspace > =20 > {\mathortext\normalspace{\dontleavehmode{\tt\controlspace}}}, > \v!yes=3D>\obeyspaces > \def\obeyedspace > {\mathortext\normalspace{\dontleavehmode\normalspace}}]% > \GotoPar} > > \protect > > \starttext > > \startlines > test > test > test $a =3D 10$ > \stoplines > > \setuplines[space=3Don] > \startlines > test > test > test $a =3D 10$ > \stoplines > > \setuplines[space=3Dyes] > \startlines > test > test > test $a =3D 10$ > \stoplines > > test > test > test $a =3D 10$ > > \stoptext > > > > =3D=3D=3D=3D=3D=3D > >> Maurice Diamantini wrote: >> > Well I agree that it's no more "typing" any more! >> > So a special option for \setuplines would be more appropriate?