[fptex] configuring graphics.cfg for pdfeTeX

Prof Brian D Ripley ripley@stats.ox.ac.uk
Fri, 31 Aug 2001 14:43:27 +0100 (BST)


On 31 Aug 2001, Guy Worthington wrote:

> I'm having trouble outputing pdf images.  Below I've listed the steps
> I've used in the hope that someone can redirect me onto the correct
> road.

You seem to be using latex files under plain tex.  I would be surprised if
that is supported.  The macro it is objecting to is a latex one.

Try putting an empty graphics.cfg in the current directory.

>
> Step 1. Attached inline is a simple metapost file (polyline.mp) which
> I've simply processed with the following commands:
>
> C:\MyData\Scratch>mpost polyline
>
> To generate output file: polyline.1
>
> C:\MyData\Scratch>perl c:\Local\TeX\texmf\context\perltk\mptopdf.pl polyline.1
>
> To generate output file polyline-1.pdf
>
> %--------------------polyline.mp--------------------
> beginfig(1)
>   % draw axis
>   u:=1cm;
>   draw (0,0)--(10u,0);
>   draw (0,0)--(0,7u);
>   for i=0 step 5u until 7u:
>     draw (i,u/10)--(i,-u/10);
>     draw (u/10,i)--(-u/10,i);
>   endfor;
>   for i=0 step u until 7u:
>     draw (i,u/20)--(i,-u/20);
>     draw (u/20,i)--(-u/20,i);
>   endfor;
>   draw (8u,u/20)--(8u,-u/20);
>   draw (9u,u/20)--(9u,-u/20);
>   draw (10u,u/20)--(10u,-u/20);
>   label.bot(btex X-Axis etex, (5u,0));
>   label.lft(btex Y-Axis etex rotated 90, (0,3.5u));
>
>   % draw polyline 1
>   pair A,B,C,D,E,F,G,H,I,J,K;
>   A:=(2u,5u);
>   B:=(3u,6u);
>   C:=(2u,3u);
>   D:=(u,4u);
>   draw A--B--C--D;
>   dotlabel.lft (btex $P_1$ etex, A);
>   dotlabel.top (btex $P_2$ etex, B);
>   dotlabel.bot (btex $P_3$ etex, C);
>   dotlabel.bot (btex $P_4$ etex, D);
>
>   % draw polyline 2
>   E:=(9u,5u);
>   F:=(6u,6u);
>   G:=(8u,3u);
>   H:=(8u,u);
>   I:=(5u,5u);
>   J:=(8u,6u);
>   K:=(5u,2u);
>   draw E--F--G--H--I--J--K;
>   dotlabel.rt (btex $P_1$ etex, E);
>   dotlabel.top (btex $P_2$ etex, F);
>   dotlabel.rt (btex $P_3$ etex, G);
>   dotlabel.bot (btex $P_4$ etex, H);
>   dotlabel.lft (btex $P_5$ etex, I);
>   dotlabel.top (btex $P_6$ etex, J);
>   dotlabel.bot (btex $P_7$ etex, K);
>
> endfig;
> end
> %---------------end polyline.mp--------------------
>
> Step 2. Attached inline is a plain tex file which I've processed with
> the command :
>
> C:\MyData\Scratch>pdfeTeX trypdf
>
> This echos back the following information:
>
> This is pdfeTeX, Version 3.14159-pre-1.0-unofficial-20010704-2.1 (Web2c 7.3.3.1)
> entering extended mode
> (./trypdf.tex{c:/Local/TeX/texmf-var/pdftex/config/pdftex.cfg}
> (c:/Local/TeX/texmf/tex/plain/plgraph/graphicx.tex
> (c:/Local/TeX/texmf/tex/plain/plgraph/miniltx.tex)
> (c:/Local/TeX/texmf/tex/latex/graphics/graphicx.sty
> (c:/Local/TeX/texmf/tex/latex/graphics/keyval.sty)
> (c:/Local/TeX/texmf/tex/latex/graphics/graphics.sty
> (c:/Local/TeX/texmf/tex/latex/graphics/trig.sty)
> (c:/Local/TeX/texmf/tex/latex/texlive/graphics.cfg
> ! Undefined control sequence.
> l.33 \AtEndOfPackage
>                     {%
> ?
>
> %\pdfoutput=0
> %--------------------trypdf.tex--------------------
> \input graphicx
>
> \includegraphics{polyline-1.pdf}
>
> \bye
> %-----------------end trypdf.tex-------------------
>
> Could someone please advise me on how I should configure graphics.cfg?
>
> _______________________________________________
> fptex mailing list
> fptex@tug.org
> http://tug.org/mailman/listinfo/fptex
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595