[NTG-context] Line numbering skips lines

2020-10-30 Thread Felix Krause

Hi all,

in a typing environment, I have the problem that not every line is 
numbered:


\definetyping
[code]
[numbering=line,
 escape={@[,@]}]

\setupcolors[state=start]
\definecolor[nonsigpart][r=.7,g=.7,b=.7]
\defineframed[nonsig]
[location=low,frame=off,background=color,backgroundcolor=nonsigpart]

\starttext
  \startcode
lorem ipsum
@[ @]

@[foo@]
@[\nonsig{bar}@]
dolor sit amet
  \stopcode
\stoptext

This will number

 * the first and last lines, containing normal text
 * the third line containing nothing at all
 * the forth line containing `foo` inside an escape sequence

It will skip

 * the second line containing a space character inside an escape 
sequence

 * the fifth line which produces text with a gray background

Why does it skip those lines? This seems really strange as a completely 
empty line does get numbered. How can I number every line?


Regards,
Felix___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-26 Thread Thomas A. Schmitz

On 25.01.20 19:17, Wolfgang Schuster wrote:

Before I give the answer to the question we have to go back to a few 
TeX/ConTeXt basics.


Wolfgang, thank you for this careful and helpful reply. It really made 
me understand what is going on here. At the same time, I also feel a bit 
more incompetent now because linenumbering behaves in unexpected ways: 
you can set some values (like the starting number) with the simple 
\startlinenumbering command but not all values. And there's this strange 
difference between luatex and luametatex... Without this mailing list, 
I'd be really lost. So thanks again, and I'm waiting for the official fix!


Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-25 Thread Wolfgang Schuster
On Thu, 23 Jan 2020 22:53:42 +0100
"Thomas A. Schmitz"  wrote:

> > On 23. Jan 2020, at 22:32, Wolfgang Schuster 
> >  wrote:
> > 
> > Bonus question: Why is it necessary to put \definelinenumbering before 
> > \framed?
> > 
> > Wolfgang
> 
> I would be grateful for an answer because I have no clue ;-) In my real life 
> case, I fetch the content of the frame from an xml file. Since not every 
> frame has line numbering, I am already inside the frame when I have to define 
> and set up the line numbering environment. I can probably code around it, but 
> it makes my life definitely more difficult…


Before I give the answer to the question we have to go back to a few 
TeX/ConTeXt basics.


# Grouping

When you create a new command it is normally local to the current group level 
and after you end the group the command no longer exists.

In the following example I redefine the value for the color red in a group, 
when the group ends the new value is forgotten and the previous one is used. 
When you now create a new command or environment in the group and try to use it 
after its end you will get a error message (something I tried to avoid with the 
example) about an undefined command.

 begin example
\starttext

\color[red]{Red}

\start

\definecolor[red][b=1]

\color[red]{Red}

\stop

\color[red]{Red}

\stoptext
 end example


# Inheritance

When you create a new command or environment with \define... the new instance 
inherits most of its values from a parent instance.

You can overwrite individual values for your new instance but all other values 
are taken from the parent.

 begin example
\setupframed[foregroundstyle=bold]

\defineframed[customframe][framecolor=red]

\starttext

\framed{Framed text!}

\placeframed[customframe]{Framed text!}

\stoptext
 end example

When you can combine this with the previous section which explained grouping 
and overwrite values within the group. After the group has ended the new values 
are forgotten and the instance uses what was set before the group.

 begin example
\defineframed[customframe][framecolor=red]

\starttext

\placeframed[customframe]{Framed text!}

\start

\setupframed[customframe][foregroundstyle=bold]

\placeframed[customframe]{Framed text!}

\stop

\placeframed[customframe]{Framed text!}

\stoptext
 end example


# Line numbering

Line numbering in MkIV happens at a different point as it did in MkII. When you 
use line numbers for \framed (or \startframedtext) ConTeXt adds the numbers to 
the frame after the framed box is completed.

When the framed content is put in the box you're always within a group which 
means the numbers are added after the group has ended and as explained in the 
two sections above settings within a group normally are forgotten afterwards.

The first and bigger problem is that you try to create a new line numbering 
instance in each frame which no longer exists when the numbers are added and 
when ConTeXt tries to access values of this no longer existing instance in 
fails to get them which results in the error message.

 begin example
\starttext

\startframedtext

\definelinenumbering[example]

\startlinenumbering[example]

\samplefile{klein}

\stoplinenumbering

\stopframedtext

\stoptext
 end example

The minor problem is that you local changes for each instance (e.g. the color 
for the numbers) are also forgotten because you set them within the group. Only 
a limited numbers of values can be set in a group (e.g. the starting number) 
and they have to bet set with \startlinenumbering, this is possible because 
they are passed to Lua which ignores TeX groups.

While new linenumbering instances outside of frames are save in most cases you 
should try to avoid this and do it at the begin of the document because even 
here you can run into problems. Below is a example where I show that you can 
get the same error as in your example with line numbers for the whole page.

 begin example
\setupsectionblock[bodypart][page=no]

\starttext

\startbodymatter

\definelinenumbering[example]

\startlinenumbering[example]

\samplefile{klein}

\stoplinenumbering

\stopbodymatter

\stoptext
 end example


Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-24 Thread Wolfgang Schuster
On Fri, 24 Jan 2020 18:57:50 +0100
Tomas Hala  wrote:

> 
> Hi Thomas,
> 
> I compiled (TL2019) it with as well as without \setbreakpoints[compound] and
> I got the same result -- in both case I see both colours. 

The output with LuaTeX is correct but when you use LuaMetaTeX the second color 
is wrong.


I can't explain why this happens but when you disable the break points for the 
line numbers the colors are correct (don't use the following code in your 
document but wait for a official fix from Hans).

\appendtoks
\resetbreakpoints
\to \everylinenumber


Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-24 Thread Tomas Hala

Hi Thomas,

I compiled (TL2019) it with as well as without \setbreakpoints[compound] and
I got the same result -- in both case I see both colours. 

Wishes,

Tomáš

Fri, Jan 24, 2020 ve 06:45:06PM +0100 Thomas A. Schmitz napsal(a):
# 
# 
# > On 23. Jan 2020, at 12:45, Tomas Hala  wrote:
# > 
# > Hi Thomas,
# > 
# > move definitions and setups for Three and Four before the use of \framed.
# > (With TL2019 works.)
# > 
# > Wishes,
# > 
# > Tomáš
# 
# Thank you for the hint - we’re still waiting for an answer to Wolfgang’s 
bonus question. But I have continued testing and discovered what is certainly a 
bug. Here’s a new example:
# 
# \setbreakpoints [compound]
# 
# \definelinenumbering  
#[original]
#[style=\tx\ss,distance=-1ex,step=5,location=inleft,start=10,color=darkred]
# 
# \definelinenumbering
#[translation]
#[style=\tx\ss,distance=-1ex,step=5,location=inleft,start=50,color=darkblue]
# 
# \starttext
# 
# \framed 
#   [background=color,
#backgroundcolor=gray,
#align={normal},
#frame=off,
#loffset=6ex,
#width=\textwidth,
#foregroundstyle=\ss]
# {\startlinenumbering[original]
#  \input knuth 
#  \stoplinenumbering
#   \blank [line]
#\startlinenumbering[translation]
#\input klein
#\stoplinenumbering}
# 
# \stoptext
# 
# If you compile it, you will see that the “color” key of the two defined 
linenumbering environments is not followed. If you comment out the first line 
\setbreakpoints [compound], you will get two colors, as expected. I leave it as 
an exercise for Hans and Wolfgang to explain what’s going on here :-)
# 
# Thomas
# 
___
# 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://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-24 Thread Thomas A. Schmitz


> On 23. Jan 2020, at 12:45, Tomas Hala  wrote:
> 
> Hi Thomas,
> 
> move definitions and setups for Three and Four before the use of \framed.
> (With TL2019 works.)
> 
> Wishes,
> 
> Tomáš

Thank you for the hint - we’re still waiting for an answer to Wolfgang’s bonus 
question. But I have continued testing and discovered what is certainly a bug. 
Here’s a new example:

\setbreakpoints [compound]

\definelinenumbering
   [original]
   [style=\tx\ss,distance=-1ex,step=5,location=inleft,start=10,color=darkred]

\definelinenumbering
   [translation]
   [style=\tx\ss,distance=-1ex,step=5,location=inleft,start=50,color=darkblue]

\starttext

\framed 
  [background=color,
   backgroundcolor=gray,
   align={normal},
   frame=off,
   loffset=6ex,
   width=\textwidth,
   foregroundstyle=\ss]
{\startlinenumbering[original]
 \input knuth 
 \stoplinenumbering
  \blank [line]
   \startlinenumbering[translation]
   \input klein
   \stoplinenumbering}

\stoptext

If you compile it, you will see that the “color” key of the two defined 
linenumbering environments is not followed. If you comment out the first line 
\setbreakpoints [compound], you will get two colors, as expected. I leave it as 
an exercise for Hans and Wolfgang to explain what’s going on here :-)

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz


> On 23. Jan 2020, at 22:32, Wolfgang Schuster 
>  wrote:
> 
> 
> Bonus question: Why is it necessary to put \definelinenumbering before 
> \framed?
> 
> Wolfgang

I would be grateful for an answer because I have no clue ;-) In my real life 
case, I fetch the content of the frame from an xml file. Since not every frame 
has line numbering, I am already inside the frame when I have to define and set 
up the line numbering environment. I can probably code around it, but it makes 
my life definitely more difficult…

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-23 Thread Wolfgang Schuster
On Thu, 23 Jan 2020 12:45:22 +0100
Tomas Hala  wrote:

> Hi Thomas,
> 
> move definitions and setups for Three and Four before the use of \framed.

Bonus question: Why is it necessary to put \definelinenumbering before \framed?

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] line numbering within frame

2020-01-23 Thread Tomas Hala
Hi Thomas,

move definitions and setups for Three and Four before the use of \framed.
(With TL2019 works.)

Wishes,

Tomáš




Thu, Jan 23, 2020 ve 11:54:49AM +0100 Thomas A. Schmitz napsal(a):
# Hi all,
# 
# I want line numbering within a framed environment, and I need two (at least) 
independent numbering systems. I hit a similar problem in 2016, and Wolfgang 
provided a solution (defining different numbering environment). However, this 
does not work within a frame. The example shows the problem:
# 
# \starttext
# 
# % This works:
# \definelinenumbering[One]
#\setuplinenumbering[One]
#[style=\ss,
#   distance=-2ex,
#   step=2,
#   location=inleft,
#   start=20,
#   color=darkblue]
#\startlinenumbering[One]
#\input knuth 
#\stoplinenumbering
#   
#  \blank [line]
# 
#\definelinenumbering[Two]
#\setuplinenumbering[Two]
#[style=\bf,
#   distance=-2ex,
#   step=3,
#   location=inleft,
#   start=4,
#   color=darkred]
#\startlinenumbering[Two]
#\input klein
#\stoplinenumbering
# 
# % This fails:
# \framed 
#[background=color,
#   backgroundcolor=gray,
#   align={normal,hanging,stretch,tolerant},
#   frame=off,
#   loffset=6ex,
#   width=\textwidth,
#   foregroundstyle=\ss]
# {\definelinenumbering[Three]
#\setuplinenumbering[Three]
#[style=\ss,
#   distance=-2ex,
#   step=2,
#   location=inleft,
#   start=20,
#   color=darkblue]
#\startlinenumbering[Three]
#\input knuth 
#\stoplinenumbering
#\blank [line]
# 
#\definelinenumbering[Four]
#\setuplinenumbering[Four]
#[style=\bf,
#   distance=-2ex,
#   step=3,
#   location=inleft,
#   start=4,
#   color=darkred]
#\startlinenumbering[Four]
#\input klein
#\stoplinenumbering}
# 
# \stoptext
# 
# The framed environment fails with the error message "Missing number, treated 
as zero.” Does anyone know how this can be fixed?
# 
# All best
# 
# Thomas
# 
___
# 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://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz
Hi all,

I want line numbering within a framed environment, and I need two (at least) 
independent numbering systems. I hit a similar problem in 2016, and Wolfgang 
provided a solution (defining different numbering environment). However, this 
does not work within a frame. The example shows the problem:

\starttext

% This works:
\definelinenumbering[One]
   \setuplinenumbering[One]
   [style=\ss,
  distance=-2ex,
  step=2,
  location=inleft,
  start=20,
  color=darkblue]
 \startlinenumbering[One]
 \input knuth 
 \stoplinenumbering
  
 \blank [line]

   \definelinenumbering[Two]
   \setuplinenumbering[Two]
   [style=\bf,
  distance=-2ex,
  step=3,
  location=inleft,
  start=4,
  color=darkred]
 \startlinenumbering[Two]
 \input klein
 \stoplinenumbering

% This fails:
\framed 
   [background=color,
  backgroundcolor=gray,
  align={normal,hanging,stretch,tolerant},
  frame=off,
  loffset=6ex,
  width=\textwidth,
  foregroundstyle=\ss]
{\definelinenumbering[Three]
   \setuplinenumbering[Three]
   [style=\ss,
  distance=-2ex,
  step=2,
  location=inleft,
  start=20,
  color=darkblue]
 \startlinenumbering[Three]
 \input knuth 
 \stoplinenumbering
   \blank [line]

   \definelinenumbering[Four]
   \setuplinenumbering[Four]
   [style=\bf,
  distance=-2ex,
  step=3,
  location=inleft,
  start=4,
  color=darkred]
 \startlinenumbering[Four]
 \input klein
 \stoplinenumbering}

\stoptext

The framed environment fails with the error message "Missing number, treated as 
zero.” Does anyone know how this can be fixed?

All best

Thomas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line numbering in two column layout conflicts with marking

2020-01-07 Thread Hans Hagen

On 1/7/2020 1:26 PM, Oliver von Criegern wrote:

Using \definepagecolumns[xyz][n=2] instead of \setupcolumns[n=2]
and \startpagecolumns[xyz] etc. instead of \startcolumns etc.
seems to do what I want, except that the columns of the last page
aren't balanced any more.

Anyway, pagecolumns seems to be experimental.
The manual says "Don't use page columns in production".
as long as you keep in mind that they might 'improve' you can just use 
them (they are just not tested a lot)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line numbering in two column layout conflicts with marking

2020-01-07 Thread Oliver von Criegern

Using \definepagecolumns[xyz][n=2] instead of \setupcolumns[n=2]
and \startpagecolumns[xyz] etc. instead of \startcolumns etc.
seems to do what I want, except that the columns of the last page
aren't balanced any more.

Anyway, pagecolumns seems to be experimental.
The manual says "Don't use page columns in production".


Am 23.12.19 um 12:02 schrieb Wolfgang Schuster:

Oliver von Criegern schrieb am 18.12.2019 um 17:39:

So there seems to be no solution for this?


Not a solution but pagecolumns show the correct marks even with line 
numbering.


Wolfgang


--
Dr. Oliver von Criegern
Referat für IT und Digital Humanities
Bayerische Akademie der Wissenschaften
Alfons-Goppel-Str. 11
80539 München
Tel.: 089-23031-1310

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-23 Thread Wolfgang Schuster

Oliver von Criegern schrieb am 18.12.2019 um 17:39:

So there seems to be no solution for this?


Not a solution but pagecolumns show the correct marks even with line 
numbering.


Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-18 Thread Oliver von Criegern

So there seems to be no solution for this?

Am 09.12.19 um 15:18 schrieb Oliver von Criegern:

Any suggestions, how to solve this problem?

Am 02.12.19 um 20:06 schrieb Oliver von Criegern:

Dear list members,

line numbering in a two column layout apparently conflicts with the 
marking mechanism.


Consider the following example:


\setupcolumns[n=2]

\setuplinenumbering
    [
    step=5,
    method=page,
    align=flushright,
    ]

\definemarking[Test]

\setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}]

\startbuffer
\dorecurse{12}{words }
\stopbuffer

\starttext
\startcolumns
\startlinenumbering
\marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par
\marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par
\marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par
\stoplinenumbering
\stopcolumns
\stoptext


In the result, the header of the first page reads "ONE -- THREE", 
despite marking "THREE" being placed in the third line of the second 
page.


Without linenumbering, the header of the first page reads "ONE -- 
TWO", as is to be expected.


Best regards,
Oliver



--
Dr. Oliver von Criegern
Referat für IT und Digital Humanities
Bayerische Akademie der Wissenschaften
Alfons-Goppel-Str. 11
80539 München
Tel.: 089-23031-1310

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-09 Thread Oliver von Criegern

Any suggestions, how to solve this problem?

Am 02.12.19 um 20:06 schrieb Oliver von Criegern:

Dear list members,

line numbering in a two column layout apparently conflicts with the 
marking mechanism.


Consider the following example:


\setupcolumns[n=2]

\setuplinenumbering
    [
    step=5,
    method=page,
    align=flushright,
    ]

\definemarking[Test]

\setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}]

\startbuffer
\dorecurse{12}{words }
\stopbuffer

\starttext
\startcolumns
\startlinenumbering
\marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par
\marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par
\marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par
\stoplinenumbering
\stopcolumns
\stoptext


In the result, the header of the first page reads "ONE -- THREE", 
despite marking "THREE" being placed in the third line of the second 
page.


Without linenumbering, the header of the first page reads "ONE -- 
TWO", as is to be expected.


Best regards,
Oliver



--
Dr. Oliver von Criegern
Referat für IT und Digital Humanities
Bayerische Akademie der Wissenschaften
Alfons-Goppel-Str. 11
80539 München
Tel.: 089-23031-1310

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Line numbering in two column layout conflicts with marking

2019-12-02 Thread Oliver von Criegern

Dear list members,

line numbering in a two column layout apparently conflicts with the 
marking mechanism.


Consider the following example:


\setupcolumns[n=2]

\setuplinenumbering
    [
    step=5,
    method=page,
    align=flushright,
    ]

\definemarking[Test]

\setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}]

\startbuffer
\dorecurse{12}{words }
\stopbuffer

\starttext
\startcolumns
\startlinenumbering
\marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par
\marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par
\marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par
\stoplinenumbering
\stopcolumns
\stoptext


In the result, the header of the first page reads "ONE -- THREE", 
despite marking "THREE" being placed in the third line of the second page.


Without linenumbering, the header of the first page reads "ONE -- TWO", 
as is to be expected.


Best regards,
Oliver


--
Dr. Oliver von Criegern
Referat für IT und Digital Humanities
Bayerische Akademie der Wissenschaften
Alfons-Goppel-Str. 11
80539 München
Tel.: 089-23031-1310

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] line numbering disappears in custom column layout

2019-08-31 Thread Damien Thiriet
Hi,



Line numbering disappears when called inside custom columns defined with
defineparagraph.

This works fine

\defineparagraphs[Colonne][n=2]
\starttext
\startlinenumbering 
\input knuth
\stoplinenumbering

\input knuth
\stoptext

Whereas this does not work as expected

\defineparagraphs[Colonne][n=2]
\starttext
\startColonne
\startlinenumbering 
\input knuth
\stoplinenumbering
\Colonne

\input knuth
\stopColonne
\stoptext

Playing with \setuplinenumbering (location=text and so on) didn't help.
Maybe this has to do with setting margins in defineparagraphs, but I
can't figure out how to do it.

Greetings,


Damien Thiriet 

PS: This is exactly the unanswered question I asked a few days ago on TeX SE 
https://tex.stackexchange.com/questions/505238/context-line-numbering-disappears-in-custom-column-layout

- End forwarded message -
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .

Hello,

thanks for explanation.

In your example -

On Thu, 30 Mar 2017 13:08:16 +0200, Wolfgang Schuster 
 wrote:





Procházka Lukáš Ing. 
30. März 2017 um 12:28via Postbox

Hello,

could anyone confirm that line numbering on the last page is somehow
broken, i.e. it ignores the style assigned by \setuplinenumbering (but
works OK on other pages)?

It’s a side effect of the way how line numbering works. To get the
correct style for the last page you need global setups.

 begin example
\setuplinenumbering
   [TEX]
   [location=inmargin,
style=\tt\tfx,
color=darkgreen]

\setuptyping
   [TEX]
   [numbering=line]


Does 'numbering=line' here mean that the \setuptyping[TEX] will search for a 
line-numbering style of the same name, i.e. \setuplinenumbering[TEX]?

And if it finds such numbering style, it will use it?

Best regards,

Lukas



\starttext
\typefile[TEX]{\inputfilename}
\stoptext

Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
 end example

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Wolfgang Schuster




Procházka Lukáš Ing. 
30. März 2017 um 12:28via Postbox 


Hello,

could anyone confirm that line numbering on the last page is somehow 
broken, i.e. it ignores the style assigned by \setuplinenumbering (but 
works OK on other pages)?
It’s a side effect of the way how line numbering works. To get the 
correct style for the last page you need global setups.


 begin example
\setuplinenumbering
  [TEX]
  [location=inmargin,
   style=\tt\tfx,
   color=darkgreen]

\setuptyping
  [TEX]
  [numbering=line]

\starttext
\typefile[TEX]{\inputfilename}
\stoptext

Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
Dummy text
 end example

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .

Hello,

could anyone confirm that line numbering on the last page is somehow broken, 
i.e. it ignores the style assigned by \setuplinenumbering (but works OK on 
other pages)?

Best regards,

Lukas


On Tue, 28 Mar 2017 10:10:14 +0200, Procházka Lukáš Ing.  wrote:


Hello,

in the following example line numbering with \typefile works well except the 
last page - here it doesn't follow the style assigned.

What's wrong?

Best regards,

Lukas



\starttext

   Some text here

   \page
   \start
 \setupinterlinespace[1.8ex]
 \definefontsize[z]
 \definebodyfontenvironment[default][z=.75]
 \setuplinenumbering[location=inmargin,style={\tfz\tt},color=darkgreen,]
 \setuptyping[TEX][style=\tfz,numbering=line,]

 \typefile[TEX]{t3.mkiv}
   \stop

\if+-
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
   Some dummy text
\fi


\stoptext






--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Line numbering broken somehow?

2017-03-28 Thread Procházka Lukáš Ing .

Hello,

in the following example line numbering with \typefile works well except the 
last page - here it doesn't follow the style assigned.

What's wrong?

Best regards,

Lukas



\starttext

  Some text here

  \page
  \start
\setupinterlinespace[1.8ex]
\definefontsize[z]
\definebodyfontenvironment[default][z=.75]
\setuplinenumbering[location=inmargin,style={\tfz\tt},color=darkgreen,]
\setuptyping[TEX][style=\tfz,numbering=line,]

\typefile[TEX]{t3.mkiv}
  \stop

\if+-
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
  Some dummy text
\fi


\stoptext



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

t3.mkiv
Description: Binary data


t3.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] line numbering prevents some hyphenations

2014-09-06 Thread Pablo Rodriguez
Hans,

I’m afraid that I have just discovered that line numbering prevents
hyphenation in some circunstances:

\setuppapersize[A8]
\setuplanguage[en][patterns={en, agr}]
\definefontfamily[mainface][serif][GFS Didot]
\setupbodyfont[mainface, 13pt]

\starttext
\startlinenumbering
\hsize\zeropoint
κοινώσεσθαι
sentence
\stoplinenumbering

\startlinenumbering
\hsize\zeropoint
sentence
κοινώσεσθαι
\stoplinenumbering

\hsize\zeropoint
κοινώσεσθαι
sentence
\stoptext

I’m afraid this may be a bug.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

[NTG-context] Line numbering in columns broken

2014-04-05 Thread Jeremy Engel
In the latest beta (2014.04.03 16:20) there are updates to the line
numbering system that break its function in columns. (In the past it didn't
work at all in many situations, not it works but in a buggy way).

In the example below, the line numbering passes over everything twice
resulting in two overlapping numbers for each line.

\starttext

\startlinenumbering
  \startcolumns
  \input{knuth}
  \stopcolumns
\stoplinenumbering

\stoptext
___
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
___

Re: [NTG-context] Line numbering in columns broken

2014-04-05 Thread Thangalin
Confirmed to work in version 2014.01.03 00:40.
___
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
___


[NTG-context] line numbering with two columns

2012-04-06 Thread jmengel
hi, i was trying to get line numbers in two columns in mkiv to appear  
on the left side for both columns when i noticed this bug.


\setuplinenumbering[location=text]

\starttext

\startcolumns
\startlinenumbering
\input knuth
\stoplinenumbering
\stopcolumns

\stoptext

 - jeremy
___
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
___


[NTG-context] line numbering and margin data

2012-02-10 Thread Pablo Rodríguez
Hi there,

in the following sample, all lines are in a line numbering environment,
but only those without margin data get actually numbered.

\definemargindata[mgch]
\setupmargindata[mgch][location=outer]
\starttext
\startlinenumbering
\dorecurse{10}{\mgch[margin]unnumbered lines }
\dorecurse{10}{numbered lines }
\stoplinenumbering
\stoptext

It doesn't work either with latest stable or beta versions.

Am I missing something here?

Thanks for your help,


Pablo
-- 
http://www.oudeis.tk
___
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
___


[NTG-context] Line Numbering (blank lines)

2010-06-18 Thread David Abdurachmanov

Hi,
How make ConTeXt to number blank lines? Blank lines by default are skipped. 
Especially when giving programming examples (source code) in ConTeXt documents, 
I would prefer blank lines still have number. 
david 
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
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
___


Re: [NTG-context] Line Numbering (blank lines)

2010-06-18 Thread Wolfgang Schuster

Am 18.06.10 17:55, schrieb David Abdurachmanov:

Hi,

How make ConTeXt to number blank lines? Blank lines by default are
skipped. Especially when giving programming examples (source code) in
ConTeXt documents, I would prefer blank lines still have number.



For mkiv it's works out of the box, for mkii it's not possible to change 
this with a simple key.


Here is a working solution but it redefined a *internal* macro:

% \def\doemptyverbatimline
%   {\vskip\verbatimbaselineskip
%{\setbox0\hbox{\the\everyline}}%
%\global\linepartrue}

\def\doemptyverbatimline
  {\dontleavehmode
   \strut
   \the\everyline
   \par}

\starttext
\setuptyping[numbering=line]
\starttyping
one
two

four
five
\stoptyping
\stoptext

Wolfgang
___
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
___


[NTG-context] Line Numbering (blank lines)

2010-06-13 Thread David Abdurachmanov

Hi,
How make ConTeXt to number blank lines? Blank lines by default are skipped. 
Especially when giving programming examples (source code) in ConTeXt documents, 
I would prefer blank lines still have number. 
david 
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
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
___


[NTG-context] Line numbering in columns

2010-03-31 Thread Vyatcheslav Yatskovsky

Hello,

I'm just curious, why line mumbers appear mirrored (on the right side of 
text) in the rightmost column?


\starttext
\startcolumns\startlinenumbering\startlines
Fly me to the moon
Hit the road jack
Sway
Libertango
Sunny
Besame mucho (Em)
La Bamba
Hey-na-na-na
Venus (Dm)
El Talisman
Oye Como Va
Chatanooga choocho (capo II)
Beautiful
Agua de beber + Masquenada
Kiss Me
Ain't it Funny
Pasadena
Don’t Want To Miss A Thing (capo II)
Old Devil Moon (capo II)
Got My Mind Set On You
Baila Morena
\stoplines\stoplinenumbering\stopcolumns
\stoptext

Another question is options of linenumbering command. Context 2006.03.20 
introduced A few extra options for \startlinenumbering, but texshow 
show only [continue] option.


Vyatcheslav

___
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
___


Re: [NTG-context] line numbering

2009-10-25 Thread Hans Hagen

Andreas Harder wrote:

Good morning everyone!

I've discovered some strange behavior from line numbering (attachment). 
The size of the line numbers changes after a page break.



Furthermore some settings for line numbers do not work. I tried some of 
the examples from strc-lnt.mkiv (at the bottom) … I want the numbers on 
the right side and would assume \setuplinenumbering [location=right, 
align=left].


Please have a look. Perhaps I did something wrong.


left/right was only implemented for columns

i uploaded a fix but keep in mind that line numbering will evolve (as 
it's part of the critecal edition code that results from the oriental 
tex project)


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
-
___
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
___


[NTG-context] line numbering

2009-10-20 Thread Andreas Harder

Good morning everyone!

I've discovered some strange behavior from line numbering  
(attachment). The size of the line numbers changes after a page break.


test-linenumbering.tex
Description: Binary data



Furthermore some settings for line numbers do not work. I tried some  
of the examples from strc-lnt.mkiv (at the bottom) … I want the  
numbers on the right side and would assume \setuplinenumbering  
[location=right, align=left].


Please have a look. Perhaps I did something wrong.

Greetings
Andreas

___
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
___


Re: [NTG-context] Line Numbering and References

2009-10-16 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 14.10.2009 um 11:54 schrieb Andreas Harder:


Hello all,

I have a problem with referencing from a line numbered text.

In page-lin.mkiv I've found the \inline-command, but I can't make use 
of it:


solved in next beta. btw, this mechanism has to be extended abit

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
-
___
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
___


[NTG-context] Line Numbering and References

2009-10-14 Thread Andreas Harder

Hello all,

I have a problem with referencing from a line numbered text.

In page-lin.mkiv I've found the \inline-command, but I can't make use  
of it:


\starttext
\startlinenumbering
  Hello \textreference[ref]{} World!
\stoplinenumbering
\inline[ref] % output: line ??
\stoptext

What I really want to achieve is something like the following:

\starttext

\startlinenumbering
  This ist a long transcription from an interview with line  
numbers.   % #1

  \startMyCite[test]
This ist a long transcription from an interview with line  
numbers. % #2
This ist a long transcription from an interview with line  
numbers. % #3

  \stopMyCite
  This ist a long transcription from an interview with line  
numbers.   % #4

\stoplinenumbering

And now \getMyCite[test] should output:

\startblockquote
  This ist a long transcription from an interview with line numbers.  
% #2
  This ist a long transcription from an interview with line numbers.  
% #3

\stopblockquote (lines 2--3)

\stoptext

Is something like this possible in ConTeXt and if yes how?

Thanks for your help!

Greetings,
Andreas

___
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
___