ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Henning Hraban Ramm <texml@fiee.net>
Subject: [NTG-context] Re: line numbering respecting original lines
Date: Mon, 17 Jun 2024 18:16:42 +0200	[thread overview]
Message-ID: <5c9a101d-d352-0f5e-1d14-20f5dec185f9@gmail.com> (raw)
In-Reply-To: <dca1348a-9439-49b0-9cfe-82cd9bcee547@fiee.net>

Henning Hraban Ramm schrieb am 17.06.2024 um 14:03:
> When discussing verses or other texts that have distinct line breaking, 
> I need line numbering to adhere to that, even if some lines are too long 
> and need breaking. Is that possible?
> 
> In my example below the 3rd line is too long and gets line numbers 3 and 4.
> 
> Same problem with source code examples, i.e. \starttyping with numbering.
> I thought numbering=file (or \setuplinenumbering[method=file]) would 
> address that, but apparently not.
> 
> Hraban
> 
> 
> 
> \mainlanguage[de]
> \setuppapersize[A7,landscape]
> \setuplayout[topspace=0mm,bottom=0mm,width=90mm,height=70mm]
> \setuppagenumbering[location=none,state=stop]
> %\setuplinenumbering[method=file]
> \starttext
> 
> \startlinenumbering
> \startlines
> Und doch, wie viel wahnsinniger, einen Freund,
> weil ers in einer Kleinigkeit versah,
> die nur ein Mensch, mit dem gar nicht zu leben ist,
> ihm nicht verzeihen konnte, gleich dafür
> zu hassen und zu fliehen, wie den Ruso …
> \stoplines
> \stoplinenumbering
> % aus: C. M. Wieland, Horazens Satiren. Weimar 1786 (2. Aufl. 1804)
> \stoptext

\start \setupparagraphnumbering[state=start]
\startlines
...
\stoplines
\stop

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-06-17 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17 12:03 [NTG-context] " Henning Hraban Ramm
2024-06-17 16:16 ` Wolfgang Schuster [this message]
2024-06-17 16:46   ` [NTG-context] " Henning Hraban Ramm
2024-06-17 17:07     ` Wolfgang Schuster
2024-06-17 17:30       ` Henning Hraban Ramm
2024-06-17 19:24         ` Wolfgang Schuster
2024-06-17 22:06     ` Hans Hagen via ntg-context

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=5c9a101d-d352-0f5e-1d14-20f5dec185f9@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).