* latest Beta
@ 2003-03-20 12:48 Guy Worthington
2003-03-20 16:46 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Guy Worthington @ 2003-03-20 12:48 UTC (permalink / raw)
ConTeXt is barfing on my code :
-----
%output=pdf
%% chapter head layout
\setupcolors[state=start]
\setuplist[section]
[style=boldslanted,
align=right,
interaction=all,
symbol=1,
width=1em,
pagenumber=no,
before=,
after=]
\setuphead[chapter]
[header=empty,
numberstyle=ChapterTitleNumberFont,
textstyle=ChapterTitleTextFont
alternative=command,
command=\ContentsHead,
page=right,
after={\blank[2*big]}]
\definefont[ChapterTitleTextFont][Serif at 24.9pt]
\definefont[ChapterTitleNumberFont][SerifBold at 40pt]
\def\ContentsHead#1#2%
{\setupframed [frame=off]%
\framed [width=\hsize,offset=overlay]
{\placesidebyside
{\doifelsenothing{#1}
{\framed [width=.6\hsize]{}} % dummy
{\framed [width=.6\hsize,offset=1em,strut=no,align=right,
background=screen]
{\vi In this chapter: \blank
\placelist[section][criterium=chapter]}}}
{\framed [width=.4\hsize,strut=no,align=left]
%% Typeset Chapter Number
{\hbox{\vbox to 24.9pt{% height ChapterTitleTextFont
\vss
#1}}}
\vfilll}
}%
%% Typeset Chapter Title
\llap{\lower24.9pt\hbox{#2\hskip0.5em}}}
\showmakeup
\starttext
\chapter {Berend}
\section {Botje}
\section {Botje}
\section {Botje}
\stoptext
-----
Attached is the log:
This is pdfeTeXk, Version 3.14159-1.10a-2.1 (Web2c 7.4.5) (format=cont-en 2003.3.20) 20 MAR 2003 16:54
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**&cont-en tryOreillyHead.ctx
(./tryOreillyHead.ctx{c:/Local/TeX/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.3.17 fmt: 2003.3.20 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(c:/Local/TeX/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
)
system : cont-old loaded
(c:/Local/TeX/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(c:/Local/TeX/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(c:/Local/TeX/texmf-local/tex/context/user/cont-sys.tex)
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2 8:2-nl-2
loaded
specials : tex,postscript,rokicki loaded
\openout2 = `tryOreillyHead.tui'.
system : tryOreillyHead.top loaded
(./tryOreillyHead.top
specials : loading definition file tpd
(c:/Local/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(c:/Local/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
<unprotect 4>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 5> <protect 5> <protect 4> <protect 3>)
specials : fdf loaded
<unprotect 3> <protect 3>)
specials : fdf,tpd loaded
)
\openout0 = `tryOreillyHead-mpgraph.mp'.
\openout0 = `tryOreillyHead-mprun.mp'.
\openout0 = `mpgraph.mp'.
\openout0 = `mprun.mp'.
pdftex : using map file: original-context-symbol.map
pdftex : using map file: pl0-ams-cmr.map
pdftex : using map file: original-vogel-symbol.map
color : system rgb is global activated
check : missing or ungrouped '=' after 'textstyle' in line 21 (@@kocha
pter)
systems : begin file tryOreillyHead at line 46
! Extra \else.
\dodododosomekop ...section {#1}{#3}{#4}\fi \else
\getvalue {\??ko #1\c!tuss...
l.47 \chapter {Berend}
? exit
Here is how much of TeX's memory you used:
760 strings out of 67881
11732 string characters out of 747287
4407533 words of memory out of 5520295
30740 multiletter control sequences out of 10000+50000
10582 words of font info for 35 fonts, out of 500000 for 1000
56 hyphenation exceptions out of 1000
31i,8n,26p,188b,301s stack positions out of 5000i,500n,5000p,200000b,40000s
0 PDF objects out of 300000
0 named destinations out of 131072
0 words of extra memory for PDF output out of 65536
No pages of output.
----
My attempt at trying at tracing the error have been futile.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: latest Beta
2003-03-20 12:48 latest Beta Guy Worthington
@ 2003-03-20 16:46 ` Hans Hagen
2003-03-21 0:25 ` Guy Worthington
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2003-03-20 16:46 UTC (permalink / raw)
At 08:48 PM 3/20/2003 +0800, you wrote:
>color : system rgb is global activated
>check : missing or ungrouped '=' after 'textstyle' in line 21
>(@@kocha
>pter)
how about this error?
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: latest Beta
2003-03-20 16:46 ` Hans Hagen
@ 2003-03-21 0:25 ` Guy Worthington
2003-03-21 7:37 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Guy Worthington @ 2003-03-21 0:25 UTC (permalink / raw)
I wrote:
Hans Hagen wrote:
>>color : system rgb is global activated
>> check : missing or ungrouped '=' after 'textstyle' in line
>> 21 (@@kocha
>>pter)
>how about this error?
Sorry, cut and paste error (I added the comma on line 21). The
underlying error is still there
This is pdfeTeXk, Version 3.14159-1.10a-2.1 (Web2c 7.4.5) (format=cont-en 2003.3.20) 21 MAR 2003 08:19
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**&cont-en tryoreillyhead.ctx
(./tryoreillyhead.ctx{c:/Local/TeX/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.3.17 fmt: 2003.3.20 int: english mes: english
language : language en is active
<protectionstate 0>
system : cont-new loaded
(c:/Local/TeX/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
)
system : cont-old loaded
(c:/Local/TeX/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(c:/Local/TeX/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(c:/Local/TeX/texmf-local/tex/context/user/cont-sys.tex)
bodyfont : 12pt rm is loaded
language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2 8:2-nl-2
loaded
specials : tex,postscript,rokicki loaded
\openout2 = `tryoreillyhead.tui'.
system : tryoreillyhead.top loaded
(./tryoreillyhead.top
specials : loading definition file tpd
(c:/Local/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(c:/Local/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
<unprotect 4>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 5> <protect 5> <protect 4> <protect 3>)
specials : fdf loaded
<unprotect 3> <protect 3>)
specials : fdf,tpd loaded
)
\openout0 = `tryoreillyhead-mpgraph.mp'.
\openout0 = `tryoreillyhead-mprun.mp'.
\openout0 = `mpgraph.mp'.
\openout0 = `mprun.mp'.
pdftex : using map file: original-context-symbol.map
pdftex : using map file: pl0-ams-cmr.map
pdftex : using map file: original-vogel-symbol.map
color : system rgb is global activated
systems : begin file tryoreillyhead at line 46
! Extra \else.
\dodododosomekop ...section {#1}{#3}{#4}\fi \else
\getvalue {\??ko #1\c!tuss...
l.47 \chapter {Berend}
? x
Here is how much of TeX's memory you used:
760 strings out of 67881
11732 string characters out of 747287
4407532 words of memory out of 5520294
30740 multiletter control sequences out of 10000+50000
10582 words of font info for 35 fonts, out of 500000 for 1000
56 hyphenation exceptions out of 1000
31i,8n,26p,188b,301s stack positions out of 5000i,500n,5000p,200000b,40000s
0 PDF objects out of 300000
0 named destinations out of 131072
0 words of extra memory for PDF output out of 65536
No pages of output.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: latest Beta
2003-03-21 0:25 ` Guy Worthington
@ 2003-03-21 7:37 ` Hans Hagen
2003-03-21 9:24 ` Patrick Gundlach
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2003-03-21 7:37 UTC (permalink / raw)
At 08:25 AM 3/21/2003 +0800, you wrote:
>Sorry, cut and paste error (I added the comma on line 21). The
>underlying error is still there
in that case i need a minimal file showing the problem
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: latest Beta
2003-03-21 7:37 ` Hans Hagen
@ 2003-03-21 9:24 ` Patrick Gundlach
2003-03-21 10:40 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Patrick Gundlach @ 2003-03-21 9:24 UTC (permalink / raw)
Hans Hagen <pragma@wxs.nl> writes:
Hello,
>>Sorry, cut and paste error (I added the comma on line 21). The
>>underlying error is still there
>
> in that case i need a minimal file showing the problem
I am not Guy Worthington, but I had a (non successful) look at it and
this is my testing file:
==================================================
\setuphead[chapter]
[alternative=command,
command=\ContentsHead]
\def\ContentsHead#1#2%
{\framed [width=\hsize]{\doifelsenothing{#1}{a}{b}}}
\starttext
\chapter {Berend}
\stoptext
==================================================
Error:
! Extra \else.
\dodododosomekop ...section {#1}{#3}{#4}\fi \else
\getvalue {\??ko #1\c!tuss...
l.10 \chapter {Berend}
There is even something weired when removing width=\hsize in the
framed macro:
! Undefined control sequence.
\exitloop ->\let \endofloop
\nodoloop
<argument> ...>\zeropoint \unskip \else \exitloop
\fi
\doloop ...@@arecurse \recursedepth \endcsname {#1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: latest Beta
2003-03-21 9:24 ` Patrick Gundlach
@ 2003-03-21 10:40 ` Hans Hagen
2003-03-21 12:30 ` Guy Worthington
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2003-03-21 10:40 UTC (permalink / raw)
At 10:24 AM 3/21/2003 +0100, Patrick Gundlach wrote:
>Hans Hagen <pragma@wxs.nl> writes:
>
>Hello,
>
> >>Sorry, cut and paste error (I added the comma on line 21). The
> >>underlying error is still there
> >
> > in that case i need a minimal file showing the problem
>
>I am not Guy Worthington, but I had a (non successful) look at it and
>this is my testing file:
>
>==================================================
>\setuphead[chapter]
> [alternative=command,
> command=\ContentsHead]
>
>\def\ContentsHead#1#2%
> {\framed [width=\hsize]{\doifelsenothing{#1}{a}{b}}}
>
>\starttext
>\chapter {Berend}
>\stoptext
>==================================================
Ah, this is beause \ContentsHead gets a truckload of rubish passed (add
\showargument{#1} and you see what i mean) and this confuses tex when
testing things (if..else in argument); even if i would solve this, other
*user) code could mess up things; this is why we have (inside a head):
\doifmodeelse{*sectionnumber}
or alternatively: \doiftextelse for content testing
(btw, sorry that i didn't yet answer your question about the numbering)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: latest Beta
2003-03-21 10:40 ` Hans Hagen
@ 2003-03-21 12:30 ` Guy Worthington
0 siblings, 0 replies; 7+ messages in thread
From: Guy Worthington @ 2003-03-21 12:30 UTC (permalink / raw)
Hans Hagen wrote:
> Patrick Gundlach wrote:
>> [a sensible and minimal test case]
>>==================================================
>>\setuphead[chapter]
>> [alternative=command,
>> command=\ContentsHead]
>>
>>\def\ContentsHead#1#2%
>> {\framed [width=\hsize]{\doifelsenothing{#1}{a}{b}}}
>>
>>\starttext
>>\chapter {Berend}
>>\stoptext
>>==================================================
> ...\ContentsHead gets a truckload of rubbish passed (add
> \showargument{#1} and you see what i mean) and this confuses tex
> when testing things (if..else in argument); even if i would solve
> this, other *user) code could mess up things; this is why we have
> (inside a head):
> \doifmodeelse{*sectionnumber}
Thanks Patrick for generating the minimal test case. (Hans I promise
I'll do my own homework from now on.)
Replacing \doifelsenothing{#1} with \doifmodeelse{*sectionnumber} does
cure the problem.
-----
\setuphead[chapter]
[alternative=command,
command=\ContentsHead]
\def\ContentsHead#1#2%
{\framed [width=\hsize]{\doifmodeelse{*sectionhead}{a}{b}}}
\starttext
\chapter {Berend}
\stoptext
-----
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-03-21 12:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-20 12:48 latest Beta Guy Worthington
2003-03-20 16:46 ` Hans Hagen
2003-03-21 0:25 ` Guy Worthington
2003-03-21 7:37 ` Hans Hagen
2003-03-21 9:24 ` Patrick Gundlach
2003-03-21 10:40 ` Hans Hagen
2003-03-21 12:30 ` Guy Worthington
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).