ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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