Thank you Hans.

That's pretty close. Is there a way to make the opening quotation mark smaller? Ideally, control the font and colour?

Cheers!

On Wed, Jul 10, 2024 at 12:25 AM Hans Hagen via ntg-context <ntg-context@ntg.nl> wrote:
On 7/10/2024 9:10 AM, Thangalin wrote:
>  From TeX.SE, the following solution works; however, it doesn't feel
> like the "ConTeXt way":
>
> % SOT
> \setuplocalboxes[leftmargin][
>      style=\bfd,
>      color=darkred,
>      distance=0pt,
> ]
>
> \unprotect
> \define\quoteinitial{%
>      \futureexpandisap“\quoteinitial_true\quoteinitial_false%
> }
>
> \define\quoteinitial_true{%
>      \localmargintext[leftmargin]{“}%
>      \expandafter\placeinitial%
>      \gobbleoneargument%
> }
>
> \let\quoteinitial_false\placeinitial
> \protect
>
> \starttext
>      \quoteinitial “We held ConTeXt in high esteem.” \samplefile{bryson}
>
>      \quoteinitial We held ConTeXt in high esteem.   \samplefile{bryson}
> \stoptext
> %EOT
>
> Any suggestions for how to improve it?
>
> See also: https://tex.stackexchange.com/q/722275/2148
> <https://tex.stackexchange.com/q/722275/2148>
\starttext

\setupbodyfont[dejavu,9pt]

\defineinitial[two][m=1,method=auto]

\setinitial[two]             Knuth   :\ignorespaces\input knuth \par
\setinitial[two] \quotation {Knuth}  :\ignorespaces\input knuth \par

\stoptext


-----------------------------------------------------------------
                                           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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________