From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91247 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 15:05:34 +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="===============0429645058==" X-Trace: ger.gmane.org 1430312848 11334 80.91.229.3 (29 Apr 2015 13:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 13:07:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 29 15:07:13 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 1YnRhk-0005se-Lf for gctc-ntg-context-518@m.gmane.org; Wed, 29 Apr 2015 15:07:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1B5A10219 for ; Wed, 29 Apr 2015 15:07:07 +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 zgv6V8-PKXuq for ; Wed, 29 Apr 2015 15:07:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A834010237 for ; Wed, 29 Apr 2015 15:06:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0984E101FC for ; Wed, 29 Apr 2015 15:06:06 +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 A5Q22e9DSy2v for ; Wed, 29 Apr 2015 15:06:03 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 8A787101E8 for ; Wed, 29 Apr 2015 15:06:03 +0200 (CEST) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.45]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3TD61sR014621 for ; Wed, 29 Apr 2015 15:06:02 +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 t3TD5Yeu017205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 29 Apr 2015 15:05:45 +0200 In-Reply-To: <2C893D11-8EE0-471F-892E-839E61E4ACBB@unilim.fr> 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 15:05:51 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) 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: t3TD5Yeu017205 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: 07OlN61oG - 23e3794ac25e - 20150429 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of bonnefoi@unilim.fr designates 164.81.1.45 as permitted sender) receiver=filter1-utr.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" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:91247 Archived-At: --===============0429645058== Content-Type: multipart/alternative; boundary="Apple-Mail=_A12A9D84-6BAE-4AE6-840E-461CF049BE15" --Apple-Mail=_A12A9D84-6BAE-4AE6-840E-461CF049BE15 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, I've tracked down the problem : = \def\numeroLigneCode#1{\inframed[width=3Dfit,strut=3Dyes,frame=3Doff,right= frame=3Don]{\switchtobodyfont[9pt]#1}} \definetyping[code][numbering=3Dline,page=3Dyes,bodyfont=3D9pt,before=3D{%= \begingroup% = \setuplinenumbering[location=3Dtext,align=3Dleft,style=3D\tt,command=3D\nu= meroLigneCode,distance=3D-.5em,width=3D2em]% },after=3D{\endgroup},tab=3D2] = =20 \starttext \startcode one two three \stopcode \stoptext The result is that the option "command=3D\numeroLigneCode" is oddly = ignored. If I put the command = "\setuplinenumbering[location=3Dtext,align=3Dleft,style=3D\tt,command=3D\n= umeroLigneCode,distance=3D-.5em,width=3D2em]" outside of the definition = of the verbatim zone "code", it works. This behavior seems rather strange and when it collides with using = verbatim zone enclosed in "framedtext", it leads to two line numbering = overwriting each other. regards, Pierre-Fran=C3=A7ois. > On 28 Apr 2015, at 23:43, Pierre-Fran=C3=A7ois Bonnefoi = wrote: >=20 > Hello, >=20 > I've got some strange behavior with verbatim text : > >=20 > The lines of the verbatim text got two different numbering that = overwrite each other. >=20 > I think that I've read something about this but I don't find it in the = mail archive. >=20 > If I remember correctly, there is a bug into the line number routine = when you use a verbatim text into a column set with the paragraph = command and when the verbatim text is enclosed into a frame. >=20 > Regards, > Pierre-Fran=C3=A7ois. >=20 > --=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. >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --=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=_A12A9D84-6BAE-4AE6-840E-461CF049BE15 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello,

I've= tracked down the problem :

\def\numeroLigneCode#1{\inframed[width=3Dfit,strut=3Dyes,frame=3D= off,rightframe=3Don]{\switchtobodyfont[9pt]#1}}

\definetyping[code][numbering=3Dline,page=3Dyes,bodyfont=3D9pt,= before=3D{%
          =          \begingroup%
 =                 =  \setuplinenumbering[location=3Dtext,align=3Dleft,style=3D\tt,command= =3D\numeroLigneCode,distance=3D-.5em,width=3D2em]%
                =    },after=3D{\endgroup},tab=3D2]         =                     =          
\starttext
\startcode
one
two
three
\stopcode

\stoptext

The result is that the option "command=3D\numeroLigneCode" is = oddly ignored.

If I put the command = "\setuplinenumbering[location=3Dtext,align=3Dleft,style=3D\tt,command=3D\n= umeroLigneCode,distance=3D-.5em,width=3D2em]" outside of the definition = of the verbatim zone "code", it works.

This behavior seems rather strange and = when it collides with using verbatim zone enclosed in "framedtext", it = leads to two line numbering overwriting each other.

regards,
Pierre-Fran=C3=A7ois.

On 28 Apr 2015, at 23:43, Pierre-Fran=C3=A7ois Bonnefoi = <bonnefoi@unilim.fr> wrote:

Hello,

I've got some strange = behavior with verbatim text :
<PastedGraphic-1.pn= g>

The= lines of the verbatim text got two different numbering that overwrite = each other.

I = think that I've read something about this but I don't find it in the = mail archive.

If= I remember correctly, there is a bug into the line number routine when = you use a verbatim text into a column set with the paragraph command and = when the verbatim text is enclosed into a frame.

Regards,
Pierre-Fran=C3=A7ois.

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.
___________________________________________________= ________________________________
If your question is of = interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

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=_A12A9D84-6BAE-4AE6-840E-461CF049BE15-- --===============0429645058== 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= --===============0429645058==--