* extra }
@ 2000-10-01 19:21 Johannes Hüsing
2000-10-01 21:38 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Hüsing @ 2000-10-01 19:21 UTC (permalink / raw)
Hi,
I am trying to ape a presentation style with a content list on each page.
I am getting a nasty error on the second run, when the .tuo file is
parsed. The minimal example follows:
\setupoutput[pdftex]
\usemodule[pre-general]
\setuppapersize
[S6][S6]
\setuptexttexts
[margin]
[][\TopicList]
\def\TopicList
{\vbox
{\placelist
[chapter, section, subsection]
[alternative=none,
criterium=all,
command=\TopicLine]
}}
\def\TopicLine#1#2#3
{\limitatetext{\tfx #2}{\marginwidth}{\unknown}\par}
\starttext
\completecontent
\chapter[intro]{Introduction}
\section[intro.purpose]{Purpose}
\section[intro.purpose.blah]{Initial itch}
\stoptext
... and here is the log:
This is pdfeTeX, Version 3.14159-13d-2.1 (Web2C 7.3.1) (format=cont-en 2000.9.20
) 1 OCT 2000 19:50
entering extended mode
**&cont-en minimal
(minimal.tex[/var/lib/texmf/pdftex/config/pdftex.cfg]
ConTeXt ver: 2000.9.12 fmt: 2000.9.20 int: english mes: english
language : language en is active
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
bodyfont : 12pt rm is loaded
language : patterns 2-en-2 2-uk-2 2-de-2 2-fr-2 2-sp-2 2-nl-2 loaded
specials : tex,postscript,rokicki loaded
\openout2 = `minimal.tui'.
system : minimal.top loaded
(./minimal.top) (./minimal.tuo) (./minimal.tuo) (./minimal.tuo) (./minimal.tuo)
(./minimal.tuo) (./minimal.tuo) (./minimal.tuo) (./minimal.tuo) (./minimal.tuo)
(./minimal.tuo)
\openout0 = `mpgraph.mp'.
specials : tex,postscript,rokicki is reset
specials : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
systems : please update your pdfTeX binaries
specials : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex <unprotect 2> <unprotect 3>
<protect 3> <protect 2>)
specials : fdf loaded
<unprotect 2> <protect 2>)
specials : fdf,tpd loaded
system : macros of module pre-general loaded
(/usr/share/texmf/tex/context/base/s-pre-00.tex <unprotect 2> <protect 2>
<unprotect 2> <protect 2> <unprotect 2> <protect 2>) (./minimal.tuo)(./minimal.tuo)
systems : begin file minimal at line 24
title : - \headtext {\v!inhoud }
(./minimal.tuo) (./minimal.tuo
! Argument of \TopicLine has an extra }.
<inserted text>
\par
<to be read again>
}
<argument> ...latednumber [2::0:1:0:0:0:0:0::2]}}}
\linklisttoelement {\v!hoo...
\doifelse ...ngb {#2}\ifx \!!stringa \!!stringb #3
\else #4\fi
\makelijstelement ...0:0:0:0:0::2}{2}{\box 0}}{#2}
}
\doifdefinedelse ...@EA {\p!defined }\endcsname #2
\else #3\fi
...
l.8 ...1}{1}{Introduction}{2::0:1:0:0:0:0:0::2}{2}
? x
Any suggestions?
Thanks for any input
Johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: extra }
2000-10-01 19:21 extra } Johannes Hüsing
@ 2000-10-01 21:38 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-10-01 21:38 UTC (permalink / raw)
Cc: ntg-context
At 09:21 PM 10/1/00 +0200, Johannes Hüsing wrote:
>\def\TopicLine#1#2#3
> {\limitatetext{\tfx #2}{\marginwidth}{\unknown}\par}
So, after #3 you expect a space
>! Argument of \TopicLine has an extra }.
><inserted text>
> \par
and tex sees a \par which means troubles
\def\TopicLine#1#2#3%
{etc etc etc}
Btw, you don't need this method, since you can set the maxwidth:
\setuplist[name of list][maxwidth=.85\hsize]
will work, depending on what kind of list you ask (a .. g)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-10-01 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-01 19:21 extra } Johannes Hüsing
2000-10-01 21:38 ` Hans Hagen
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).