ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: tex error in curent beta
       [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>
  0 siblings, 2 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2015-10-15 19:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1597 bytes --]

> Jan Tosovsky <mailto:j.tosovsky@email.cz>
> 15. Oktober 2015 um 20:05
> Dear All,
>
> I've updated context, tried to regenerate my tex source and it doesn't
> compile any more. It was Ok in 0.79 (in March).
>
> I am getting tex error after these 3 lines (followed by a blank line and
> other lines):
>
> ...
> \definestructureconversionset[frontpart:pagenumber][][romannumerals]
> \definestructureconversionset[bodypart:pagenumber] [][numbers]
> \definestructureconversionset[backpart:pagenumber] [][numbers]
>
> \startsectionblockenvironment[frontpart]
> \setupuserpagenumber[numberconversion=romannumerals]
> \stopsectionblockenvironment
> ...
>
> tex error > tex error on line 22 in file D:/source.tex: ! Missing {
> inserted
>
> <to be read again>
> \edef
> \currentlistsymbol ->\edef
> \p_symbol {\listparameter \c!symbol
> }\doifelseins...
> \14>:113>:abc ...numbercommand \currentlistsymbol
> }\else \setbox
> \b_strc_lis...
> \strc_lists_apply_renderingsetup ...nderingsetup }
> \relax \the
> \t_lists_every...
> \strc_lists_entry_process ...i \fi \fi \endcsname
> \dostoptagged
> \listextrapa...
> \strclistsentryprocess ...trc_lists_entry_process
> \clf_poplist
> ...
> l.150
>
> Any idea how to fix this?
Without a minimal example I can only guess.

What I can take from the error message is that you have a problem with 
the list mechanism.

To try fixing the problem comment first a list settings where you apply your
own commands (e.g. the pagecommand key) and when this doesn't help
(don't forget to delete the tuc-file) you can comment the complete
\setuplist setting.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2955 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
  2015-10-15 19:49 ` tex error in curent beta Wolfgang Schuster
@ 2015-10-15 20:33   ` Jan Tosovsky
       [not found]   ` <56200e5c.ea6ab40a.ed6b6.ffffa027SMTPIN_ADDED_BROKEN@mx.google.com>
  1 sibling, 0 replies; 10+ messages in thread
From: Jan Tosovsky @ 2015-10-15 20:33 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Hi Wolfgang, thanks,

On 2015-10-15 Wolfgang Schuster wrote:
> On 2015-10-15 Jan Tosovsky wrote:
> >
> > I am getting tex error > tex error on line 22 in file D:/source.tex: !
> > Missing { inserted
> >
> >	<to be read again>
> >	\edef
> >	\currentlistsymbol ->\edef
> >	\p_symbol {\listparameter \c!symbol
> >	}\doifelseins...
> >	\14>:113>:abc ...numbercommand \currentlistsymbol
> 
>
> What I can take from the error message is that you have a problem with
> the list mechanism.

you are right, I've created this MWE (but not sure if it still makes sense).


\setupcombinedlist[chapter][
   before=,
   distance=0.5cm,
   width=-0.5cm,
   margin=2cm,   
   numbercommand={\simplealignedbox{\listparameter{width}}{flushright}},
   pageconversionset=pagenumber,
]

\starttext
\startfrontmatter
\title{TOC}
\placecontent
\chapter{Preface}
\stopfrontmatter
\stoptext

That list definition creates right aligned roman chapter numbers in the ToC,
see
http://www.ntg.nl/pipermail/ntg-context/2013/076154.html

Jan

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
       [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>
  0 siblings, 2 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2015-10-15 20:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 765 bytes --]

> Jan Tosovsky <mailto:j.tosovsky@email.cz>
> 15. Oktober 2015 um 22:33
> Hi Wolfgang, thanks,
>
> you are right, I've created this MWE (but not sure if it still makes 
> sense).
>
>
> \setupcombinedlist[chapter][
> before=,
> distance=0.5cm,
> width=-0.5cm,
> margin=2cm,
> numbercommand={\simplealignedbox{\listparameter{width}}{flushright}},
> pageconversionset=pagenumber,
> ]
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,
     ]

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1960 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
  2015-10-15 20:57     ` Wolfgang Schuster
@ 2015-10-16 17:31       ` Jan Tosovsky
       [not found]       ` <010801d10838$6f8234d0$4e869e70$@tosovsky@email.cz>
  1 sibling, 0 replies; 10+ messages in thread
From: Jan Tosovsky @ 2015-10-16 17:31 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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

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.

Jan

[-- Attachment #2: toc.png --]
[-- Type: image/png, Size: 1762 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
       [not found]       ` <010801d10838$6f8234d0$4e869e70$@tosovsky@email.cz>
@ 2015-10-22 19:25         ` Jan Tosovsky
       [not found]         ` <562938f8.8dc6b40a.df74b.ffff8d6cSMTPIN_ADDED_BROKEN@mx.google.com>
       [not found]         ` <01dd01d10cff$6cfd04d0$46f70e70$@tosovsky@email.cz>
  2 siblings, 0 replies; 10+ messages in thread
From: Jan Tosovsky @ 2015-10-22 19:25 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
       [not found]         ` <562938f8.8dc6b40a.df74b.ffff8d6cSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2015-10-23 16:49           ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2015-10-23 16:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 931 bytes --]

> Jan Tosovsky <mailto:j.tosovsky@email.cz>
> 22. Oktober 2015 um 21:25
>
> 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).
Can you make a minimal example for and explain what you expect.

You should also rethink the negative value for the width key.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1963 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
       [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>
  1 sibling, 0 replies; 10+ messages in thread
From: Jan Tosovsky @ 2015-10-24 19:34 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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

On 2015-10-22 Jan Tosovsky wrote:
> 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{wi
> dth}}{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).
> 

More complete example for experiments:
(I am not experienced in ConTeXt, most of it was suggested here in the forum, there are most likely other ways how to accomplish the desired output - see attachments).


\mainlanguage[cs]

\setuppapersize[B5]

\setuplayout[header=0cm, footer=1cm]
\setuppagenumbering[alternative=doublesided, location={footer, right}, style=italic]

% page numbering
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\definestructureconversionset[backpart:pagenumber] [][numbers]

\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
\setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

% fonts
\definefontfamily[palatino][rm][Palatino Linotype][features={default, quality}]
\definefontfeature[f:superscript][sups=yes]
\setupbodyfont[palatino, 10pt]

\setuplabeltext[cs][chapter=KAPITOLA  ]

\setupindenting[medium, yes]

\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,
]

% this alignment has no effect in 0.81
\define[1]\ChapterListNumbercommand
   {\simplealignedbox{\listparameter{width}}{flushright}{#1}}

\setupcombinedlist[content][list=chapter, alternative=c]
\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{Introduction}
\chapter{Workflow}
\chapter{Input}
\chapter{Output}
\stopbodymatter
\startbackmatter
\chapter{Index}
\stopbackmatter
\stoptext


[-- Attachment #2: toc_current.png --]
[-- Type: image/png, Size: 12654 bytes --]

[-- Attachment #3: toc_desired.png --]
[-- Type: image/png, Size: 7500 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
       [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
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2015-10-26 10:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2880 bytes --]

> Jan Tosovsky <mailto:j.tosovsky@email.cz>
> 24. Oktober 2015 um 21:34
>
> More complete example for experiments:
> (I am not experienced in ConTeXt, most of it was suggested here in the 
> forum, there are most likely other ways how to accomplish the desired 
> output - see attachments).
>
>
> \mainlanguage[cs]
>
> \setuppapersize[B5]
>
> \setuplayout[header=0cm, footer=1cm]
> \setuppagenumbering[alternative=doublesided, location={footer, right}, 
> style=italic]
>
> % page numbering
> \definestructureconversionset[frontpart:pagenumber][][romannumerals]
> \definestructureconversionset[bodypart:pagenumber] [][numbers]
> \definestructureconversionset[backpart:pagenumber] [][numbers]
>
> \startsectionblockenvironment[frontpart]
> \setupuserpagenumber[numberconversion=romannumerals]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[bodypart]
> \setupuserpagenumber[numberconversion=numbers]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[backpart]
> \setupuserpagenumber[numberconversion=numbers]
> \stopsectionblockenvironment
>
> % fonts
> \definefontfamily[palatino][rm][Palatino Linotype][features={default, 
> quality}]
> \definefontfeature[f:superscript][sups=yes]
> \setupbodyfont[palatino, 10pt]
>
> \setuplabeltext[cs][chapter=KAPITOLA ]
>
> \setupindenting[medium, yes]
>
> \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,
> ]
>
> % this alignment has no effect in 0.81
> \define[1]\ChapterListNumbercommand
> {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
>
> \setupcombinedlist[content][list=chapter, alternative=c]
> \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{Introduction}
> \chapter{Workflow}
> \chapter{Input}
> \chapter{Output}
> \stopbodymatter
> \startbackmatter
> \chapter{Index}
> \stopbackmatter
> \stoptext
Try to make shorter examples by removing layout and font changes when 
when they are not necessary.

\define[1]\ChapterListNumbercommand
    {\offset[x=-2cm,width=0pt]{\simplealignedbox{1.5cm}{flushright}{#1}}}

\setuplist
   [chapter]
   [distance=0cm,
    width=0cm,
    margin=2cm,
    numbercommand=\ChapterListNumbercommand]

\starttext

\startfrontmatter
     \completecontent
     \chapter{Preface}
\stopfrontmatter

\startbodymatter
     \chapter{Introduction}
     \chapter{Workflow}
     \chapter{Input}
     \chapter{Output}
\stopbodymatter

\startbackmatter
     \chapter{Index}
\stopbackmatter

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 4243 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: tex error in curent beta
  2015-10-26 10:34             ` Wolfgang Schuster
@ 2015-10-26 18:55               ` Jan Tosovsky
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Tosovsky @ 2015-10-26 18:55 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Hi Wolfgang,

On 2015-10-26 Wolfgang Schuster wrote:
> 
> Try to make shorter examples by removing layout and font changes when
> when they are not necessary.
> 
> \define[1]\ChapterListNumbercommand
>    {\offset[x=-2cm,width=0pt]{\simplealignedbox{1.5cm}{flushright}{#1}}}
> 
> \setuplist
>   [chapter]
>   [distance=0cm,
>    width=0cm,
>    margin=2cm,
>    numbercommand=\ChapterListNumbercommand]
> 
> \starttext
> 
> \startfrontmatter
>     \completecontent
>     \chapter{Preface}
> \stopfrontmatter
> 
> \startbodymatter
>     \chapter{Introduction}
>     \chapter{Workflow}
>     \chapter{Input}
>     \chapter{Output}
> \stopbodymatter
> 
> \startbackmatter
>     \chapter{Index}
> \stopbackmatter
> 
> \stoptext
> 

thanks a lot! I was loosing my hope :-)

Your solution is much cleaner. Incorporated.

Jan

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* tex error in curent beta
@ 2015-10-15 18:05 Jan Tosovsky
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Tosovsky @ 2015-10-15 18:05 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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

Dear All,

I've updated context, tried to regenerate my tex source and it doesn't
compile any more. It was Ok in 0.79 (in March).

I am getting tex error after these 3 lines (followed by a blank line and
other lines):
 
...
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\definestructureconversionset[backpart:pagenumber] [][numbers]

\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\stopsectionblockenvironment
...

tex error       > tex error on line 22 in file D:/source.tex: ! Missing {
inserted

<to be read again>
\edef
\currentlistsymbol ->\edef
                           \p_symbol {\listparameter \c!symbol
}\doifelseins...
\14>:113>:abc ...numbercommand \currentlistsymbol
                                                  }\else \setbox
\b_strc_lis...
\strc_lists_apply_renderingsetup ...nderingsetup }
                                                  \relax \the
\t_lists_every...
\strc_lists_entry_process ...i \fi \fi \endcsname
                                                  \dostoptagged
\listextrapa...
\strclistsentryprocess ...trc_lists_entry_process
                                                  \clf_poplist
...
l.150

Any idea how to fix this?

Thanks, Jan

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 2518 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-10-26 18:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <561feba6.48bab40a.8b398.ffffa097SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-15 19:49 ` tex error in curent beta 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
     [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

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