ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: typing and linenumbering
Date: Thu, 16 Mar 2006 23:16:03 +0100	[thread overview]
Message-ID: <4419E3A3.4090802@wxs.nl> (raw)
In-Reply-To: <ops6izv7y09niby6@localhost>

nico wrote:
> On Thu, 16 Mar 2006 10:02:46 +0100, Taco Hoekwater <taco@elvenkind.com>  
> wrote:
>
>   
>>> The output is pretty as I wish, but unfortunately the line numbers are
>>> *not* the numbers of the listing lines, but the numbers of the lines  
>>> once
>>> wrapped in the frame. [...]
>>>       
>> I've tried this with a "method" trick, but that does not work too well
>> with 'location=intext'. Anyway, here is what I did:
>>
>> \setuptyping[prog]
>>               [bodyfont=small,
>>                before={\begingroup\setuplinenumbering[style=small,%
>>                        step=2,start=3,location=inmargin,method=type]
>>                        \startframelisting \obeylines
>>
>>                        \startlinenumbering},
>>                after={\stoplinenumbering\stopframelisting\endgroup}]
>>     
>
> Ah, yes, the method=type option helps much. The behaviour is quite strange  
> with intext. Is it an official option?
>
>   
>>> The other side effect of the method used is that it changes
>>> the linenumbering behaviour outside the typing environment. I tried the
>>> "reset" option, but it doesn't change the intext location. Is there a
>>> possibility to come back to default settings?
>>>       
>> The setup obeys normal grouping rules (hence the \begingroup ...
>> \endgroup in the code above)
>>     
>
> Yes, right. Thanks much for your help.
>   
actually, this verbatim specific numbering is not hooked into the typing 
environments (only in the typefile stuff); so what you observe are side 
effects

i'll send you a test patch off list (and to taco because we need to 
trace a spurious space)

Hans

-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

      reply	other threads:[~2006-03-16 22:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15 22:02 nico
2006-03-16  9:02 ` Taco Hoekwater
2006-03-16 21:41   ` nico
2006-03-16 22:16     ` Hans Hagen [this message]

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=4419E3A3.4090802@wxs.nl \
    --to=pragma@wxs.nl \
    --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).