From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
ai2472206007@yeah.net
Subject: [NTG-context] Re: After using a custom command in the title, the table of contents is not generated properly
Date: Wed, 5 Jun 2024 16:33:08 +0200 [thread overview]
Message-ID: <4633504f-68b7-c26f-38a1-135f4e1f2ba9@gmail.com> (raw)
In-Reply-To: <171759621230.1996.13485003071861472801@cgl.ntg.nl>
ai2472206007@yeah.net schrieb am 05.06.2024 um 16:03:
> As described, here is example:
>
> %%%%%
> \def\cmd#1{{\tt\textslash #1}}
> \def\cmdii#1{\tt #1}
> \def\cmdiii#1{\rm #1}
You can use \definehighlight to create a custom command for a style.
The case where you want a slash before the text you have to use
\definestartstop which allows you to set something before and after
\definestartstop [cmdi] [style=\tt,left=\textslash]
\definehighlight [cmdii] [style=\tt]
\definehighlight [cmdiii] [style=\rm]
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-06-05 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 14:03 [NTG-context] " ai2472206007
2024-06-05 14:11 ` [NTG-context] " Henning Hraban Ramm
2024-06-05 14:19 ` ai2472206007
2024-06-05 14:33 ` 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=4633504f-68b7-c26f-38a1-135f4e1f2ba9@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ai2472206007@yeah.net \
--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).