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 -----------------------------------------------------------------