Re: [NTG-context] poetry \startlines and tab

2022-01-12 Thread Hans Hagen via ntg-context
On 1/12/2022 1:09 AM, jbf via ntg-context wrote: For poetry that has non-regular indentations, I simply \definelines[poem] and set that up the way I want, obviously, with \setuplines[poem]  e.g. [before={\blank \setupinterlinespace[line=2.5ex]},after={\blank},indenting=first

Re: [NTG-context] poetry \startlines and tab

2022-01-11 Thread jbf via ntg-context
For poetry that has non-regular indentations, I simply \definelines[poem] and set that up the way I want, obviously, with \setuplines[poem]  e.g. [before={\blank \setupinterlinespace[line=2.5ex]},after={\blank},indenting=first]. And then, but I guess it is still a hack, I use \hskip

Re: [NTG-context] Critical Editions?

2022-01-04 Thread Pablo Rodriguez via ntg-context
iant] \setupnotation[variant][number=no] \setupnote[variant][way=bypage,paragraph=yes,rule=off] \definelines[slokaed][][indenting={yes, small, even}, before={\startnarrower\startlinenumbering}, after={\stoplinenumbering\stopnarrower}] \definelines[slokaedplain][][inde

Re: [NTG-context] startlines with long lines that break and indent

2021-12-26 Thread Wolfgang Schuster via ntg-context
: \definemeasure[Indentation][1cm] \definenarrower [LinesIndentation] [ before=\blank, after=\blank, default=left, left=\measure{Indentation}] \definelines [Poem] [ before=\startLinesIndentation, after=\stopLinesIndentation, indenting={yes,-\measure{Indentation

Re: [NTG-context] Critical Editions?

2021-12-21 Thread Denis Maier via ntg-context
e=off] > > % Two "environments" for Sanskrit verses, one with, one without > linenumbers. > > % SANSKRIT EDITION linenumbers > \definelines[slokaed][][indenting={yes, small, even}, > > before=\startnarrower\startlinenumbering,after=\stoplinenumbering\st

[NTG-context] Critical Editions?

2021-12-21 Thread hanneder--- via ntg-context
[variant] [footnote] \setupnotation[variant][number=no] \setupnote[variant][way=bypage,paragraph=yes,rule=off] % Two "environments" for Sanskrit verses, one with, one without linenumbers. % SANSKRIT EDITION linenumbers \definelines[slokaed][][indenting={yes, small, ev

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Wolfgang Schuster
Tommaso Gordini schrieb am 02.07.2020 um 17:33: I have found this, that works, buy I don't know if there's a possibility of using less code: [...] The following example needs version 2020.07.02 or newer. begin example \definelines [poem] \setuplines [poem] [ before

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Tommaso Gordini
, align=flushleft, before=, after=, frame=off] \definenarrower[poemnarrower] \definelines [poemlines] [before={\startpoemnarrower[left]}, after=\stoppoemnarrower] \definebuffer[poem] \def\stoppoem{\setups{poems:buffer}} \startsetups poems:buffer \setupnarrower

[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
\switchtobodyfont[11pt]}, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm {\blue def nom} (argument1

Re: [NTG-context] Use \framedtext to write an algorithm (again)

2018-10-18 Thread Wolfgang Schuster
very well because the withdrawal of the text no longer exists. Thank you Fabrice \defineframedtext [algorithmframe]    [width=fit,     background=color, backgroundcolor=lightgray,     framecolor=darkred, corner=round] \definelines    [algorithm]    [space=on, before=\startalgorithmframe

[NTG-context] Use \framedtext to write an algorithm (again)

2018-10-17 Thread Fabrice Couvreur
, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startalgorithm Variables \math{I} et \math{J} entiers T tableau d'entiers Début Pour \math{I} allant de \math{1} à \math{3} Pour \math{J

[NTG-context] Centering an algorithm

2017-09-23 Thread Fabrice Couvreur
, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm Variables : \math{V} est un réel \math{N} est un entier naturel Début

[NTG-context] Vertical spacing in enumerations

2017-02-14 Thread Fabrice Couvreur
={\switchtobodyfont[7pt]}, background=color, location=middle, backgroundcolor=MyBlue, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before={\startframed[algorithmframe]}, after=\stopframed] \starttext \startalgorithm \startitemize[1,joinedup,nowhite] \item

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Mohammad Hossein Bateni
> > Not with linenumbering, what you need is counter which is inserted at the > begin of each line. > > \definelabel[algorithmicline][text=,alternative=inleft] > > \definelines[algorithmic][command=\algorithmicline] > > \setuplayout[width=4cm] > > \showframe[text][te

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-26 Thread Wolfgang Schuster
efinelabel[algorithmicline][text=,alternative=inleft] \definelines[algorithmic][command=\algorithmicline] \setuplayout[width=4cm] \showframe[text][text] \starttext \startalgorithmic text text text text text text text text text text text text text text \stopalgori

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Fabrice Couvreur
helps. > > \defineframed > [algorithmframe] > [width=fit, >align=normal, >strut=no, >offset=1ex, >foregroundstyle={\switchtobodyfont[8pt]}, >background=color, >location=middle, > backgroundcolor=lightgray, >framecolor=darkre

Re: [NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Wolfgang Schuster
ecolor=darkred, corner=round] \definelines [algorithm] [space=on, before={\startframed[algorithmframe]}, after=\stopframed] Wolfgang ___ If your question is of interest to others as well, please add an

[NTG-context] A question about \startcombination[3*1] \stopcombination (again)

2016-10-25 Thread Fabrice Couvreur
] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startmidaligned \startcombination[3*1] {\hbox{\startalgorithm Variables : \math{U} est un nombre réel \math{i} et \math{N} sont des nombres entiers Début : Saisir une valeur pour

Re: [NTG-context] Center a framedtext

2016-09-28 Thread Fabrice Couvreur
> fact, I want to place the algorithm as the image. > > You need also "location=middle" for the framedtext. > > \defineframedtext > [algorithmframe] > [width=fit, >location=middle, >background=color, >backgroundcolor=lightgray, >fra

Re: [NTG-context] Center a framedtext

2016-09-28 Thread Wolfgang Schuster
defineframedtext [algorithmframe] [width=fit, location=middle, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startmakeup[standard]

Re: [NTG-context] Center a framedtext

2016-09-27 Thread Fabrice Couvreur
=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startmakeup[standard][align=middle] \startalgorithm Initialisation : \math{u} prend la valeur 2\,000 \math{S} prend la valeur 2\,000 Traitement : Pour \math{i} allant de 2 à \

Re: [NTG-context] Center a framedtext

2016-09-25 Thread Wolfgang Schuster
ecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned Replace these two lines with \startmakeup[standard][align=middle] \startalgorithm Initialisation : \math{u}

[NTG-context] Center a framedtext

2016-09-23 Thread Fabrice Couvreur
Hello, How to make the algorithm is centered vertically and horizontally ? thank you, Fabrice \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before

Re: [NTG-context] Use \framedtext to write an algorithm

2016-07-30 Thread Fabrice Couvreur
lor=lightgray, >framecolor=darkred, >corner=round] > > \definelines > [algorithm] > [space=on, >before=\startalgorithmframe, >after=\stopalgorithmframe] > > \starttext > > \startalgorithm > Variables \math{I} et \math{J} entiers > T tableau

Re: [NTG-context] Use \framedtext to write an algorithm

2016-07-29 Thread Wolfgang Schuster
(space=on). \defineframedtext [algorithmframe] [width=fit, background=color, backgroundcolor=lightgray, framecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startalgorithm Variables \math{I} et \math{J} e

Re: [NTG-context] Poem with long verses

2014-06-21 Thread Wolfgang Schuster
environment doesn’t wllow this. Anayway I would prefer a solution which avoids the lines environment. This means I would like to define two commands: \startVerse and \stopVerse. But I find no solution. You can create your own lines environment with the \definelines command. The indentation

Re: [NTG-context] \vtop with middle alignment in a screenplay

2013-06-11 Thread Wolfgang Schuster
] \definemargindata[Person][inmargin][style=normal] \definelines[lyrics][align=middle] %\showframe \starttext \Person{Person 1:} \startlyrics song asdf line 1 song line 2 song a line 3 \stoplyrics \stoptext Wolfgang ___ If your

Re: [NTG-context] \vtop with middle alignment in a screenplay

2013-06-11 Thread Jan Pohanka
Dne 11.6.2013 12:15, Wolfgang Schuster napsal(a): You can place the name in the margin. \setuplayout[backspace=4cm] \definemargindata[Person][inmargin][style=normal] \definelines[lyrics][align=middle] %\showframe \starttext \Person{Person 1:} \startlyrics song asdf line 1 song line 2 song

Re: [NTG-context] \vtop with middle alignment in a screenplay

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 12:24 schrieb Jan Pohanka xhpoha...@gmail.com: Dne 11.6.2013 12:15, Wolfgang Schuster napsal(a): You can place the name in the margin. \setuplayout[backspace=4cm] \definemargindata[Person][inmargin][style=normal] \definelines[lyrics][align=middle] %\showframe

Re: [NTG-context] block with different formatting per line?

2013-02-06 Thread Wolfgang Schuster
} \define\SecondLine{\let\myLine\OtherLine\bf} \define\OtherLine{\tf} \definelines[doMyLines][command=\myLine] \def\startMyLines{\let\myLine\FirstLine\startdoMyLines} \def\stopMyLines{\stopdoMyLines} As I said that works, but while trying to understand this, I found that the documentation

Re: [NTG-context] block with different formatting per line?

2013-02-06 Thread Ingo Hohmann
} \definelines[doMyLines][command=\myLine] \def\startMyLines{\let\myLine\FirstLine\startdoMyLines} \def\stopMyLines{\stopdoMyLines} As I said that works, but while trying to understand this, I found that the documentation for \definelines doesn't mention the command= option. On the other hand

Re: [NTG-context] block with different formatting per line?

2013-02-06 Thread Rogers, Michael K
\FirstLine{\let\myLine\SecondLine\sc} \define\SecondLine{\let\myLine\OtherLine\bf} \define\OtherLine{\tf} \definelines[doMyLines][command=\myLine] \def\startMyLines{\let\myLine\FirstLine\startdoMyLines} \def\stopMyLines{\stopdoMyLines} As I said that works, but while trying to understand this, I

Re: [NTG-context] block with different formatting per line?

2013-02-05 Thread Ingo Hohmann
. If there's a counter that counts the line number, there would be another way; but I couldn't find out that there was a counter. There may be better ways anyway. \define\FirstLine{\let\myLine\SecondLine\sc} \define\SecondLine{\let\myLine\OtherLine\bf} \define\OtherLine{\tf} \definelines[doMyLines

Re: [NTG-context] block with different formatting per line?

2013-02-04 Thread Ingo Hohmann
. If there's a counter that counts the line number, there would be another way; but I couldn't find out that there was a counter. There may be better ways anyway. \define\FirstLine{\let\myLine\SecondLine\sc} \define\SecondLine{\let\myLine\OtherLine\bf} \define\OtherLine{\tf} \definelines[doMyLines

Re: [NTG-context] block with different formatting per line?

2013-02-02 Thread Rogers, Michael K
, there would be another way; but I couldn't find out that there was a counter. There may be better ways anyway. \define\FirstLine{\let\myLine\SecondLine\sc} \define\SecondLine{\let\myLine\OtherLine\bf} \define\OtherLine{\tf} \definelines[doMyLines][command=\myLine] \def\startMyLines{\let\myLine

[NTG-context] different interlinear space for quotation?

2012-12-09 Thread Pablo Rodríguez
\definenarrower[narrowlines][left=4em, setups=setups:narrow] \definelines[narrow][before={\blank\startnarrowlines[left]},after=\stopnarrowlines\blank] \stopsetups \starttext \input ward\par \startnarrow \input knuth\par \stopnarrow \input ward\par \stoptext Does anyone know how can I achieve a smaller font

[NTG-context] different vertical space with \definelines and \setuplines

2012-12-09 Thread Pablo Rodríguez
Hi Hans, I have the following sample: \definelines[narrow][before=\blank,after=\blank] \stopsetups \starttext This is a paragraph.\par \startnarrow this is a verse this is a verse \stopnarrow This is paragraph.\par \stoptext If I replace \definelines with \setuplines, before and after aren't

Re: [NTG-context] different vertical space with \definelines and \setuplines

2012-12-09 Thread Wolfgang Schuster
Am 09.12.2012 um 20:08 schrieb Pablo Rodríguez oi...@web.de: Hi Hans, I have the following sample: \definelines[narrow][before=\blank,after=\blank] \stopsetups \starttext This is a paragraph.\par \startnarrow this is a verse this is a verse \stopnarrow This is paragraph.\par

Re: [NTG-context] different interlinear space for quotation?

2012-12-09 Thread Wolfgang Schuster
[setups:narrow] \setupinterlinespace[line=2.8ex] \tfx \stopsetups \definenarrower[narrowlines][left=4em, setups=setups:narrow] \definelines[narrow][before={\blank\startnarrowlines[left]},after=\stopnarrowlines\blank] \stopsetups \starttext \input ward\par \startnarrow \input knuth\par

Re: [NTG-context] A Lorem ipsum module?

2012-07-19 Thread Hans Hagen
\xmlregisterdocumentsetup{Lorem}{xml:Lorem:base} \startxmlsetups xml:Lorem:feed \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:Lorem:lipsum \xmlflush{#1} \stopxmlsetups \definelines[LoremLines] \def\Lorem#1{% #1 = number of paragraphs to request \startLoremLines \xmlprocessfile{Lorem}{http://www.lipsum.com

Re: [NTG-context] A Lorem ipsum module?

2012-07-18 Thread Rogers, Michael K
xml:Lorem:feed \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:Lorem:lipsum \xmlflush{#1} \stopxmlsetups \definelines[LoremLines] \def\Lorem#1{% #1 = number of paragraphs to request \startLoremLines \xmlprocessfile{Lorem}{http://www.lipsum.com/feed/xml?amount=#1what=parasstart=yes

Re: [NTG-context] Font selection ranges

2011-09-30 Thread Wolfgang Schuster
environment when you don’t need syntax highlighting: \setupbodyfont[xits,10pt] \definelines [code] [space=yes, style=mono, before=\startnarrower, after=\stopnarrower] \starttext \showframe \startcode for $∀$i, j $∈$ I do a(i, j) $≔$ b(i, j) \stopcode \stoptext Wolfgang

Re: [NTG-context] [OS X TeX] \ne in a definetyping environment in context

2011-02-15 Thread Wolfgang Schuster
symbol produced by amsmath? Use the \startlines environment. MkII: \startlines\tt If int(N/2) $\ne$ N/2 Then Disp N MUST BE EVEN Stop End \stoplines MkIV: \definelines[XXX][style=mono] \startXXX If int(N/2) $\ne$ N/2 Then Disp N MUST BE EVEN Stop End \stopXXX or \startlines[style=mono] If int

Re: [NTG-context] code

2010-04-16 Thread Wolfgang Schuster
lines environment. \definelines[code][style=mono,space=on] \startcode \bold{def} ra() ... \stopcode the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs |text | the message: File ended while use of \next \type{|} works To keep

Re: [NTG-context] Hanging indent in startstoplines for poems

2010-03-29 Thread Wolfgang Schuster
how to do that? \definelines [verse] [indenting={yes,-2em,first}, before={\startnarrower[2em]}, after=\stopnarrower, % style={\setupalign[flushleft,nothyphenated]}, style={\raggedright\nohyphens}, ] @Hans, can you change \setupalign to \unexpanded\def\setupalign

Re: [NTG-context] Hanging indent in startstoplines for poems

2010-03-29 Thread Hans Hagen
be broken into hanging indentations. Any idea how to do that? \definelines [verse] [indenting={yes,-2em,first}, before={\startnarrower[2em]}, after=\stopnarrower, % style={\setupalign[flushleft,nothyphenated]}, style={\raggedright\nohyphens}, ] @Hans, can you change \setupalign to \unexpanded\def

[NTG-context] startlines

2009-10-03 Thread Wolfgang Schuster
] \def\definelines {\dodoubleempty\dodefinelines} \def\dodefinelines[#1][#2]% {\getparameters[\??rg#1][\s!parent=\??rg,#2]% \setvalue{\e!start#1}{\dostartlines[#1]}% \setvalue{\e!stop #1}{\dostoplines}} \def\setuplines {\dodoubleempty\dosetuplines} \def\dosetuplines[#1][#2

Re: [NTG-context] algorithms style : need \starttyping with TeX and math feature

2005-01-03 Thread Hans Hagen
, but it doesn't seem to be suffisant (but I didn't expect to!). no, just the same command, but with an option: \setuplines[space=on] if there is real demand for it i can always make a \definelines[lines] \definelines[Lines][space=on] Hans