ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thangalin <thangalin@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Quotation mark in drop caps
Date: Wed, 10 Jul 2024 01:56:17 -0700	[thread overview]
Message-ID: <CAANrE7ruxNHJSsA9hSHCmPzSy9=LiTUU7cL3TeFLKf-H52P-Rg@mail.gmail.com> (raw)
In-Reply-To: <2c481d43-3f55-4d49-9d0a-73d8738e3df7@freedom.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2398 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3861 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

  reply	other threads:[~2024-07-10  8:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07 20:29 [NTG-context] " Thangalin
2024-07-10  7:10 ` [NTG-context] " Thangalin
2024-07-10  7:25   ` Hans Hagen via ntg-context
2024-07-10  8:56     ` Thangalin [this message]
2024-07-10  9:34       ` Hans Hagen via ntg-context
2024-07-10 23:55         ` Thangalin
2024-07-11  6:35           ` vm via ntg-context
2024-07-11  8:06             ` Thangalin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAANrE7ruxNHJSsA9hSHCmPzSy9=LiTUU7cL3TeFLKf-H52P-Rg@mail.gmail.com' \
    --to=thangalin@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).