ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bug in \setuplist
Date: Thu, 15 Mar 2012 17:39:59 +0100	[thread overview]
Message-ID: <80B522EE-19B8-45F2-9DB4-9B790B141E3F@boede.nl> (raw)
In-Reply-To: <99715FCD-EF56-4BBF-A91F-2A552F499416@boede.nl>

Hi,

replying to my self:

I was not aware of this macro \convert{new_form}{number_to_be_converted} 

So in the meantime the commands which give the correct result become:

\unexpanded\def\Mychaptercommand#1#2#3{\blank CHAPTER~\convertnumber{R}{#1}.\blank{#2}.\hskip0.25\bodyfontsize}
\unexpanded\def\Mysectioncommand#1#2#3{#2, \hskip0.5\bodyfontsize #3.\hskip0.25\bodyfontsize}

used in 

\setuplist
	[chapter]
	[prefix=no,
	sectionnumber=no,
	headnumber=no,
   alternative=command,
   command=\Mychaptercommand]

\setuplist
	[section]
	[prefix=no,
	sectionnumber=no,
	headnumber=no,
	alternative=command,
	command=\Mysectioncommand]


Again thank you Wolfgang!

Willi	
On 15 Mar 2012, at 17:21, Willi Egger wrote:

> Hi Wolfgang,
> 
> thank you very much for solving my problem! -- Indeed this works well.
> 
> What I need to do is to convert the chapter number into a roman number.
> 
> CHAPTER XIV.
> 
> BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their
> tameness, 25. Bees intended for the comfort of man. Properties fitting
> them for domestication. Bees never attack when filled with honey, 26.
> ....
> 
> As you can see there are only chapter numbers given. All other entries in the TOC are not even headings in the text (!). So I will have to set these texts up with \writetolist. The texts in the TOC never match any text and are only indications on the subject dealt with on the given page. -- I seems that this was common in those days, I prepared earlier another book written in Dutch showing a similar setup.
> 
> Thank you for your kind help
> 
> Willi
> 
> 
> On 15 Mar 2012, at 13:59, Wolfgang Schuster wrote:
> 
>> \unexpanded\def\…#1#2#3{…}
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

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


      parent reply	other threads:[~2012-03-15 16:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 10:25 Willi Egger
2012-03-15 12:59 ` Wolfgang Schuster
2012-03-15 16:21   ` Willi Egger
2012-03-15 16:33     ` Wolfgang Schuster
2012-03-15 16:45       ` Willi Egger
2012-03-15 17:39         ` Wolfgang Schuster
2012-03-15 16:39     ` Willi Egger [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=80B522EE-19B8-45F2-9DB4-9B790B141E3F@boede.nl \
    --to=context@boede.nl \
    --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).