From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91250 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Pierre-Fran=C3=A7ois_Bonnefoi?= Newsgroups: gmane.comp.tex.context Subject: Re: line number overwriting Date: Wed, 29 Apr 2015 17:00:30 +0200 Message-ID: References: <2C893D11-8EE0-471F-892E-839E61E4ACBB@unilim.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============1075825720==" X-Trace: ger.gmane.org 1430319731 8307 80.91.229.3 (29 Apr 2015 15:02:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 15:02:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 29 17:01:57 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YnTUZ-0005Ob-3Y for gctc-ntg-context-518@m.gmane.org; Wed, 29 Apr 2015 17:01:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42CDA101FC for ; Wed, 29 Apr 2015 17:01:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WrJCTt0nV_3n for ; Wed, 29 Apr 2015 17:01:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6DE7110237 for ; Wed, 29 Apr 2015 17:00:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8CF6101FC for ; Wed, 29 Apr 2015 17:00:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id csP_B6OpF3F1 for ; Wed, 29 Apr 2015 17:00:46 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 556FA101E8 for ; Wed, 29 Apr 2015 17:00:46 +0200 (CEST) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.45]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3TF0jPS013519 for ; Wed, 29 Apr 2015 17:00:45 +0200 Original-Received: from [192.168.1.79] (home.libpfb.so [109.190.20.216]) (authenticated bits=0) by smtp.unilim.fr (8.13.1/8.13.1) with ESMTP id t3TF0Vik005874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 29 Apr 2015 17:00:35 +0200 In-Reply-To: X-Mailer: Apple Mail (2.2098) X-Univ-Limoges-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (smtp.unilim.fr [164.81.1.45]); Wed, 29 Apr 2015 17:00:35 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Scanned-By: MIMEDefang 2.67 on 164.81.1.45 X-Univ-Limoges-MailScanner-Information: Serveur Anti-virus Please contact postmaster@unilim.fr for more information X-Univ-Limoges-MailScanner-ID: t3TF0Vik005874 X-Univ-Limoges-MailScanner: Found to be clean X-Univ-Limoges-MailScanner-Envelope-From: bonnefoi@unilim.fr X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=164.81.1.45; country=FR; region=Limousin; city=Limoges; latitude=45.8315; longitude=1.2578; http://maps.google.com/maps?q=45.8315,1.2578&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QOlP0JLC - 50b1be1a314e - 20150429 (trained as not-spam) Received-SPF: pass (filter2-ams.mf.surf.net: domain of bonnefoi@unilim.fr designates 164.81.1.45 as permitted sender) receiver=filter2-ams.mf.surf.net; client-ip=164.81.1.45; envelope-from=; helo=smtp.unilim.fr; identity=mailfrom X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91250 Archived-At: --===============1075825720== Content-Type: multipart/alternative; boundary="Apple-Mail=_560C9A28-AA41-4218-AFB2-3C08CF956A49" --Apple-Mail=_560C9A28-AA41-4218-AFB2-3C08CF956A49 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thank you very much for your solution. When using it into a paragraph, the line number disappears : = \defineframed[numeroLigneCode][location=3Dlow,width=3Dfit,strut=3Dyes,fram= e=3Doff,rightframe=3Don] \definetyping[code][numbering=3Dline,page=3Dyes,bodyfont=3D9pt,tab=3D2] = =20 = \setuplinenumbering[code][location=3Dtext,align=3Dleft,style=3D{\switchtob= odyfont[9pt,tt]},command=3D\numeroLigneCode,distance=3D-.5em,width=3D2em] \defineparagraphs[TwoCols][n=3D2,before=3D,after=3D] \starttext \startTwoCols \startcode one two three \stopcode \TwoCols hum \stopTwoCols \stoptext I've tried to use the command "\definelinenumbering" without success. I don't know what happened... > On 29 Apr 2015, at 16:40, Wolfgang Schuster = wrote: >=20 > = \defineframed[numeroLigneCode][location=3Dlow,width=3Dfit,strut=3Dyes,fram= e=3Doff,rightframe=3Don] >=20 > \definetyping[code][numbering=3Dline,page=3Dyes,bodyfont=3D9pt,tab=3D2] = =20 >=20 > = \setuplinenumbering[code][location=3Dtext,align=3Dleft,style=3D{\switchtob= odyfont[9pt,tt]},command=3D\numeroLigneCode,distance=3D-.5em,width=3D2em] --=20 Bonnefoi Pierre-Francois | E-mail : bonnefoi@unilim.fr = http://libpfb.so/ Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 123 av Albert Thomas | Mrs. Peel, we're needed... 87060 Limoges CEDEX - FRANCE | The Avengers. --Apple-Mail=_560C9A28-AA41-4218-AFB2-3C08CF956A49 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Thank you very much for your solution.

When using it into a paragraph, the = line number disappears :

\defineframed[numeroLigneCode][location=3Dlow,width=3Dfit,strut= =3Dyes,frame=3Doff,rightframe=3Don]

\definetyping[code][numbering=3Dline,page=3Dyes,bodyfont=3D9pt,= tab=3D2]                   =                   =  

\setuplinenumbering[code][location=3Dtext,align=3Dleft,style=3D= {\switchtobodyfont[9pt,tt]},command=3D\numeroLigneCode,distance=3D-.5em,wi= dth=3D2em]

\defineparagraphs[TwoCols][n=3D2,before=3D,after=3D]

\starttext
\startTwoCols
\startcode
one
two
three
\stopcode
\TwoCols
hum
\stopTwoCols
\stoptext

I've tried to use the = command "\definelinenumbering" without success.

I don't know what happened...

On 29 Apr 2015, at 16:40, Wolfgang Schuster = <schuster.wolfgang@gmail.com> wrote:

\defineframed[numeroLigneCode][location=3Dlow,width=3Dfit,strut= =3Dyes,frame=3Doff,rightframe=3Don]

\definetyping[code][numbering=3Dline,page=3Dyes,bodyfont=3D9pt,= tab=3D2] =             &n= bsp;           &nbs= p;            =

\setuplinenumbering[code][location=3Dtext,align=3Dleft,style=3D= {\switchtobodyfont[9pt,tt]},command=3D\numeroLigneCode,distance=3D-.5em,wi= dth=3D2em]

Bonnefoi = Pierre-Francois                | =    E-mail : bonnefoi@unilim.fr http://libpfb.so/
Universite de = Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 = 38
123 av Albert Thomas       =              |  Mrs. Peel, we're = needed...
87060 Limoges = CEDEX - FRANCE            |     =             The = Avengers.
= --Apple-Mail=_560C9A28-AA41-4218-AFB2-3C08CF956A49-- --===============1075825720== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1075825720==--