![](https://secure.gravatar.com/avatar/ed6f43113e3f1cee031ebd13654fc703.jpg?s=120&d=mm&r=g)
On 7/10/2024 10:56 AM, Thangalin wrote:
Thank you Hans.
That's pretty close. Is there a way to make the opening quotation mark smaller? Ideally, control the font and colour?
You can try this (patch): \protected\def\typo_initial_handle_indeed#1#2% {\dontleavehmode \begingroup \cdef\currentinitial{#1}% \setupcurrentinitial[#2]% \resetfontfeature % might be needed in more places \ifempty{\initialparameter\c!style}% \definedfont[\initialparameter\c!font]% \else \useinitialstyleparameter\c!style \fi \ifempty{\initialparameter\c!color}% \c_attr_color \attributeunsetvalue \c_attr_transparency\attributeunsetvalue \else \useinitialcolorparameter\c!color \fi ...... \starttext \setupbodyfont[dejavu,9pt] \defineinitial[two][m=1,method=auto] \setupquotation[symcolor=red] \setinitial[two] Knuth :\ignorespaces\input knuth \par \setinitial[two] \quotation {Knuth} :\ignorespaces\input knuth \par \stoptext
Cheers!
On Wed, Jul 10, 2024 at 12:25 AM Hans Hagen via ntg-context
mailto: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 > <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 http://www.pragma-ade.nl | www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl https://www.pragma-ade.nl / https://context.aanhet.net https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net https://wiki.contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------