[NTG-context] Error with alternative (interactive) TOC

Hans Hagen pragma at wxs.nl
Fri Oct 10 23:02:01 CEST 2014


On 10/10/2014 8:04 PM, Thangalin wrote:
> Thank you, Wolfgang.
>
> This fixes the issue. I worry, though, that these types of solutions
> are a bit brittle. If the interactive alternative definition changes,
> then the TOC code could break.
>
> If the definition in strc-lst.mkvi were to change to something like:
>
> % Perform a half-line adjustment in some cases
> \listparameter\c!indent\hbox \strc_lists_get_reference_attribute\v!all
> \strc_lists_get_destination_attribute {
>
> Then the usage would look like:
>
> \setuplist[section,][
>    alternative=interactive,
>    indent=\noindent,
>    before=\endgraf,
> ]
>
> That would leave a clue for maintenance purposes, making the overall
> code less brittle.
>
> Thoughts?

as soon as you need to mess at that level it's easier to just write a 
proper specific setup than to configure 20 something things for a 10 
line setup ...

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list