}
\stopchapter
}
\stoplinenumbering
\stoptext
When you have a single linenumbering block in your document you can set
the left/right values at the begin of your document with
\setuplinenumbering[left={[},right={]}]
When you have multiple linenumbering blocks in your document you can
ensure
s.txt" to be created in the local directory containing
the lines:
one
two
three
%%%% begin
\setuplinenumbering[location=text,style=\small\tt]
\starttext
Location=text not working in main body
\typefile[numbering=line]{three_lines.txt}
But it does work if a custom typing environment
I have some text that is a block quote, but also has line numbering:
\setuplinenumbering[step=3] \starttext
\startblockquote
\startlinenumbering
\input knuth
\stoplinenumbering
\stopblockquote \stoptext
The line numbering
On 9/24/22 19:56, Pablo Rodriguez via ntg-context wrote:
> [...]
> Which \setuplinenumbering is applied to typing fragments?
>
> Just in case my question isn’t clear: how can I get "step=3" in the
> sample above?
Hi there,
I reply this question myself: "s
Dear list,
I have the following sample:
\setuplinenumbering[typing]
[step=3]
\starttext
\starttyping[numbering=line]
Line
Line
Line
\stoptyping
\stoptext
Which \setuplinenumbering is applied to typing fragments?
Just in case my question isn’t clear: how can I get
Dear list,
I have the following sample:
\setuppapersize[A6]
\setuplinenumbering
[width=margin, location=outer, align=middle]
\setupnote[linenote]
[paragraph=yes, compress=yes, compressmethod=separator]
\setupnotation[linenote]
[alternative=serried, width=broad
Hi everyone,
I have a document with lots of maths. I am using \start...\stoplinenumbering to
place line numbers in the inner margins with
\setuplinenumbering
[location=inner,
style=\ttx]
The weird thing is I have many display math blocks that break across page(s)
using
;
\setuplinenumbering[step=5] % La sortie PDF comportera une numérotation
des lignes de 5 en 5; on peut régler de 1 à 10/Ruling linenumbering from
1 to 10.
\setupnotations[alternative=serried] % On définit le caractère
séquentiel des notes/ Definethe sequential mode of the notes.
\definelinenote
numéro des pages, etc.
\mainlanguage[la] % Définition du latin comme langue principale du document.
\setupbodyfontenvironment[default][em=italic]
\setuplayout[header=2cm, footer=2cm] % Paramétrage de la page;
\setuplinenumbering[step=2] % La sortie PDF comportera une numérotation
commandes stipulant les marges, les en-têtes, le numéro des pages, etc.
\mainlanguage[la] % Définition du latin comme langue principale du document.
\setupbodyfontenvironment[default][em=italic]
\setuplayout[header=2cm, footer=2cm] % Paramétrage de la page;
\setuplinenumbering[step=2] % La sortie
in on the new page.
>> It doesn’t happen with \start/stoplinenumbering.
>> MWE:
>> \setuptyping[
>> numbering=file,
>> ]
>
> \setuptyping[numbering=line]
Ah, thank you! (Wolfgang too!)
I can’t remember why I chose "file", and looking at the source als
Dear list,
In the MWE below you don't get lines and paragraphs numbered correctly:
\setuplinenumbering[location=inner,align=right,style=\tfxx,distance=10pt,color=red]
\setupparagraphnumbering[state=start,style=bold,distance=0pt,color=darkblue]
\setuphead[title][alternative=text,style=bold
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
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
.
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
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
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
i'll
>>> add a feature:
>>>
>>> \pagereference[column:#1]
>>>
>>> \doifelsereferencefound{column:#1}{\number\referencecolumnnumber}{}
>>>
>>> in the next beta,
>>>
>>> Hans
>>
>> Thanks for implem
\referencecolumnnumber}{}
in the next beta,
Hans
Thanks for implementing this, but I am afraid it does not work
properly, at least not if there are several targets following one
after another.
Consider this example:
\setupcolumns[
n=2,
]
\setuplinenumbering[
step=5,
method=page
it does not work properly,
at least not if there are several targets following one after another.
Consider this example:
\setupcolumns[
n=2,
]
\setuplinenumbering[
step=5,
method=page,
]
\def\Lab#1{%
\pagereference[#1]%
\pagereference[column:#1]%
\someline[#1]%
}
\def\Ref#1{
page
[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
numbering only for one
column, which, as far as I can see, does not exist; or I could use the
"command" option for "\setuplinenumbering" to make the line numbers
dissappear for one column, but then I would need some way to decide
whether a line number belongs to the first or
On 12/1/18 9:49 AM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 30.11.18 um 19:29:
>> [...]
>> Is there a way to center vertically the line numbers?
>
> \defineshift [RaiseNumber] [dy=-0.25,style=\tfxx]
>
> \setuplinenumbering [step=3,command=\RaiseNumber
Pablo Rodriguez schrieb am 30.11.18 um 19:29:
Dear list,
I have the following sample:
\setuplinenumbering[step=3, style=\tfxx]
\starttext
\startlinenumbering
\dorecurse{40}{This is a verse.\\}
\stoplinenumbering
\stoptext
Is there a way to center vertically
Dear list,
I have the following sample:
\setuplinenumbering[step=3, style=\tfxx]
\starttext
\startlinenumbering
\dorecurse{40}{This is a verse.\\}
\stoplinenumbering
\stoptext
Is there a way to center vertically the line numbers?
Many thanks for your help,
Pablo
on, subject][style=\ssa]
%
\setupindenting[first,always,2em]
\setupinterlinespace[line=1.5em]
\setupheads[indentnext=yes]
\setupwhitespace[big]
\setupfootnotes[bodyfont=9pt]
% ????
\setuplinenumbering[style=small,location=text,color=darkgreen]
\setuptype[style=\ttx]
%\setuptype[space=on]
\s
it’s not
usable because the numbers are always shown on the next page." He made
the following example (which I have slightly adapted):
\definemarking[linenumber]
\define\LinenumberCommand
{\normalexpanded{\setmarking[linenumber]{\linenumber}}}
\setuplinenumbering[command=\LinenumberCommand]
\s
ce=email_medium=sumlink_campaign=reach>
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 pa
yle 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]
\setupt
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. <l...@pontex.cz> wrote:
]
\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
setupinterlinespace[line=3ex]
\setuplinenumbering[location=left, step=5, method=section, style=\tfxx, align=left, distance=1em, width=0.4em]
\setuppagenumbering[alternative=doublesided,location=]
\definelinenote[comment]
\setupnote[comment][paragraph=yes, rule=off, split=verystrict, scope=page, inbetween=
ote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setupnotes[spacebefore=4*line]
\setupnotes[spaceinbetween=]
% \setuplinenumbering[step=5, location=inright,
distance=1ex,align=center, width=0.5em]
\definemargin
ote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setupnotes[spacebefore=4*line]
\setupnotes[spaceinbetween=]
% \setuplinenumbering[step=5, location=inright,
distance=1ex,align=center, w
]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
align=center, w
On 10/12/2016 06:03 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 12. Oktober 2016 um 16:38
>> [...]
>> According to the description from page 301 in i-context.pdf,
>> \startlinenumbering ... \stoplinenumbering inherit from
>> \setuplinenumbering.
>
> I change
On 10/12/2016 5:58 PM, Thomas A. Schmitz wrote:
On 12.10.2016 16:38, Pablo Rodriguez wrote:
Wolfgang,
your approach is right, but hasn’t Thomas hit a bug?
According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from
\setuplinenumbering
ttings
are forgotten when the numbers are added on ConTeXt
uses the global values instead when it add them.
According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from
\setuplinenumbering.
I changed it, valid keys are continue, start, step and
On 12.10.2016 16:38, Pablo Rodriguez wrote:
Wolfgang,
your approach is right, but hasn’t Thomas hit a bug?
According to the description from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.
Thanks Wolfgang, this solution works (I must
ption from page 301 in i-context.pdf,
\startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.
Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the
On 12.10.2016 15:48, Otared Kavian wrote:
Hi Thomas,
It seems that if you use \setuplinenumbering the issue is fixed: please have a
look here:
\setuppapersize [A6]
\setuplinenumbering[location=text,distance=0.5cm]
\starttext
\startlinenumbering
\dorecurse{2}{\input tufte
Hi Thomas,
It seems that if you use \setuplinenumbering the issue is fixed: please have a
look here:
\setuppapersize [A6]
\setuplinenumbering[location=text,distance=0.5cm]
\starttext
\startlinenumbering
\dorecurse{2}{\input tufte}
\stoplinenumbering
dummy
\stoptext
Best regards: OK
\usemodule[newcolumnsets]
\definecolumnset[example][n=2,page=middle,distance=1cm]
\setupcolumnset
[example]
[background=contrast]
% \definecolor[fakerulecolor][white] \faketriggertrue
\setuphead
[section]
[style=\bfd]
\setuplinenumbering
[style=regular,
distance=0pt,
align=inner]
\starttext
nelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, di
[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
style=\em]
\setupbodyfont[mainface, 7.8pt]
\starttext
\start\fr % some text in French
Définir
}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
style=\em]
\setupbodyfont[mainfac
[mainface] [serif] [GFS Didot]
[preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\define
] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
style=\em]
\setupbodyfont[mainface, 7
e[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=i
]
\defineparagraphs[TwoColumns][n=2, align={hz, hanging}]
\setupparagraphs[TwoColumns][1][width=200pt, style=regular, align=left]
\setuplinenumbering[step=5]
\setupbodyfont[palatino, 7.8pt]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
gt; as the one given by LaTeX ? I am not looking for a very translation in
> ConTeXt of this file given in LaTeX ! A similar sample (where different
> levels of notes are managed as in this LaTeX file) will be perfect.
Hi Jean-Pierre,
here you have a basic sample:
\mainlanguage[la]
\s
similar sample (where different
> levels of notes are managed as in this LaTeX file) will be perfect.
Hi Jean-Pierre,
here you have a basic sample:
\mainlanguage[la]
\setuplayout[header=0cm, footer=0cm]
\setuplinenumbering[step=5]
\setupnotations[alternative=serried]
\defineli
Xt of this file given in LaTeX ! A similar sample (where different
> levels of notes are managed as in this LaTeX file) will be perfect.
Hi Jean-Pierre,
here you have a basic sample:
\mainlanguage[la]
\setuplayout[header=0cm, footer=0cm]
\setuplinenumbering[step=5]
\setupnotations[alterna
, the linenumbering
doesn’t stop where I would expect. Is this a bug or a limitation of context?
\setuplayout [leftmargin=2cm]
\setupbodyfont [times,10pt]
\setuplinenumbering [step=1,location=inmargin]
\setupcolumns [n=2]
\starttext
\startcolumns
\startlinenumbering
Had we but world enough
,
۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,
another million entries
the next beta will have:
\setuplinenumbering[conversion=arabicdecimals]
What's wrong with 'persiannumerals' and 'arabicnumerals' which we had
before? They are not supposed to by synonymous for abjadnumerals... In any
case we need
U+: [0030-0039] - [0660
]
[١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,
١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,
۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,
another million entries
the next beta will have:
\setuplinenumbering[conversion=arabicdecimals]
What's wrong with 'persiannumerals' and 'arabicnumerals' which we had
before? They are not supposed to by synonymous
for such a conversion? simplearabic?
arabicdigits?
[myconversion]
[١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,
١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,
۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,
another million entries
the next beta will have:
\setuplinenumbering[conversion=arabicdecimals]
What's wrong with 'persiannumerals
,
]
\setuplinenumbering[%
style=\tfxx,
referencing=on,
step=1,
location=outer,
method=page,
align=left,
distance=1em,
width=0.4em,
conversion=arabicdecimals,
]
\definelinenote[linenotedefault][%
setups=note:linenotedefault
:
\setuplinenumbering[conversion=arabicdecimals]
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
]
\setupdirections[bidi=global,method=two]
\setupalign[r2l]
%\righttoleft
%% HEADINGS
\setuphead[section][
conversion=myconversion,
numbercommand=\righttoleft, % -- toggle
]
\setuplinenumbering[conversion=myconversion]
\setupnotations[footnote][numberconversion=myconversion
ABIC-HINDI NUMERALS\defineconversion[myconversion][١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,]%% HEADINGS\setuppagenumber[numberconversion=myconversion]%%% LINENUMBERING\setuplinenumbering[% style=\tfxx, referencing=on, step=1, location=outer, method=page, align=left, distance=1em, w
[rm] [ALM Fixed][range=arabic,features=arabic] \setupbodyfont[mainface,12pt]%\setupdirections[bidi=global]\setupalign[r2l]%\righttoleft%% HEADINGS\setuphead[chapter,section][ conversion=myconversion,% numbercommand=\lefttoright % -- toggle ]\setuplinenumbering[conversion=myconversion]\setupnotation
]
[۱,۲,۳,۴,۵,۶,۷,۸,۹,۱۰,
۱۱,۱۲,۱۳,۱۴,۱۵,۱۶,۱۷,۱۸,۱۹,۲۰,
۲۱,۲۲,۲۳,۲۴,۲۵,۲۶,۲۷,۲۸,۲۹,۳۰]
\setuppagenumber[numberconversion=myconversion]
Of course, one can add the same to setups for the other matters as well:
\setuphead[chapter,title,section,subject][conversion=myconversion]
\setuplinenumbering
so far:
- - -
\setuplinenumbering[% style=\tfxx,referencing=on, step=1,
location=outer, method=page,align=left, distance=1em,
width=0.4em,]
\definelinenote[linenote][% paragraph=yes, frame=on,framecolor=red,
]% \setupnotation[linenote
numbering with the
particular style and the other with the global style.
When you create custom typing environment context also creates a line numbering
environment with the same name
and to change its values you should use the \setuplinenumbering command and not
\definelinenumbering.
I don't
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
][numbering=line,page=yes,bodyfont=9pt,tab=2]
\setuplinenumbering[code][location=text,align=left,style={\switchtobodyfont[9pt,tt]},command=\numeroLigneCode,distance=-.5em,width=2em]
\defineparagraphs[TwoCols][n=2,before=,after=]
\starttext
={%
\begingroup%
\setuplinenumbering[location=text,align=left,style=\tt,command=\numeroLigneCode,distance=-.5em,width=2em]%
},after={\endgroup},tab=2]
\starttext
\startcode
one
two
three
]
\setuplinenumbering[code][location=text,align=left,style={\switchtobodyfont[9pt,tt]},command=\numeroLigneCode,distance=-.5em,width=2em]
\defineparagraphs[TwoCols][n=2,before=,after=]
\starttext
\startTwoCols
\startcode
one
two
three
\stopcode
\TwoCols
hum
\stopTwoCols
\stoptext
I've tried to use
Hans,
I’m afraid that I have another sample:
\setupbodyfont[dejavu]
\setuplinenumbering[style=\tfxx]
\starttext
\startlinenumbering
\input zapf
\stoplinenumbering
\stoptext
It compiles fine with beta from 2015.03.25 22:13.
With beta from 2015.04.15 01:44
, MANUEL GONZALEZ SUAREZ wrote:
Hello everyone.
I give a small example:
\setuppagenumbering [alternative=doublesided]
\setuplinenumbering[location=outer, step=5, method=page,
style=\tfxx, align=left, distance=1em, width=0.4em]
\starttext
\section{First section}
\startlinenumbering
text
On 4/10/2014 12:46 AM, MANUEL GONZALEZ SUAREZ wrote:
Hello everyone.
I give a small example:
\setuppagenumbering [alternative=doublesided]
\setuplinenumbering[location=outer, step=5, method=page,
style=\tfxx, align=left, distance=1em, width=0.4em]
\starttext
\section{First section
Hello everyone.
I give a small example:
\setuppagenumbering [alternative=doublesided]
\setuplinenumbering[location=outer, step=5, method=page,
style=\tfxx, align=left, distance=1em, width=0.4em]
\starttext
\section{First section}
\startlinenumbering
text text text
\stoplinenumbering
]
\setuplinenumbering[lnbasic][]
\setuplinenumbering[lntext][location=text]
\setuplinenumbering[lntextandnullwidth][location=text,width=0pt]
\setuplinenumbering[lntextandwidth][location=text,width=.75em]
\starttext
{\bf A normal paragraph for reference}. \input tufte
\startlinenumbering[lnbasic]
{\bf Numbers
to
(e.g.) -1cm
It seems I can indeed get nice results with
\setuplinenumbering[location=text]
\startnarrower[left]
\startlinenumbering
Thanks !
i've added support for notes (somewhat tricky)
\starttext
Here we have a footnote \footnote{%
\startlinenumbering
\input tufte
recent versions
(25/03 and 27/03).
with respect to text: you need to go narrower or set the distance to
(e.g.) -1cm
It seems I can indeed get nice results with
\setuplinenumbering[location=text]
\startnarrower[left]
\startlinenumbering
Thanks
It seems I can indeed get nice results with
\setuplinenumbering[location=text]
\startnarrower[left]
\startlinenumbering
i've added support for notes (somewhat tricky)
\starttext
Here we have a footnote \footnote{%
\startlinenumbering
\input tufte
A few
behaviour.
==
\setuppapersize[A4]
\setupindenting[yes,first,medium]
\definelinenumbering[lnbasic]
\definelinenumbering[lntext]
\definelinenumbering[lntextandnullwidth]
\definelinenumbering[lntextandwidth]
\setuplinenumbering[lnbasic][]
\setuplinenumbering[lntext][location
\defineframedtext[framedcode][strut=yes,offset=2mm,width=7cm,align=right]
\definetyping[code][numbering=line,bodyfont=small,before={\startframedcode},after={\stopframedcode}]
\setuplinenumbering[location=intext]
\setuptyping[option=color]
startxmlsetups xml:demo:codi
\blank
\startcode\xmlverbatim
.
But why can't I use
\defineframedtext[framedcode][strut=yes,offset=2mm,width=7cm,align=right]
\definetyping[code][numbering=line,bodyfont=small,before={\startframedcode},after={\stopframedcode}]
\setuplinenumbering[location=intext]
\setuptyping[option=color]
startxmlsetups xml:demo:codi
\blank
}]
\setuplinenumbering[location=intext]
\setuptyping[option=color]
startxmlsetups xml:demo:codi
\blank
\startcode\xmlverbatim{#1}\stopcode
\blank
\stopxmlsetups
different catcode regimes
How can I achieve this results? (numbering line and color basically
}%
\else
\setbox0\hbox to \wd2{\hss\box0\hss}%
\fi
\box0
\kern-\wd2
\raise\lineheight\box2
\endgroup}
\indenting[never]
\setuplinenumbering[step=5]
\starttext
\chapter{Canto 1}
\startlinenumbering[]
\dos{La cólera}{M~hnin} \dos{canta}{'aeide} \dos{diosa}{je`a} \dos{del
hijo de Peleo
of the footnotes?
Any hint would be great!
You can use the line numbering and line note mechanism.
%\setuplinenumbering[command=\gobbleoneargument]
\starttext
\startlinenumbering
\dorecurse{20}{\input knuth\linenote{Note \recurselevel} }
\stoplinenumbering
\stoptext
Wolfgang
]
\indenting[always]
\setupnarrower[left=0.5in,
right=0in]
\setupspacing[packed]
\setupalign[right,broad,nothyphenated]
\setuplinenumbering[step=1]
\setuppagenumbering[way=bytext]
\definenote[genetic]
\setupnote[genetic][numberconversion=romannumerals,
way=bychapter
facilitate
things.
Actually ranges have always been supported (as we needed in the previous
century already for referring to passages in texts where students had to
comment on):
\definelinenote[linenote] % was commented but will be predefined
\starttext
\setuplinenumbering[distance=2em
the beginning of the line numbering. So here's my example:
\def\startnumberedblockquote
{\dosingleempty\dostartnumberedblockquote}
\def\dostartnumberedblockquote[#1]%
{\getrawparameters[numberedblockquote][start=1,#1]%
\blank[line]%
\begingroup
\setupindenting[no]%
\setuplinenumbering
On 9-7-2012 20:50, Thomas A. Schmitz wrote:
\def\startnumberedblockquote
{\dosingleempty\dostartnumberedblockquote}
\def\dostartnumberedblockquote[#1]%
{\getrawparameters[numberedblockquote][start=1,#1]%
\blank[line]%
\begingroup
\setupindenting[no]%
\setuplinenumbering
Thanks that worked!
\starttext
\setuplinenumbering[method=page]
\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering
\stoptext
Wolfgang
___
If your question is of interest to others as well
as I do not need to reference each line.
e.g. finding line 15 on page 6 is fine.
\setuplinenumbering doesn't seem to provide an option.
Anything I can do? Thanks!
\starttext
\setuplinenumbering[method=page]
\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering
Hi all,
may be i am mistaken, but I can't get line numbering to show in the beta of
yesterday afternoon.
\starttext
\setuplinenumbering[step=5,location=intext]
\startlines
Een nieuwe lente en een nieuw geluid:
Ik wil dat dit lied klinkt als het gefluit,
Dat ik vaak hoorde voor een zomernacht
On 25-5-2012 10:07, Willi Egger wrote:
Hi all,
may be i am mistaken, but I can't get line numbering to show in the beta of
yesterday afternoon.
\starttext
\setuplinenumbering[step=5,location=intext]
\startlines
Een nieuwe lente en een nieuw geluid:
Ik wil dat dit lied klinkt als het gefluit
-linenumbering.tex
Description: Binary data
On May 25, 2012, at 10:48 AM, Hans Hagen wrote:
On 25-5-2012 10:07, Willi Egger wrote:
Hi all,
may be i am mistaken, but I can't get line numbering to show in the beta of
yesterday afternoon.
\starttext
\setuplinenumbering[step=5,location=intext
.. ;-)
- The numbers are flush right in the margin, but after line 99 the third
number is placed outside the margin towards the text.
Willi
Try
\setuplinenumbering[step=5,location=text]
From page.lin.mkiv, there seems to be these options now:
\setnewconstant\linenumberlocation \plusone % 0=middle, 1
argument for the settings but this
isn’t the case and you need \setuplinenumbering to set them.
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
On Thu, 3 May 2012, Wolfgang Schuster wrote:
You assume \definelinenumbering has a second argument for the settings but this
isn’t the case
D'oh.
and you need \setuplinenumbering to set them.
I also needed to change \setvalue to \setevalue in the example, and add an
\expanded to get
Am 03.05.2012 um 17:18 schrieb Aditya Mahajan:
On Thu, 3 May 2012, Wolfgang Schuster wrote:
You assume \definelinenumbering has a second argument for the settings but
this isn’t the case
D'oh.
and you need \setuplinenumbering to set them.
I also needed to change \setvalue
On Thu, 3 May 2012, Wolfgang Schuster wrote:
Am 03.05.2012 um 17:18 schrieb Aditya Mahajan:
On Thu, 3 May 2012, Wolfgang Schuster wrote:
You assume \definelinenumbering has a second argument for the settings but this
isn’t the case
D'oh.
and you need \setuplinenumbering to set them
Hi,
Line numbering does not respect the parameters given with
\startlinenumbering. For example:
\definelinenumbering
[test]
\starttext
\startlinenumbering[test][color=blue,align=flushright,distance=0.5em]
\input knuth
\stoplinenumbering
\page
\setuplinenumbering
[test][color=blue
this:
\definelinenumbering
[test]
\starttext
\startlinenumbering[test][color=blue,align=flushright,distance=0.5em]
\input knuth
\stoplinenumbering
\setuplinenumbering
[test][color=blue,align=flushright,distance=0.5em]
\startlinenumbering[test]
\input knuth
\stoplinenumbering
\setuplinenumbering
[test][color
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
1 - 100 of 163 matches
Mail list logo