[pdftex] pdftex and metapost

Laurent Perrinet laurent.perrinet at laposte.net
Mon Aug 19 17:24:56 CEST 2002


Hi pdfTex list!
I'm using on a daily basis pdfTex to write scientific documents (and 
others!) and I'm very happy with this.
I was particularly happy to be able to use Metapost graphics, and 
everything went fine until I began to write in French (this is I guess 
the origin of the trouble...)

the tex file:

\documentclass{article}
\usepackage[french,english]{babel}
\usepackage[pdftex]{graphicx}
\pdfcompresslevel=9
\usepackage{times}
\usepackage[colorlinks, bookmarks, draft=false]{hyperref}
%%%%%%%%%%%% Her begynner selve dokumentet %%%%%%%%%%%%%%%
\begin{document}
\begin{figure}
%\begin{otherlanguage}{english}{
\includegraphics{fig_archi}%}\end{otherlanguage}
\end{figure}
\end{document}

Here is the "best of" my log file

... begin:

This is pdfTeX, Version 3.14159-1.00c-pretest-20020426 (MiKTeX 2.2) 
(preloaded format=latex 2000.11.28)  19 AUG 2002 09:33

... the babylonian stuff stuff

(C:\dev\tex\texmf\tex\generic\Babel\babel.sty
Package: babel 2001/03/01 v3.7h The Babel package

(C:\dev\tex\texmf\tex\generic\Babel\frenchb.ldf
Language: french 2001/09/09 v1.5g French support from the babel system

(C:\dev\tex\texmf\tex\generic\Babel\babel.def
File: babel.def 2001/03/01 v3.7h Babel common definitions
\babel at savecnt=\count88
\U at D=\dimen104
)
Package babel Info: Making : an active character on input line 199.
Package babel Info: Making ; an active character on input line 200.
Package babel Info: Making ! an active character on input line 201.
Package babel Info: Making ? an active character on input line 202.

*************************************
* Local config file frenchb.cfg used
*
(C:\dev\tex\texmf\tex\generic\Babel\frenchb.cfg))
(C:\dev\tex\texmf\tex\generic\Babel\english.ldf
Language: english 2001/04/15 v3.3l English support from the babel system
\l at canadian = a dialect from \language\l at english
))
(C:\dev\tex\texmf\tex\latex\base\latexsym.sty
Package: latexsym 1998/08/17 v2.2e Standard LaTeX package (lasy symbols)
\symlasy=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `lasy' in version `bold'
(Font)                  U/lasy/m/n --> U/lasy/b/n on input line 42.
)
(C:\dev\tex\texmf\tex\latex\base\inputenc.sty
Package: inputenc 2001/07/10 v0.99a Input encoding file

(C:\dev\tex\texmf\tex\latex\base\ansinew.def
File: ansinew.def 2001/07/10 v0.99a Input encoding file
))


... the graphix stuff

(C:\dev\tex\texmf\tex\latex\graphics\graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(C:\dev\tex\texmf\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV at toks@=\toks22
)
(C:\dev\tex\texmf\tex\latex\graphics\graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(C:\dev\tex\texmf\tex\latex\graphics\trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(C:\dev\tex\texmf\tex\latex\00miktex\graphics.cfg)
Package graphics Info: Driver file: pdftex.def on input line 80.

(C:\dev\tex\texmf\tex\latex\graphics\pdftex.def
File: pdftex.def 2001/11/29 v0.03i graphics/color for pdftex
\Gread at gobject=\count99
))
\Gin at req@height=\dimen113
\Gin at req@width=\dimen114
)

... the error

File: ./figues/fig_archi.mps Graphic file (type mps)
  [MP to PDF ./figues/fig_archi.mps] (./figues/fig_archi.mps
! Undefined control sequence.
\handleMPsequence ...le \space \MPxoffset
                                           \space \MPyoffset \space cm...
l.1744 showpage

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
\handleMPsequence ...et \space \MPyoffset
                                           \space cm}\lower \MPyshift ...
l.1744 showpage

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
\handleMPsequence ... cm}\lower \MPyshift
                                           \box \scratchbox \PDFcode {...
l.1744 showpage

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Missing number, treated as zero.
<to be read again>
                    \box
l.1744 showpage

A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again>
                    \box
l.1744 showpage

Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Undefined control sequence.
\handleMPsequence ...scratchbox \MPheight
                                           \wd \scratchbox \MPwidth \d...
l.1744 showpage

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
\handleMPsequence ...\scratchbox \MPwidth
                                           \dp \scratchbox \!!zeropoin...
l.1744 showpage

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

)

...

_________________________________________________

I tried many tricks (undefining locally french to english), but with no 
success...


Any solutions??

Laurent




-- 
Laurent Perrinet --------------- http://laurent.perrinet.free.fr/
  ONERA/DTIM - B.324, 2 Av. E. Belin, BP 4025, F-31055 Toulouse
http://www.cert.fr/fr/dtim/m2sn-vision.html 0562252525 poste 2278






More information about the pdftex mailing list