* \placeinitial to account for quotation mark
@ 2021-09-06 18:24 Thangalin via ntg-context
2021-09-25 20:45 ` Thangalin via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Thangalin via ntg-context @ 2021-09-06 18:24 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thangalin
[-- Attachment #1.1: Type: text/plain, Size: 759 bytes --]
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!
[-- Attachment #1.2: Type: text/html, Size: 1325 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \placeinitial to account for quotation mark
2021-09-06 18:24 \placeinitial to account for quotation mark Thangalin via ntg-context
@ 2021-09-25 20:45 ` Thangalin via ntg-context
2021-09-26 10:27 ` Bruce Horrocks via ntg-context
2021-09-26 16:53 ` Hans Hagen via ntg-context
0 siblings, 2 replies; 4+ messages in thread
From: Thangalin via ntg-context @ 2021-09-25 20:45 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thangalin
[-- Attachment #1.1: Type: text/plain, Size: 649 bytes --]
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!
[-- Attachment #1.2: Type: text/html, Size: 807 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \placeinitial to account for quotation mark
2021-09-25 20:45 ` Thangalin via ntg-context
@ 2021-09-26 10:27 ` Bruce Horrocks via ntg-context
2021-09-26 16:53 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 4+ messages in thread
From: Bruce Horrocks via ntg-context @ 2021-09-26 10:27 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Bruce Horrocks
> On 25 Sep 2021, at 21:45, Thangalin via ntg-context <ntg-context@ntg.nl> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \placeinitial to account for quotation mark
2021-09-25 20:45 ` Thangalin via ntg-context
2021-09-26 10:27 ` Bruce Horrocks via ntg-context
@ 2021-09-26 16:53 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2021-09-26 16:53 UTC (permalink / raw)
To: Thangalin via ntg-context; +Cc: Hans Hagen
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-26 16:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 18:24 \placeinitial to account for quotation mark Thangalin via ntg-context
2021-09-25 20:45 ` Thangalin via ntg-context
2021-09-26 10:27 ` Bruce Horrocks via ntg-context
2021-09-26 16:53 ` Hans Hagen via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).