\placeinitial to account for quotation mark
Hi list, The following example shows a lettrine that stylizes a quotation mark: \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext\chapter{Harriet Tubman} "Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world.\chapter{Eleanor Roosevelt} Great minds discuss ideas; average minds discuss events; small minds discuss people.\stoptext Without changing the text itself, how would you make the lettrine stylize the E in Every while making the quotation mark retain the body font (i.e., much smaller and hang to the left, possibly protruding into the margin)? For reference: https://tex.stackexchange.com/q/609544/2148 Thank you!
Henri Menke provided a partial solution: \defineinitial[two][method={first,auto}] \setuphead[chapter][ after={\placeinitial[two]}, page=no, ] \starttext \chapter{Harriet Tubman} "Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world. \chapter{Eleanor Roosevelt} Great minds discuss ideas; average minds discuss events; small minds discuss people. \stoptext However, the leading quotation mark is gobbled. Is there any generic way of detecting a leading quotation mark while keeping initial caps on the first character? Thank you!
On 25 Sep 2021, at 21:45, Thangalin via ntg-context
wrote: Henri Menke provided a partial solution:
\defineinitial[two][method={first,auto}] \setuphead[chapter][ after={\placeinitial[two]}, page=no, ]
\starttext \chapter{Harriet Tubman} "Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world. \chapter{Eleanor Roosevelt} Great minds discuss ideas; average minds discuss events; small minds discuss people. \stoptext
However, the leading quotation mark is gobbled. Is there any generic way of detecting a leading quotation mark while keeping initial caps on the first character?
Not really generic, and maybe not what you want, but there is this: \chapter{Eleanor Roosevelt} \setupinitial[text={"G}] reat minds discuss ideas; average minds discuss events; small minds discuss people. — Bruce Horrocks Hampshire, UK
On 9/25/2021 10:45 PM, Thangalin via ntg-context wrote:
Henri Menke provided a partial solution:
\defineinitial[two][method={first,auto}] \setuphead[chapter][ after={\placeinitial[two]}, page=no, ]
\starttext \chapter{Harriet Tubman} "Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world. \chapter{Eleanor Roosevelt} Great minds discuss ideas; average minds discuss events; small minds discuss people. \stoptext
However, the leading quotation mark is gobbled. Is there any generic way of detecting a leading quotation mark while keeping initial caps on the first character? i'll send you something off-list to test
----------------------------------------------------------------- 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 (3)
-
Bruce Horrocks
-
Hans Hagen
-
Thangalin