From: "Pierre-François Bonnefoi" <bonnefoi@unilim.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: line number overwriting
Date: Wed, 29 Apr 2015 15:05:34 +0200 [thread overview]
Message-ID: <E37FA0BE-07D5-48AC-AB6E-E7435269F449@unilim.fr> (raw)
In-Reply-To: <2C893D11-8EE0-471F-892E-839E61E4ACBB@unilim.fr>
[-- Attachment #1.1: Type: text/plain, Size: 2812 bytes --]
Hello,
I've tracked down the problem :
\def\numeroLigneCode#1{\inframed[width=fit,strut=yes,frame=off,rightframe=on]{\switchtobodyfont[9pt]#1}}
\definetyping[code][numbering=line,page=yes,bodyfont=9pt,before={%
\begingroup%
\setuplinenumbering[location=text,align=left,style=\tt,command=\numeroLigneCode,distance=-.5em,width=2em]%
},after={\endgroup},tab=2]
\starttext
\startcode
one
two
three
\stopcode
\stoptext
The result is that the option "command=\numeroLigneCode" is oddly ignored.
If I put the command "\setuplinenumbering[location=text,align=left,style=\tt,command=\numeroLigneCode,distance=-.5em,width=2em]" 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çois.
> On 28 Apr 2015, at 23:43, Pierre-François Bonnefoi <bonnefoi@unilim.fr> wrote:
>
> Hello,
>
> I've got some strange behavior with verbatim text :
> <PastedGraphic-1.png>
>
> 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çois.
>
> --
> Bonnefoi Pierre-Francois | E-mail : bonnefoi@unilim.fr <mailto:bonnefoi@unilim.fr> http://libpfb.so/ <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.
[-- Attachment #1.2: Type: text/html, Size: 14787 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-04-29 13:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 21:43 Pierre-François Bonnefoi
2015-04-29 13:05 ` Pierre-François Bonnefoi [this message]
2015-04-29 14:40 ` Wolfgang Schuster
2015-04-29 15:00 ` Pierre-François Bonnefoi
2015-04-29 16:51 ` Wolfgang Schuster
2015-04-30 9:24 ` Pierre-François Bonnefoi
2015-05-01 9:17 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E37FA0BE-07D5-48AC-AB6E-E7435269F449@unilim.fr \
--to=bonnefoi@unilim.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).