[NTG-context] Solution: LMTX initial (drop cap) in combination with indenting

2021-07-22 Thread Gerben Wierda
th MKIV in a document of mine, but > after your reply I double checked that and, in fact, I was using > lettrine only with MKII. On the plus side, I have recovered my settings > for MKIV (which work with LMTX as well). > > I think that the `distance` parameter of \setupin

Re: [NTG-context] Use of lettrine module in LMTX

2021-07-21 Thread Nicola
ettings for MKIV (which work with LMTX as well). I think that the `distance` parameter of \setupinitials does what you want. Besides, if your font provides real small capitals, you may use \definefirstline. This is how I set up things in one of my documents: %

[NTG-context] \setfirstline is applied to whole paragraph

2020-08-12 Thread Nicola
When I typeset the example at https://wiki.contextgarden.net/Command/definefirstline (reported below for your convenience), \setfirstline is applied to the whole first paragraph, which is laid out on a single line (hence, it is cropped at the edge of the page). Besides, the second

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

2020-03-05 Thread Hans Hagen
On 3/5/2020 2:46 AM, Thangalin wrote: If it helps, here's why I thought it would work: https://wiki.contextgarden.net/Command/definefirstline The wiki page shows that the macro takes a style option. The style option links to: https://wiki.contextgarden.net/Style_Alternatives This page has

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

2020-03-04 Thread Thangalin
If it helps, here's why I thought it would work: https://wiki.contextgarden.net/Command/definefirstline The wiki page shows that the macro takes a style option. The style option links to: https://wiki.contextgarden.net/Style_Alternatives This page has a list of predefined styles and describes

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

2020-03-04 Thread Hans Hagen
On 3/4/2020 5:09 PM, Thangalin wrote: Looking to uppercase the first word of a poem: \setupindenting[yes, 0.75em] \setupinitial[ state=start, n=2, distance=\zeropoint, ] % This does not appear to work? \definealternativestyle[PoemFirstWord][\WORD][] \definefirstline[PoemFirstLine

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

2020-03-04 Thread Thangalin
Looking to uppercase the first word of a poem: \setupindenting[yes, 0.75em] \setupinitial[ state=start, n=2, distance=\zeropoint, ] % This does not appear to work? \definealternativestyle[PoemFirstWord][\WORD][] \definefirstline[PoemFirstLine][ alternative=word, style=PoemFirstWord

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
[big]},   alternative=normal,   after={\blank[halfline]},   numbercolor=,   sectionseparatorset=, ] \stopsectionblockenvironment \definefirstline [5W][alternative=word, n=5,s

Re: [NTG-context] Firstline problem with smallcaps

2018-01-14 Thread Hans Hagen
(emboldened, italicized). \definefirstline[SC][alternative=line,style=\setfontfeature{smallcaps}]% or =\sc \definefirstline[BD][alternative=line,style=bold] \definefirstline[IT][alternative=line,style=italic] \setupbodyfont[termes,11pt]% requires font with small caps

[NTG-context] Firstline problem with smallcaps

2018-01-12 Thread Rik Kabel
). \definefirstline[SC][alternative=line,style=\setfontfeature{smallcaps}]% or =\sc \definefirstline[BD][alternative=line,style=bold] \definefirstline[IT][alternative=line,style=italic] \setupbodyfont[termes,11pt]% requires font with small caps \starttext   \setfirstline[SC

Re: [NTG-context] Allow for hyphenation in 'firstline' ConTeXt feature ?

2016-05-29 Thread josephcanedo
ouble > check that hyphenation is never performed. > > \definefirstline[FirstLine][alternative=line, style=\tfd] % exegerate size > > \starttext > > % exagerated case as MWE > > \setfirstline[FirstLine] A few words larger > largestwordwordlongwordthatcouldbehyphenated

Re: [NTG-context] Allow for hyphenation in 'firstline' ConTeXt feature ?

2016-05-29 Thread Hans Hagen
in mind that trickery like this also needs to cooperate with other mechanisms i'll send you a file to test (no beta as i'm cleaning up some display math) I post a MWE showing some extreme non real non sensible case, to double check that hyphenation is never performed. \definefirstline

[NTG-context] Allow for hyphenation in 'firstline' ConTeXt feature ?

2016-05-29 Thread josephcanedo
those related to hyphenation. Would it be very difficult to add such option please ? I post a MWE showing some extreme non real non sensible case, to double check that hyphenation is never performed. \definefirstline[FirstLine][alternative=line, style=\tfd] % exegerate size \starttext

Re: [NTG-context] \setfirstline for headings/titles ?

2015-10-29 Thread josephcanedo
than normal paragraphs. \definecolumnset[TwoColumns][n=2] \definefirstline[bbigline][alternative=line, style=\tfa] \starttext \startcolumnset [TwoColumns] \startsubject[title={\setfirstline[bbigline] A very very very long title for subject we know will not fit in single line

Re: [NTG-context] \setfirstline for headings/titles ?

2015-10-28 Thread josephcanedo
to apply it for headings as well ? Naive sample below does not work for the subject title, most probably because headings/titles have different processing than normal paragraphs. \definecolumnset[TwoColumns][n=2] \definefirstline[bbigline][alternative=line, style=\tfa] \starttext

Re: [NTG-context] \setfirstline Inside columns environment does not seem to work

2015-10-27 Thread josephcanedo
Seems to work fine with columnsets: \setupbodyfont[pagella] \definecolumnset[TwoColumns][n=2] \starttext \startcolumnset [TwoColumns] \setupindenting[medium,yes] \setupalign[tolerant] \definefirstline [fancy] [alternative=line, style=\tfd] \setfirstline[fancy] \input tufte \par

[NTG-context] \setfirstline for headings/titles ?

2015-10-27 Thread josephcanedo
] \definefirstline[bbigline][alternative=line, style=\tfa] \starttext \startcolumnset [TwoColumns] \startsubject[title={\setfirstline[bbigline] A very very very long title for subject we know will not fit in single line of output}] % first line with different style as in the text below ? \setfirstline

[NTG-context] \setfirstline Inside columns environment does not seem to work

2015-10-26 Thread josephcanedo
/base/context.mkiv mtx-context | current version: 2015.10.09 21:28 Thanks Best Joseph Canedo \setupbodyfont[pagella] \starttext % \startcolumns[n=2] \setupindenting[medium,yes] \setupalign[tolerant] \definefirstline [fancy] [alternative=line, style=\tfd] \setfirstline[fancy] \input

[NTG-context] Firstline mechanism broken

2013-09-21 Thread Marco Patzer
Hi, the firstline mechanism seems to be broken. \definefirstline [foo] [alternative=line, color=lightgray] \starttext \setfirstline [foo] \input knuth \par \stoptext Marco signature.asc Description: Digital signature

Re: [NTG-context] Firstline mechanism broken

2013-09-21 Thread Hans Hagen
On 9/21/2013 10:33 AM, Marco Patzer wrote: Hi, the firstline mechanism seems to be broken. \definefirstline [foo] [alternative=line, color=lightgray] \starttext \setfirstline [foo] \input knuth \par \stoptext fyi: i simplified some node processing code and when keeping

Re: [NTG-context] beta

2013-08-24 Thread Marco Patzer
with \definefirstline, or a variant of it: that is not only have the first character of the first sentence as a dropped capital, but also the first line (or first few words) for instance in smallcaps. I played with that before uploading but it was somewhat tricky. Anyway, I redid some code so

Re: [NTG-context] beta

2013-08-23 Thread Philipp Gesang
···date: 2013-08-22, Thursday···from: Hans Hagen··· Hi, Some new magic in the beta ... \setupbodyfont[pagella] \starttext \setupindenting[medium,yes] \setupalign[tolerant] \definefirstline [fancy] [alternative=line, color=darkred, style

Re: [NTG-context] beta

2013-08-23 Thread Otared Kavian
Hi Hans, This is a very nice feature indeed. Out of curiosity, I wondered whether it is possible to to have \placeinitial to work with \definefirstline, or a variant of it: that is not only have the first character of the first sentence as a dropped capital, but also the first line (or first

Re: [NTG-context] beta

2013-08-23 Thread Hans Hagen
On 8/23/2013 2:41 PM, Otared Kavian wrote: Hi Hans, This is a very nice feature indeed. Out of curiosity, I wondered whether it is possible to to have \placeinitial to work with \definefirstline, or a variant of it: that is not only have the first character of the first sentence as a dropped

Re: [NTG-context] beta

2013-08-23 Thread Marco Patzer
On 2013–08–24 Hans Hagen wrote: On 8/23/2013 2:41 PM, Otared Kavian wrote: Hi Hans, This is a very nice feature indeed. Out of curiosity, I wondered whether it is possible to to have \placeinitial to work with \definefirstline, or a variant of it: that is not only have the first

Re: [NTG-context] beta

2013-08-23 Thread Hans Hagen
On 8/24/2013 2:08 AM, Marco Patzer wrote: On 2013–08–24 Hans Hagen wrote: On 8/23/2013 2:41 PM, Otared Kavian wrote: Hi Hans, This is a very nice feature indeed. Out of curiosity, I wondered whether it is possible to to have \placeinitial to work with \definefirstline, or a variant

[NTG-context] beta

2013-08-22 Thread Hans Hagen
Hi, Some new magic in the beta ... \setupbodyfont[pagella] \starttext \setupindenting[medium,yes] \setupalign[tolerant] \definefirstline [fancy] [alternative=line, color=darkred, style=\setfontfeature{smallcaps}] \setfirstline[fancy] \input tufte