From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Joel via ntg-context <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Why is my custom bullet point not rendering?
Date: Sun, 27 Oct 2024 18:16:14 +0100 [thread overview]
Message-ID: <cfa03cff-54f9-f9fb-f6f9-a17addcde0ac@gmail.com> (raw)
In-Reply-To: <1935016405.3722477.1730043099145@mail.yahoo.com>
Joel via ntg-context schrieb am 27.10.2024 um 16:31:
> [...]
> %
> \setupbodyfont[garamond, 12pt]
>
> \definesymbol[bighand][{{☞}}]
>
> \define[1]\prompt{%
> \startitemize[symbol=bighand]
> {\it #1}
> \stopitemize
> }%
>
> \defineitemgroup[prompt][symbol=bighand, style=italic]
>
> \starttext
>
> Why does this work? ☞☞☞☞
>
> \prompt{\startitem But not here?\stopitem}
>
> \stoptext
>
>
>
>
> I am trying to make a pointing finger the bullet point symbol.
>
> When I put the bullet point into the document, it works just fine. But
> when defined as the pointer, it somehow isn't showing up.
The symbol is set before the value of the symbol-key is available to the
environment and therefore never used. You can now either set the symbol
with \setupitemize (or \setupitemgroup) before you call \startitemize
(or \startitemgroup) or pass the symbol as keyword as shown below.
%%%% begin example
\setupbodyfont[ebgaramond,12pt]
\definesymbol[bighand][☞]
\define[1]\prompt
{\startitemize[bighand]%
\startitem
\italic{#1}%
\stopitem
\stopitemize}
\starttext
Why does this work? ☞☞☞☞
\prompt{But not here?}
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-10-27 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1935016405.3722477.1730043099145.ref@mail.yahoo.com>
2024-10-27 15:31 ` [NTG-context] " Joel via ntg-context
2024-10-27 15:36 ` [NTG-context] " Mikael Sundqvist
2024-10-27 17:16 ` Wolfgang Schuster [this message]
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=cfa03cff-54f9-f9fb-f6f9-a17addcde0ac@gmail.com \
--to=wolfgang.schuster.lists@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).