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] startlines with long lines that break and indent

2021-12-26 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 26.12.2021 um 17:36: Hi all, I am looking for a way to make startstoplines likes this: This is a long line that breaks, the second line, the third line. So if a line in the poem is too long it shall break and indent. Short version: \setuplines

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

2021-12-26 Thread Rik Kabel via ntg-context
line that breaks,   the second line,   the third line.   The second stanza starts. \stopbuffer \setupdelimitedtext[Poe][   rightmargin=\Poeminset,   leftmargin={\dimexpr\Poemindent+\Poeminset\relax},   before={\setuplines[    before

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
\or \spac_indentation_no_toggle \or \spac_indentation_do_toggle \or \spac_indentation_tri_toggle \fi} \protect % questo codice attiva il rientro \setupindenting[yes,1em] \setuplines[indenting=three] \starttext \startpoem Per correr miglior acque alza le vele omai la navicella del

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

2020-07-02 Thread Tommaso Gordini
Thanks, Wolfgang. Your example works, but the verse indentation ( \setuplines[indenting=three]) is lost. There's a way to preserve it? Tommy ___ If your question is of interest to others as well, please add an entry

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

2020-07-02 Thread Wolfgang Schuster
Hans Hagen schrieb am 02.07.2020 um 16:48: On 7/2/2020 4:15 PM, Wolfgang Schuster wrote: Hans Hagen schrieb am 02.07.2020 um 15:40: On 7/2/2020 3:01 PM, Tommaso Gordini wrote: [...] I'll add this \setuplines[indentnext={0pt,10pt,15pt,20pt}] % \setuplines[indentnext={0pt,*,*}] which

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

2020-07-02 Thread Hans Hagen
, verse no. 2, 3, 5, and 6). Is it possible to get what I ask for with ConTeXt? The most I managed to do is this: \starttext \setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì

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

2020-07-02 Thread Tommaso Gordini
dentation_check_toggle > {\ifcase\c_spac_indentation_toggle_state > % nothing > \or > \spac_indentation_no_toggle > \or > \spac_indentation_do_toggle > \or > \spac_indentation_tri_toggle > \fi} > \protect > %% > > to be used with: &g

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

2020-07-02 Thread Wolfgang Schuster
to get what I ask for with ConTeXt? The most I managed to do is this: \starttext \setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove

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

2020-07-02 Thread Taco Hoekwater
\spac_indentation_check_toggle {\ifcase\c_spac_indentation_toggle_state % nothing \or \spac_indentation_no_toggle \or \spac_indentation_do_toggle \or \spac_indentation_tri_toggle \fi} \protect %% to be used with: \setuplines[indenting=three] Best wishes, Taco > On 2 Jul 2020, at 15

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

2020-07-02 Thread Hans Hagen
I managed to do is this: \starttext \setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove l'umano spirito si purga e di salire al ciel

[NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Tommaso Gordini
\setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove l'umano spirito si purga e di salire al ciel diventa degno. \stoplines \stoptext but that's

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Hans Hagen
][ alternative=word, style=PoemFirstWord, n=1, ] \definestartstop[poem][ before={\startlines \setfirstline[PoemFirstLine] \placeinitial}, after={\stoplines}, ] \setuplines[indenting=odd] \starttext \startpoem Some say the world will end in fire, Some say in ice. From what I've tasted

[NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
, n=1, ] \definestartstop[poem][ before={\startlines \setfirstline[PoemFirstLine] \placeinitial}, after={\stoplines}, ] \setuplines[indenting=odd] \starttext \startpoem Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire

Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster
n file /Users/bowen1/Desktop/TestTeX/test-02.tex: ? \setupdirections[bidi=global, method=one]%<—— \defineitemgroup[CList][levels=2] \setupCList[1][n, broad, packed, autointro, repeat, continue] [itemalign=flushright, left={},right={},stopper={.}, margin=0pc, before={\setupinterlinespace[off] \s

Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster
, continue] [itemalign=flushright, left={},right={},stopper={.}, margin=0pc, before={\setupinterlinespace[off] \setuplines[before={}, after={}] \startlines}, after={\stoplines}] \setupCList[2][n, broad, packed, joinedup, autointro] [itemalign=flushright, left={}, right={}, stopper={}, margin=0pc, ] \def

Re: [NTG-context] Error at \stoplines

2018-01-24 Thread Henning Hraban Ramm
m, there are only a few "lines" sections, and of course >> I checked these first. >> I also checked all(?) other \start/stops, braces and brackets - of course I >> could have overlooked some, it’s a whole book, but most cases are caught on >> their own. >&g

Re: [NTG-context] Error at \stoplines

2018-01-23 Thread Aditya Mahajan
it might be something in my setups, but not in \setuplines, but don’t know for what I should look, there’s too much... Which other setups affect \start/stoplines? The error could be due to some other mismatched group. Have you tried: mtxrun --script

Re: [NTG-context] Error at \stoplines

2018-01-23 Thread Henning Hraban Ramm
are caught on their own. I guess it might be something in my setups, but not in \setuplines, but don’t know for what I should look, there’s too much... Which other setups affect \start/stoplines? Greetlings, Hraban ---

Re: [NTG-context] Finalizing my book

2015-09-06 Thread Wolfgang Schuster
ntykwa] [default] \setupbodyfont[antykwa] \setuplines[option=packed,inbetween={\blank[line,preference]}] \setuppapersize[A6] \showframe \starttext \subsection{Co mě tak láká?} \startlines A ty se ptáš, co mě tak láka, na tobě? Odpoveď máš tady i když v snivé podobě Dostal jsem ochutnat z poháru š

Re: [NTG-context] orphans and widows in poems

2013-06-17 Thread Bill Meahan
On 6/17/2013 1:39 AM, Wolfgang Schuster wrote: Verse page. You don’t need any tricks to prevent page breaks in a lines environment because \setuplines[option=packed] already does it. Wolfgang You still need to make each stanza an individual lines environment, don't you? -- Bill Meahan

Re: [NTG-context] orphans and widows in poems

2013-06-17 Thread Pablo Rodríguez
stanzas, you can put each stanza in an non-bordered frame. [...] A frame will never be split across pages. BTW this trickis on the wiki on the Verse page. You don’t need any tricks to prevent page breaks in a lines environment because \setuplines[option=packed] already does it. Many

Re: [NTG-context] orphans and widows in poems

2013-06-17 Thread Wolfgang Schuster
Am 17.06.2013 um 15:50 schrieb Bill Meahan subscribed_li...@meahan.net: On 6/17/2013 1:39 AM, Wolfgang Schuster wrote: Verse page. You don’t need any tricks to prevent page breaks in a lines environment because \setuplines[option=packed] already does it. Wolfgang You still need

Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Bill Meahan
. e.g.: % Set up the lines environment to put the contained lines in a frame so they are kept together \setuplines[indenting={yes,small,even}, -- whatever options you want before={\startframedtext[frame=off]}, after=\stopframedtext] % Then wrap your stanzas in individual line

Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Aditya Mahajan
each stanza in an non-bordered frame. e.g.: % Set up the lines environment to put the contained lines in a frame so they are kept together \setuplines[indenting={yes,small,even}, -- whatever options you want before={\startframedtext[frame=off]}, after=\stopframedtext] % Then wrap

Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Wolfgang Schuster
consists of individual stanzas, you can put each stanza in an non-bordered frame. e.g.: % Set up the lines environment to put the contained lines in a frame so they are kept together \setuplines[indenting={yes,small,even}, -- whatever options you want before={\startframedtext[frame=off

Re: [NTG-context] Indenting in \setuplines

2013-06-06 Thread Hans Hagen
On 6/6/2013 12:36 AM, Marcin Borkowski wrote: Sorry to say that, but neither seems to work... it is hard to say what goes wrong if you only show the error message and no real code Hans -

Re: [NTG-context] Indenting in \setuplines

2013-06-06 Thread Marcin Borkowski
Dnia 2013-06-06, o godz. 09:49:27 Hans Hagen pra...@wxs.nl napisał(a): On 6/6/2013 12:36 AM, Marcin Borkowski wrote: Sorry to say that, but neither seems to work... it is hard to say what goes wrong if you only show the error message and no real code Sorry for that, my fault. Now comes

Re: [NTG-context] Indenting in \setuplines

2013-06-05 Thread Marcin Borkowski
Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be

Re: [NTG-context] Indenting in \setuplines

2013-06-05 Thread Hans Hagen
On 6/5/2013 11:06 PM, Marcin Borkowski wrote: Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically,

Re: [NTG-context] Indenting in \setuplines

2013-06-05 Thread Marcin Borkowski
Dnia 2013-06-06, o godz. 00:22:04 Hans Hagen pra...@wxs.nl napisał(a): On 6/5/2013 11:06 PM, Marcin Borkowski wrote: Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way:

[NTG-context] Indenting in \setuplines

2013-06-03 Thread Marcin Borkowski
Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? TIA, -- Marcin

Re: [NTG-context] How to center with picture taken into consideration

2013-04-27 Thread Sietse Brouwer
- 3.5cm\relax, distance=0.5cm, align=middle, ] \setuplines[align=middle] \setupparagraphs[persoon][2][width=3cm] \starttext \startluacode -- a table containing the material we want to typeset local contents = { { text = [[ Naam

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

2013-02-06 Thread Wolfgang Schuster
for \definelines doesn't mention the command= option. On the other hand it does mention align= and this doesn't work. Neither does \setuplines. I always get undefined control sequence. \definelines[doFirstBoldRight][command=\myLine] \setupdoFirstBoldRight[align=flushleft] \setuplines

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

2013-02-06 Thread Ingo Hohmann
it does mention align= and this doesn't work. Neither does \setuplines. I always get undefined control sequence. ... Make a complete example. I thought I could get away without it, because it's practically the answer to my question, just with alignment. For some reason, now that I started from

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

2013-02-06 Thread Rogers, Michael K
found that the documentation for \definelines doesn't mention the command= option. On the other hand it does mention align= and this doesn't work. Neither does \setuplines. I figured it out from the source, spac-lin.mkiv. One might see there that the align key does not seem to be processed

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

2013-02-05 Thread Ingo Hohmann
= and this doesn't work. Neither does \setuplines. I always get undefined control sequence. \definelines[doFirstBoldRight][command=\myLine] \setupdoFirstBoldRight[align=flushleft] OR \definelines[doFirstBoldRight][align=flushleft,command=\myLine] gives the same error. Do you have any idea what I am doing

[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
\stoptext If I replace \definelines with \setuplines, before and after aren't honored. \definelines adds an extra paragraph separation space within the lines that isn't inserted with \setuplines. Is this intended? 1. When you add a blank line in a “lines” environment context inserts

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

2012-07-19 Thread Hans Hagen
/feed/xml?amount=#1what=parasstart=yes}{} \stopLoremLines } \starttext \setupindenting[yes,20pt] \setuplines[LoremLines][command=\blank,indenting=yes] \Lorem{12} \stoptext I've added a module m-ipsum. I have no clue if it provides what one expects from such a module \usemodule[ipsum

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

2012-07-18 Thread Rogers, Michael K
}{} \stopLoremLines } \starttext \setupindenting[yes,20pt] \setuplines[LoremLines][command=\blank,indenting=yes] \Lorem{12} \stoptext This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential

Re: [NTG-context] indenting \startlines... \stoplines

2012-01-01 Thread Wolfgang Schuster
environment to increase the left margin. \definenarrower[narrowlines][left=10cm] \setuplines [before={\startnarrowlines[left]}, after=\stopnarrowlines] \starttext \showframe \startlines One Two Three \stoplines \stoptext Wolfgang

Re: [NTG-context] processing style inside verbatim in XML

2011-10-24 Thread Hans Hagen
cannot color the numbers. When I use, according to Wolfgang's suggestion, \startxmlsetups pre \setuplines[style=mono,space=yes] \startlines \xmlflush{#1} \stoplines \stopxmlsetups then all the spaces are eaten up by XML parser (or somewhere else), so that I don't get the desired result. Any ideas

Re: [NTG-context] Standardmakeup

2011-10-21 Thread Willi Egger
before \stopstandardmakeup. \setupmakeup[standard][top=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines {\bfd Der Titel

[NTG-context] processing style inside verbatim in XML

2011-10-21 Thread Mojca Miklavec
, according to Wolfgang's suggestion, \startxmlsetups pre \setuplines[style=mono,space=yes] \startlines \xmlflush{#1} \stoplines \stopxmlsetups then all the spaces are eaten up by XML parser (or somewhere else), so that I don't get the desired result. Any ideas about this? I'm also sending a self-contained

Re: [NTG-context] Standardmakeup

2011-10-20 Thread Wolfgang Schuster
with inserting an empty line. Add \vfill before \stopstandardmakeup. \setupmakeup[standard][top=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines

Re: [NTG-context] Standardmakeup

2011-10-19 Thread Willi Egger
=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines {\bfd Der Titel} \blank[line

[NTG-context] Spurious space when using space=on with \startlines

2011-10-16 Thread Marco
Hi, \startlines with the space=on option produces a spurious space. Is that intended? I don't see a reason to introduce a space. \setuplines [style=mono] \starttext % for whatever \startlines for {\it whatever} \stoplines % for whatever \startlines [space=on] for {\it whatever

Re: [NTG-context] Spurious space when using space=on with \startlines

2011-10-16 Thread Wolfgang Schuster
Am 16.10.2011 um 16:31 schrieb Marco: Hi, \startlines with the space=on option produces a spurious space. Is that intended? I don't see a reason to introduce a space. \setuplines [style=mono] \starttext % for whatever \startlines for {\it whatever} \stoplines

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Wolfgang Schuster
the alignment of the content with the align key of the environment, e.g. \startlines[align=middle] … \stoplines or change the settings global (i.e. \setuplines[align=middle]). Wolfgang ___ If your question is of interest

Re: [NTG-context] \crlf breaks alignment inheritance

2011-05-26 Thread Marco Pessotto
line is also the end of a paragraph, you can also change the alignment of the content with the align key of the environment, e.g. \startlines[align=middle] … \stoplines or change the settings global (i.e. \setuplines[align=middle]). Wolfgang Ok, thanks for your answers. -- Marco

Re: [NTG-context] Why do \startlines and \crlf give different results in this example?

2011-03-12 Thread Wolfgang Schuster
Am 12.03.2011 um 05:48 schrieb mathew: % First request no space before \setuplines[before=\nowhitespace,after=\nowhitespace] % Now use startlines... \framed[width=fit,align=right]{\startlines One Two Three\stoplines} \framed [width=fit,align=right,strut=no] {\startlines

[NTG-context] Why do \startlines and \crlf give different results in this example?

2011-03-11 Thread mathew
% First request no space before \setuplines[before=\nowhitespace,after=\nowhitespace] % Now use startlines... \framed[width=fit,align=right]{\startlines One Two Three\stoplines} % ...then compare with \crlf. \framed[width=fit,align=right]{One\crlf Two\crlf Three} Why do these give

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-16 Thread Wolfgang Schuster
tricky. This is what I did once to typeset the divine comedy. Don't ask how I figured out the right value of the inbetween key :) \setupindenting [medium,yes] \setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next] You don’t need \testpage to keep the lines

Re: [NTG-context] \setuplines[space=on] (was: HOWTO: Typesetting Poetry in ConTeXt)

2010-09-16 Thread Philipp Gesang
On 2010-09-15 22:26:38, John Haltiwanger wrote: Apologies, as a very significant aspect of this process was omitted in the previous email! Don't forget to do: \setuplines[space=on] Hi all, I'm sorry to hijack the thread but I have trouble understanding how the [space=on] works

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
Apologies, as a very significant aspect of this process was omitted in the previous email! Don't forget to do: \setuplines[space=on] first! On Wed, Sep 15, 2010 at 9:45 AM, John Haltiwanger john.haltiwan...@gmail.com wrote: I thought I'd give the mailing list a small change of pace

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan
On Wed, 15 Sep 2010, John Haltiwanger wrote: Apologies, as a very significant aspect of this process was omitted in the previous email! Don't forget to do: \setuplines[space=on] first! On Wed, Sep 15, 2010 at 9:45 AM, John Haltiwanger john.haltiwan...@gmail.com wrote: I thought I'd give

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
in the previous email! Don't forget to do: \setuplines[space=on] first! On Wed, Sep 15, 2010 at 9:45 AM, John Haltiwanger john.haltiwan...@gmail.com wrote: I thought I'd give the mailing list a small change of pace---instead of asking how to do it, I will show you :) The short answer

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread Aditya Mahajan
the divine comedy. Don't ask how I figured out the right value of the inbetween key :) \setupindenting [medium,yes] \setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next] \starttext \startlines Midway upon the journey of our life I found myself within a forest dark

Re: [NTG-context] HOWTO: Typesetting Poetry in ConTeXt

2010-09-15 Thread John Haltiwanger
, typesetting poerty can be very tricky. This is what I did once to typeset the divine comedy. Don't ask how I figured out the right value of the inbetween key :) \setupindenting [medium,yes] \setuplines[inbetween={\crlf\par\setupindenting[next]\testpage[3]},indenting=next] \starttext

[NTG-context] table, setuptable, TWO

2010-04-20 Thread R. Bastian
] \setupindenting[yes, 3mm] \setupwhitespace[6mm] \mainlanguage[fr] \setupbodyfont[sansserif, 12pt] \definepapersize[monpapier][width=210mm, height=297mm] \definebodyfont[10pt][tt][bf=cmbtt10] \setuplines[space=on] \setupheadertexts[chapter] \setuppagenumbering[alternative=doublesided,location={footer

Re: [NTG-context] table, setuptable, TWO

2010-04-20 Thread Wolfgang Schuster
] \setupindenting[yes, 3mm] \setupwhitespace[6mm] \mainlanguage[fr] \setupbodyfont[sansserif, 12pt] \definepapersize[monpapier][width=210mm, height=297mm] \definebodyfont[10pt][tt][bf=cmbtt10] \setuplines[space=on] \setupheadertexts[chapter] \setuppagenumbering[alternative=doublesided,location={footer

Re: [NTG-context] table: vertical distance

2010-04-17 Thread Wolfgang Schuster
Am 17.04.10 11:35, schrieb Wolfgang Werners-Lucchini: Hallo, I have to typeset a division and have two diverent solutions but they both have problems. \setuplines[style=type] \startlines 110011:11=10001 11 ... ~0 \stoplines \stoptext \setuplines[style=type,space=on] \startlines

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
= 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext Wolfgang ___ 1. I use

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono] {\bf def} ra

Re: [NTG-context] code

2010-04-09 Thread Wolfgang Schuster
Am 09.04.10 11:20, schrieb R. Bastian: Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only

Re: [NTG-context] code

2010-04-09 Thread R. Bastian
= 4 } } MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext Wolfgang Thanks Wolfhang. It goes better, but there is still a little bug: {\bf def} inserts a white

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext Cheers, Peter -- Contact

Re: [NTG-context] code

2010-04-09 Thread luigi scarso
On Fri, Apr 9, 2010 at 5:24 PM, Peter Münster pmli...@free.fr wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; how to force context to make a backspace ? \setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra

Re: [NTG-context] code

2010-04-09 Thread Peter Münster
On Fri, Apr 09 2010, luigi scarso wrote: On Fri, Apr 09 2010, R. Bastian wrote: but remains that every {\bf } introduces a white space; I'm not able to see any white space in mkiv Bastian refers to Wolfgang's solution with \setuplines[space=on]. Cheers, Peter -- Contact

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

2010-03-30 Thread Torsten Suhling
-- \setupoutput[dvi] \setupwhitespace[1.2em] \definestartstop[verse] [command={% \setupwhitespace[1.2em]% },style={% \raggedright\nohyphens% },before={% \setuplines[indenting={yes,-2em,first}]% \setupnarrower[left=2em

Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)

2009-12-13 Thread Wolfgang Schuster
that effort if verbatim is going to be fixed soon anyway. When you don't need syntax highlighting you can use \startlines \setuplines[space=on] \startlines\tt IF A==B THEN do this ELSE do that END \stoplines Wolfgang

Re: [NTG-context] \starbuffer in own macros

2009-10-19 Thread Andreas Harder
\setuplines local) but it's what I can readfrom your description above and the code you showed in the previous message.Thank you very much for your help!I adapted your solution and it works as intended.There is an inherent "problem" as one can see in the attachment, but since mostly I ci

Re: [NTG-context] \starbuffer in own macros

2009-10-18 Thread Wolfgang Schuster
text in the appendix of the document. In the body I'd like to cite out of it (with the same line numbers as in the source/appendix). The appendix should stay unchanged. For the beginning you can play with this code, it has to be changed in a few parts (e.g. make \setuplines local) but it's

[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] verses together

2009-07-14 Thread Hans Hagen
\dobetweenthelines}% \activatespacehandler\@@rgspace \GotoPar} \def\dobetweenthelines {\doifmeaningelse\next\obeyedline {\@@rginbetween} {\afterfirstobeyedline}} \setuplines [\c!option=, \c!before=\blank, \c!after=\blank, \c!inbetween=\blank, \c!indenting=\v!no, \c

Re: [NTG-context] looking for equivalence to LaTeX algorithm package

2008-12-01 Thread Wolfgang Schuster
On Sun, Nov 30, 2008 at 5:09 PM, Zhaopeng Xing [EMAIL PROTECTED] wrote: Hi, Does anyone know how to describe algorithm procedures in similar way as LaTeX algorithmic and algorithm packages? I tried to search it on wiki but found nothing. Thanks. \starttext \setuplines[space=yes

Re: [NTG-context] looking for equivalence to LaTeX algorithm package

2008-12-01 Thread Zhaopeng Xing
packages? I tried to search it on wiki but found nothing. Thanks. \starttext \setuplines[space=yes] \startlines $sum \leftarrow 0$ \bold{for} $i \leftarrow 1,n$ \bold{do} $sum \leftarrow sum + i$ \bold{end for} \stoplines \stoptext Wolfgang

Re: [NTG-context] looking for equivalence to LaTeX algorithm package

2008-11-30 Thread Wolfgang Schuster
{\bf then}} \def\ENDIF {{\bf end if}\par\egroup} \def\WHILE ##1{\bgroup\doadaptleftskip{1em}{\bf while} ##1 {\bf do}} \def\ENDWHILE {{\bf end while}\par\egroup} \definecomplexorsimple\ELSE \def\simpleELSE {{\bf else}} \def\complexELSE[##1]{{\bf else} $//$ ##1} \stopsetups %\setuplines

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
[language code][settings] # \setuplayer \setuplayout[options] \setuplegend[options] \setuplinenumbering[options] \setuplines[options] \setuplinewidth[dimension] \setuplist[names][options] \setupmakeup[name][options] \setupmarginblocks[options] \setupmarginrules[level=number|rulethickness=dimension

Re: [NTG-context] Semi-verbatim - preserve whitespace - don't escape characters

2007-12-08 Thread Aditya Mahajan
is a directive that says preserve whitespace but does not escape reserved TeX characters. Does any such thing exist in ConTeXt? Unfortunately, I'm inexperienced with TeX so I don't know how feasible this is. \setuplines[space=yes] followed by \startlines verbatin text \stoplines Note

Re: [NTG-context] Semi-verbatim - preserve whitespace - don't escape characters

2007-12-08 Thread Wolfgang Schuster
with TeX so I don't know how feasible this is. \setuplines[space=yes] followed by \startlines verbatin text \stoplines Note that everything between start-stop lines is normal tex code. you mean start/stoplines need style and color keys. Aditya Wolfgang

Re: [NTG-context] Whitespace significance without verbatim

2007-11-29 Thread Aditya Mahajan
On Thu, 29 Nov 2007, Mike Santy wrote: Is there an environment that preserves whitespace (like typing), but still processes \bf \it and other text formatting commands (unlike typing). \setuplines[space=yes] \startlines write what you want {\bf Either bold} or not \stoplines Aditya

Re: [NTG-context] extra spacing between verse and chorus

2007-07-15 Thread Wolfgang Schuster
[verse] [before=\vbox\bgroup\startlines, after=\stoplines\egroup] \definestartstop [chorus] [before=\startnarrower\startlines, after=\stoplines\stopnarrower] \setuplines[before=\nowhitespace,after=\nowhitespace] Wolfgang \starttext \startverse We all came out to Montreux

Re: [NTG-context] Pagebreak only after stanzas

2007-04-17 Thread Hans Hagen
on the page. Pagebreaks should only be possible between stanzas at the \smallskip-mark. Could somebody tell me, how to achieve this? Probably, the easiest way to do that will be to add a bit of a markup. Something like (untested) \setuplines[after={\blank[small]}] %or after=\smallskip

Re: [NTG-context] Pagebreak only after stanzas

2007-04-15 Thread Bert Trüger
. Pagebreaks should only be possible between stanzas at the \smallskip-mark. Could somebody tell me, how to achieve this? Probably, the easiest way to do that will be to add a bit of a markup. Something like (untested) \setuplines[after={\blank[small]}] %or after=\smallskip \defineframedtext[stanza

Re: [NTG-context] Pagebreak only after stanzas

2007-04-15 Thread Wolfgang Schuster
\stopframedtext \stoptext Hi Bert, can you file with these settings \setupframedtexts [framedtext] [width=\textwidth, height=fit, before=, after=] \setuplines [before=\startframedtext, after=\stopframedtext] \starttext \subsection{Novalis--An Tieck} \startlines Ein Kind voll

Re: [NTG-context] Pagebreak only after stanzas

2007-04-14 Thread Aditya Mahajan
should only be possible between stanzas at the \smallskip-mark. Could somebody tell me, how to achieve this? Probably, the easiest way to do that will be to add a bit of a markup. Something like (untested) \setuplines[after={\blank[small]}] %or after=\smallskip \defineframedtext[stanza][width

Re: [NTG-context] typesetting verse?

2006-08-23 Thread Aditya Mahajan
[medium] \setuplines[indenting=odd] \starttext \startlines first second third fourth \stoplines \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] typesetting verse?

2006-08-23 Thread Hans Hagen
(unless I misunderstood the feature) \setupindenting[medium] \setuplines[indenting=odd] \starttext \startlines first second third fourth \stoplines \stoptext \showframe \starttext \setupindenting[medium,first] \setuplines[indenting=no] \startlines first second third fourth first

Re: [NTG-context] typesetting verse?

2006-08-23 Thread Aditya Mahajan
\setuplines[indenting=yes]. Have a look at the code posted by Hans sometime back. Aditya On 8/23/06, Aditya Mahajan [EMAIL PROTECTED] wrote: On Tue, 22 Aug 2006, Derek Schmidt wrote: Hi, Another simple question--have at it! I'd like to typeset some poetry. It should be indented

Re: [NTG-context] typesetting verse?

2006-08-23 Thread Derek Schmidt
Ok guys, thanks. I eventually went with this: \setupindenting[medium,first] \def\startverse% {\bgroup \setupinterlinespace[medium] \setuplines[indenting=yes] \startlines} \def\stopverse% {\stoplines \endgraf\egroup} On 8/23/06, Aditya Mahajan [EMAIL

Re: [NTG-context] \startlines and whitespace

2006-05-16 Thread Aditya Mahajan
. \setuplines[before={\startnarrower[3cm]},after=\stopnarrower] \midaligned{test} \startlines There snores -- I mean sleeps -- my wife so frail. There snores -- I mean sleeps -- my wife so frail. \stoplines -- Aditya ___ ntg-context mailing list ntg

Re: [NTG-context] \startlines and whitespace

2006-05-16 Thread frantisek holop
hmm, on Tue, May 16, 2006 at 06:27:12PM -0400, Aditya Mahajan said that Use the before and after mechanism. \setuplines[before={\startnarrower[3cm]},after=\stopnarrower] \midaligned{test} \startlines There snores -- I mean sleeps -- my wife so frail. There snores -- I mean sleeps -- my

Re: [NTG-context] \page inside a block

2006-03-16 Thread Hans Hagen
) % % \defineheadplacement[poemtitle][horizontal]#1#2% % {\margintitle{\hskip\measure{SavedLeftSkip}#1\enspace#2}} \defineheadplacement[poemtitle][vertical]#1#2% {\setupparagraphintro[first][{\llap{\hbox to \leftskip{#1\enspace#2\hss}}}]} \setuplines[before=,after=] \def\StartPoem#1% {\startnarrower[5*left

Re: [NTG-context] Dropped caps, \startlines\stoplines, and indentation question

2006-01-28 Thread Adrian Drury
Radhelorn wrote:Adrian Drury wrote: Hello, I'm having trouble using dropped caps within \startlines\stoplines. I'm trying to typeset some poetry and I'm using \setuplines[space=yes]. I'd like to use dropped caps and have the indented lines be additionally indented by any space at the beginning

Re: [NTG-context] Dropped caps, \startlines\stoplines, and indentation question

2006-01-25 Thread Radhelorn
Adrian Drury wrote: Hello, I'm having trouble using dropped caps within \startlines\stoplines. I'm trying to typeset some poetry and I'm using \setuplines[space=yes]. I'd like to use dropped caps and have the indented lines be additionally indented by any space at the beginning

  1   2   >