ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: tex error in curent beta
Date: Thu, 22 Oct 2015 21:25:35 +0200	[thread overview]
Message-ID: <29615.2421892204$1445541998@news.gmane.org> (raw)
In-Reply-To: <010801d10838$6f8234d0$4e869e70$@tosovsky@email.cz>

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

On 2015-10-16 Jan Tosovsky wrote:
> On 2015-10-15 Wolfgang Schuster wrote:
> >
> > Create a command and apply it to the numbercommand key.
> >
> > \define[1]\ChapterListNumbercommand
> >     {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
> >
> > \setuplist
> >     [chapter]
> >     [
> >         before=,
> >         distance=0.5cm,
> >         width=-0.5cm,
> >         margin=2cm,
> >         numbercommand=\ChapterListNumbercommand,
> >         pageconversionset=pagenumber,
> >     ]
> >
> 
> This compiles, thanks, but that number is not hanging on the right any
> more :-(
> 
> This is my more complete MWE:
> 
> \setuphead[chapter][
>    alternative=middle,
>    before={\blank[force,10mm]},
>    after={\blank[1*line]},
>    style=\bfc,
>    numberstyle={\kerncharacters[0.125]\bfa},
>    numbercommand=\groupedcommand{}{\blank[4mm]},
>    sectionstopper={.},
>    conversion=Romannumerals,
> ]
> 
> \define[1]\ChapterListNumbercommand
>     {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
> 
> \setupcombinedlist[chapter][
>    before=,
>    distance=0.5cm,
>    width=-0.5cm,
>    margin=2cm,
>    numbercommand=\ChapterListNumbercommand,
>    pageconversionset=pagenumber,
> ]
> 
> \starttext
> \startfrontmatter
> \title{TOC}
> \placecontent
> \chapter{Preface}
> \stopfrontmatter
> \startbodymatter
> \chapter{Chapter 1}
> \stopbodymatter
> \stoptext
> 
> Desired output is attached.
> 

If I recapitulate it, it is apparent regression as it worked in 0.79.

That error can be eliminated using a user defined command instead, but that
command doesn't seem to be executed as it doesn't produce desired effect.

\define[1]\ChapterListNumbercommand{\simplealignedbox{\listparameter{width}}
{flushright}{#1}}
...
numbercommand=\ChapterListNumbercommand,
...


Any idea how to fix this? Is that complex numbercommand unsupported any more
and should be replaced with something else? Or should I report it somewhere
and hope for fixing it?

It is not urgent now, I just want to avoid any potential problems introduced
with new tokenizer in place... (boundary conditions).

Thanks, Jan

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 3002 bytes --]

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

  parent reply	other threads:[~2015-10-22 19:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <561feba6.48bab40a.8b398.ffffa097SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-15 19:49 ` Wolfgang Schuster
2015-10-15 20:33   ` Jan Tosovsky
     [not found]   ` <56200e5c.ea6ab40a.ed6b6.ffffa027SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-15 20:57     ` Wolfgang Schuster
2015-10-16 17:31       ` Jan Tosovsky
     [not found]       ` <010801d10838$6f8234d0$4e869e70$@tosovsky@email.cz>
2015-10-22 19:25         ` Jan Tosovsky [this message]
     [not found]         ` <562938f8.8dc6b40a.df74b.ffff8d6cSMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-23 16:49           ` Wolfgang Schuster
     [not found]         ` <01dd01d10cff$6cfd04d0$46f70e70$@tosovsky@email.cz>
2015-10-24 19:34           ` Jan Tosovsky
     [not found]           ` <562bde34.0852b40a.75e99.4ee8SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-26 10:34             ` Wolfgang Schuster
2015-10-26 18:55               ` Jan Tosovsky
2015-10-15 18:05 Jan Tosovsky

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='29615.2421892204$1445541998@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).