Re: Support for ConTeXt
Aditya Mahajan <adityam <at> umich.edu>
2006-10-15 15:41:03 GMT
On Sat, 14 Oct 2006, Aditya Mahajan wrote:
> Hi Till,
>
> I tried the new pgf version with ConTeXt. The file t-pgflph.tex is not
> found, and according to the instructions on the forum, I simply commented
> that line from t-tikz.tex. Even with that change, I can not get pgf to work
> with the latest beta of ConTeXt. This is the example that I tried.
>
> \usemodule[tikz]
> \starttext
> We are working on
> \starttikzpicture
> \draw (-1.5,0) -- (1.5,0);
> \draw (0,-1.5) -- (0,1.5);
> \stoptikzpicture.
> \stoptext
>
> I get an error
>
> ! Undefined control sequence.
> \colorlet ... {#2}\expandafter \in <at> \expandafter!
> \expandafter
> {\pgf <at> marshal...
> l.331 \colorlet{tikz <at> axis <at> top}{gray}
This looks like tex was trying to find \expandafter! as a control
sequence, which means that somehow ! is an active character. I added
\catcode`\!=12
in the begining of t-tikz.tex and now get the error
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber
=\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
The complete log file is attached.
Aditya
This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5) (format=cont-en 2006.10.13) 15
OCT 2006 11:39
entering extended mode
\write18 enabled.
(e:\isoimage\usr\local\context\tex\texmf-local/web2c/natural.tcx)
**pgftest.tex \emergencyend
(./pgftest.tex
ConTeXt ver: 2006.10.13 10:38 MK II fmt: 2006.10.13 int: english/english
language : language en is active
system : cont-new loaded
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(./cont-new.mkii))
system : cont-old loaded
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/user/cont-sys.tex)
bodyfont : 12pt rm is loaded
language : patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:3 fr->
texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3 de->e
c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi:texna
nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl->ec:e
c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk->il2:i
l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 en->ec:e
c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 da->ec:e
c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 deo->ec:ec-
>30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 ro->ec:ec->34
->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded
specials : tex,postscript,rokicki loaded
\openout3 = `pgftest.tui'.
system : pgftest.top loaded
(./pgftest.top
specials : loading definition file tpd
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.tex
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.mkii))
specials : fdf loaded
)
specials : fdf,tpd loaded
)
\openout0 = `pgftest-mpgraph.mp'.
\openout0 = `mpgraph.mp'.
systems : system commands are enabled
system : module tikz loaded
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/frontendlayer/
t-tikz.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/xkeyval/xkeyval.te
x 2005/11/25 v2.5e key=value parser (HA)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/xkeyval/xkvtxhdr.t
ex 2005/02/22 v1.1 xkeyval TeX header (HA))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/xkeyval/keyval.tex
))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gf.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfcor.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/systemlayer/t-
pgfsys.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/utilities/t-pg
frcs.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/utilities/t-pg
fmod.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/utilities/pgfr
cs.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/utilities/pgf-
latex-emulation.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/systemlayer/pg
fsys.code.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/systemlayer/pg
f.cfg)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/systemlayer/pg
fsys-pdftex.def
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/systemlayer/pg
fsys-common-pdf.def)))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/systemlayer/pg
fsyssoftpath.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/systemlayer/pg
fsysprotocol.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
core.code.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
coremath.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corepoints.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corepathconstruct.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corepathusage.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corescopes.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
coregraphicstate.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
coretransformations.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corequick.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
coreobjects.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corepathprocessing.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
corearrows.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
coreshade.code.tex)))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfbsh.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
baseshapes.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfbpl.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
baseplot.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfbim.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
baseimage.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfbla.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
baselayers.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfbsn.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
basesnakes.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/basiclayer/t-p
gfbpt.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/basiclayer/pgf
basepatterns.code.tex)))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/utilities/t-pg
ffor.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/context/pgf/utilities/t-pg
frcs.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/utilities/pgff
or.code.tex))
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/frontendlayer/
tikz.code.tex
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/libraries/pgfl
ibraryplothandlers.code.tex)
(e:\isoimage\usr\local\context\tex\texmf-project/tex/generic/pgf/libraries/pgfl
ibrarytikztopaths.code.tex)))
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
? r
OK, entering \nonstopmode...
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...pass }\jobname \empty \relax \relax
\stopnointerference
\firstofoneargument #1->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readsysfile ->\newcounter \readlevel
\doreadfile \empty
\savesortdefinitions ...ng }}\egroup \readsysfile
{\f!sortprefix def}\donoth...
<inserted text> \savesortdefinitions
\doregistersynonymlanguage {\v!abbrevia...
\savesortkeys ->\the \everysavesortkeys
\global \everysavesortkeys \emptytoks
...
l.2 \starttext
(That was another \errmessage.)
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/sort-def.tex)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readsysfile ->\newcounter \readlevel
\doreadfile \empty
<argument> ...eviation \s!language }]\readsysfile
{\f!sortprefix lan}\donoth...
\firstofoneargument #1->#1
\doregistersynonymlanguage ...?sm #1\s!language }}
\immediatewriteutility {s ...
...
l.2 \starttext
(That was another \errmessage.)
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/sort-lan.tex)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
\checkpositions ...}\jobname \empty \relax \relax
\global \let \checkpositio...
<inserted text> ... \savesortkeys \checkpositions
\checklayout \checkcurrent...
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readjobfile ->\newcounter \readlevel
\doreadfile \f!currentpath
\doutilities ...erybeforeutilityread \readjobfile
{#2.\f!outputextension }\d...
<argument> ...ces}{\jobname }\empty \relax \relax
\global \settrue \jobrefer...
\firstoftwoarguments #1#2->#1
...
l.2 \starttext
(That was another \errmessage.)
(./pgftest.tuo)
systems : begin file pgftest at line 2
! No room for a new \count .
\ch <at> ck ...\else \errmessage {No room for a new #3}
\fi
\alloc <at> ...\advance \count 1#1by\ <at> ne \ch <at> ck #1#4#2
\allocationnumber =\count ...
\readsysfile ->\newcounter \readlevel
\doreadfile \empty
<argument> \startreadingfile \readsysfile
{pdfr-\getvalue \pdffontfileresour...
\firstofoneargument #1->#1
\dododoincludepdffontresource ...resource \empty }
\egroup
...
l.7 \stoptikzpicture
.
(That was another \errmessage.)
(e:\isoimage\usr\local\context\tex\texmf-local/tex/context/base/pdfr-ec.tex)
Overfull \hbox (3.91661pt too wide) detected at line 7
[]
\hbox(0.0+0.0)x0.0
.\hbox(0.0+0.0)x3.91661
..\glue 3.91661 plus 1.9583 minus 1.30554
fonts : resetting map file list
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/origina
l-empty.map}
fonts : using map file: texnansi-public-lm
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/texnans
i-public-lm.map}
fonts : using map file: original-base
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/origina
l-base.map}
fonts : using map file: ec-public-lm
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/ec-publ
ic-lm.map}
fonts : using map file: ec-base
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/ec-base
.map}
fonts : using map file: original-ams-base
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/origina
l-ams-base.map}
fonts : using map file: original-ams-euler
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/origina
l-ams-euler.map}
fonts : using map file: original-public-lm
{e:\isoimage\usr\local\context\tex\texmf-local/fonts/map/pdftex/context/origina
l-public-lm.map} [1.1
\openout8 = `.tex'.
]
systems : end file pgftest at line 8
)
Here is how much of TeX's memory you used:
3806 strings out of 219672
72642 string characters out of 1278101
2651878 words of memory out of 4084670
43065 multiletter control sequences out of 10000+100000
74893 words of font info for 37 fonts, out of 1000000 for 2000
416 hyphenation exceptions out of 8191
47i,18n,51p,344b,560s stack positions out of 10000i,500n,6000p,200000b,40000s
{e:\isoimage\usr\local\context\tex\texmf/fonts/enc/dvips/lm/lm-ec.enc}<e:\iso
image\usr\local\context\tex\texmf/fonts/type1/public/lm/lmr12.pfb>
Output written on pgftest.pdf (1 page, 25053 bytes).
PDF statistics:
12 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 131072)
5 words of extra memory for PDF output out of 10000 (max. 10000000)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users