ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Bug in \setuplist
Date: Thu, 15 Mar 2012 11:25:10 +0100	[thread overview]
Message-ID: <1783C536-0687-4F02-B51A-4314B0716F4D@boede.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

Hi Guru's

While typesetting an old book (original is from 1853) I need to tweak the table of contents. It looks as follows:

CHAPTER II.

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

I have attached a minimal example which works in Context version 2011.07.19 but not in 2012.01.25 nor in todays beta.
Compilation stops with an error complaining that the \MycommandA has an extra }.

Further there is the question how to get roman numerals when using the \Mycommand. - I realize, that all optional keys are ignored at the moment that the alternative=command is used.

Kind regards

Willi

[-- Attachment #2: test-placelist.pdf --]
[-- Type: application/pdf, Size: 7986 bytes --]

[-- Attachment #3: test-placelist.tex --]
[-- Type: application/octet-stream, Size: 1084 bytes --]

% Context file
% Filename: test-placelist.tex
% 
% 14-03-2012
% Copyright (c) 2012 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]


%\showframe
\define[3]\MycommandA{\blank CHAPTER~#1.\blank\WORD{#2}.\hskip0.25\bodyfontsize} % for chapters	
\define[3]\MycommandB{#2,\hskip0.5\bodyfontsize #3.\hskip0.25\bodyfontsize} % for (sub)section

\setuplist
	[chapter]
	[before=\blank,
	style=\WORD,
	prefix=no,
	sectionnumber=no,
	headnumber=no,
   alternative=command,
   command=\MycommandA]
\setuplist
	[section]
	[prefix=no,
	sectionnumber=no,
	headnumber=no,
	alternative=command,
	command=\MycommandB]
	
\starttext

\starttitle[title=Contents,list=Contents]
   \placelist[chapter,section][criterium=all]
\stoptitle


\startchapter[title=Introduction,list=Introduction]
   \startsection[title=Section A,list=Section A]
      sdasdad'klgag
   \stopsection
\stopchapter

\startchapter[title=Preface,list=Preface]
   \startsection[title=Section B,list=Section B]
      asfdsgbadfg
   \stopsection
\stopchapter

\stoptext

[-- Attachment #4: 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
___________________________________________________________________________________

             reply	other threads:[~2012-03-15 10:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 10:25 Willi Egger [this message]
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

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=1783C536-0687-4F02-B51A-4314B0716F4D@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).