From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \convertnumber with macro parameter
Date: Tue, 11 Jun 2013 14:29:07 +0200 [thread overview]
Message-ID: <1881DF6C-D479-4B94-8987-7B378582EF34@gmail.com> (raw)
In-Reply-To: <51B7167E.40102@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 604 bytes --]
Am 11.06.2013 um 14:22 schrieb Jan Pohanka <xhpohanka@gmail.com>:
> Hi,
>
> just another newbie question
>
> \setuphead[section]
> [command=\MyCommand]
>
> \define[2]\MyCommand%
> {\convertnumber{I}{#1} --- #2}
>
> \convertnumber does not work on command parameter. What am I doing wrong? I know that I can use conversion key in setuphead, but I need slightly more complicated command.
Use \setuphead[section][conversion=I], you can’t use \convertnumber
because the first argument is the formatted (styles and colors are applied)
content of the section number.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1469 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-06-11 12:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 12:22 Jan Pohanka
2013-06-11 12:29 ` Wolfgang Schuster [this message]
2013-06-11 12:36 ` Jan Pohanka
2013-06-11 12:46 ` Wolfgang Schuster
2013-06-11 13:53 ` Jan Pohanka
2013-06-11 14:00 ` Wolfgang Schuster
2013-06-12 6:58 ` Jan Pohanka
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=1881DF6C-D479-4B94-8987-7B378582EF34@gmail.com \
--to=schuster.wolfgang@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).