Capitalize first word of first line within \startlines
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, 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. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great, And would suffice. \stoppoem \stoptext
Any ideas why the first word is not capitalized? Thank you!
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][ 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 of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great, And would suffice. \stoppoem \stoptext
Any ideas why the first word is not capitalized? because it is not applied to that stretch ... but i will send you something to play with ... kind of braindead trivial piece of code but it needs testing a bit
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thangalin