#23 Generation of labels is too limited.

open
nobody
None
5
2011-12-05
2011-12-05
Paul Huygen
No

In the current nuweb versions, the number of labels that can be generated is too limited when scrap arguments are used. For instance, for page 1 of a docment older versions of nuweb could generate labels 1a .. 1z, 1a1 .. 1z1. The current versions seems to generate labels 1a to 1z only. When a page contains more that 27 scrap definitions, this results in invalid LaTeX code. For instance, the following nuweb code is processed correctly in nuweb 1.01 (generating labels 1a up to 1g1), but incorrectly in nuweb 1.57. The resulting tex file generates LaTeX errors. The corresponding pdf file that is attached to this message.

Thanks,

Paul Huygen

Discussion

  • Paul Huygen

    Paul Huygen - 2011-12-05

    pdf generated with nuweb 1.57

     
  • Paul Huygen

    Paul Huygen - 2011-12-05

    I forgot to list the nuiweb file that illustrates the problem. Here it follows:

    ----------------------- test.w-------------
    \documentclass{article}

    \begin{document}
    @o test.tst @{@%
    @< a scrap @(aap@) @>
    @< a scrap @(noot@) @>
    @< a scrap @(mies@) @>
    @< a scrap @(wim@) @>
    @< a scrap @(zus@) @>
    @< a scrap @(jet@) @>
    @< a scrap @(teun@) @>
    @< a scrap @(vuur@) @>
    @< a scrap @(gijs@) @>
    @< a scrap @(lam@) @>
    @< a scrap @(kees@) @>
    @< a scrap @(bok@) @>
    @< a scrap @(wei-de@) @>
    @< a scrap @(does@) @>
    @< a scrap @(hok@) @>
    @< a scrap @(duif@) @>
    @< a scrap @(scha-pen@) @>
    @< a scrap @(maan@) @>
    @< a scrap @(zaag@) @>
    @< a scrap @(fien@) @>
    @< a scrap @(vier@) @>
    @< a scrap @(koek@) @>
    @< a scrap @(schoen@) @>
    @< a scrap @(dak@) @>
    @< a scrap @(jan@) @>
    @< a scrap @(bel@) @>
    @< a scrap @(hek@) @>
    @< a scrap @(ring@) @>
    @< a scrap @(wim@) @>
    @< a scrap @(hut@) @>
    @< a scrap @(juf@) @>
    @| @}

    @d a scrap @{@%
    Scrap expands with variable @1
    @| @}

    \end{document}

     
  • Simon Wright

    Simon Wright - 2011-12-05

    Paul,

    In bug 2965157 I asked why these scrap arguments are labelled anyway; I found something on the nuweb-users mailing list which seemed to indicate that it was deliberate, but no indication of the intended use case. How would you feel if they were removed?

     
  • Paul Huygen

    Paul Huygen - 2011-12-05

    Simon wrote:
    > In bug 2965157 I asked why these scrap arguments are labelled anyway; I
    > found something on the nuweb-users mailing list which seemed to indicate
    > that it was deliberate, but no indication of the intended use case. How
    > would you feel if they were removed?

    I think that's a perfect solution. I have no idea about the purpose of the scrap argument labels too. And they look ugly in the texts.

    Thanks.

    Paul Huygen

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks