I have a book that I've compiled in the past with latex/dvips and it
works fine. I'd like to simplify the workload with pdflatex. These
lines:
many members of the domain.
\begin{center}
\includegraphics{ch3.5} % bean to bean; many to one
\end{center}
Recall that for any function $\map{h}{V}{W}$,
trigger the error
(./ch3.5
Runaway argument?
! Paragraph ended before \handleMPsequence was complete.
<to be read again>
\par
l.18
I agree that the line 18 of ch3.5 (the output of a MetaPost run) is
indeed blank. However, I didn't put the blank there; MetaPost did.
Further, dvips seems to have no trouble with it.
I have the latest TeX Live, 2007. Does anyone recognize this issue?
Is this something I'm doing wrong, or a bug of some kind? I'd be very
glad of a tip.
Thank,
Jim
The error message is most likely from supp-pdf.tex which is used by
pdflatex to convert metapost eps into pdf. The error is either a bug in
metapost or supp-pdf. Can you post the metapost file used to create ch3.5?
Aditya
Also: what version of metapost and supp-pdf.tex? And for good
measure, what version or the file pdftex.def and even of pdftex
itself. It might also be helpful to see the file ch3.5 itself.
And finally, a minimal .tex file, and any information about how
it and the .mp file are processed. Metapost doesn't usually put
blank lines in its output file, but some post-processors might.
Dan
Thanks for your help.
On Jul 23, 11:24 pm, Dan <lueck...@uark.edu> wrote:
> Also: what version of metapost and supp-pdf.tex? And for good
> measure, what version or the file pdftex.def and even of pdftex
> itself. It might also be helpful to see the file ch3.5 itself.
>
> And finally, a minimal .tex file, and any information about how
> it and the .mp file are processed. Metapost doesn't usually put
> blank lines in its output file, but some post-processors might.
I have Ubuntu with TeX Live 2007. Maybe I should upgrade to the 2008
at some point, but frankly I'm busy doing CTAN all wrong. ;-)
Thanks,
Jim
My MetaPost is
$ mpost --version
MetaPost 0.993 (Web2C 7.5.6)
kpathsea version 3.5.6
Here is a reasonably minimal file and below it is the output that has
a blank line.
................ ch3.mp ......................
% CH3.mp
% MetaPost input file with chapter three pictures.
% Generic set: returns the path
def generic_set(expr a, b)=
(0a,.5b)..(0a,1b)..(1a,1b)..tension 1.2..(1a,0b)..(0a,0b)..cycle
enddef;
beginfig(5) % bean with mapsto
numeric u; %scaling factor
numeric v; %vertical scaling factor
numeric w; %horizontal scaling factor
u:=.18in; v:=u; w:=v;
save codshift; pair codshift; codshift = (7w,0);
draw generic_set(2w,4.25v);
draw generic_set(2.1w,4.4v) shifted codshift;
endfig;
end
.............................................................
Here is the result of running mpost; no post-processing.
===================================
%!PS
%%BoundingBox: -3 -7 128 64
%%HiResBoundingBox: -2.6785 -6.83275 127.41618 63.85435
%%Creator: MetaPost 0.993
%%CreationDate: 2008.07.24:0935
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
0 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth
pop
[] 0 setdash 1 setlinejoin 10 setmiterlimit
newpath 0 27.53888 moveto
0 37.0091 -5.46411 47.03749 0 55.07776 curveto
5.77791 63.57976 18.42236 63.18027 25.91895 55.07776 curveto
37.90297 42.1251 37.90297 12.95265 25.91895 0 curveto
18.42236 -8.10251 5.77791 -8.502 0 0 curveto
-5.46411 8.04027 0 18.06866 0 27.53888 curveto closepath stroke
gsave 90.71631 0 translate newpath 0 28.5108 moveto
0 38.31018 -5.60596 48.67606 0 57.0216 curveto
6.03033 65.9989 19.36314 65.59601 27.21497 57.0216 curveto
39.52818 43.57524 39.52818 13.44637 27.21497 0 curveto
19.36314 -8.5744 6.03033 -8.9773 0 0 curveto
-5.60596 8.34555 0 18.71143 0 28.5108 curveto closepath stroke
grestore
showpage
%%EOF
===============================================
I understand you to be saying that I am reading the error message
correctly, that the metapost output should not have a blank line, but
in any event here is a .tex file
+++++++++++++++++++++++++++++++++++++++++++++++
\documentclass{article}
\usepackage[pdftex]{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{} % make pdflatex take fig.1 as
metapost.
\begin{document}
Test above.
\begin{center}
\includegraphics{ch3.5}
\end{center}
Test below.
\end{document}
+++++++++++++++++++++++++++++++++++++++++++++++
Here is the command line output.
__________________________________________________
$ pdflatex ch3
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./ch3.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak,
german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi,
finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian,
interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk,
polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian,
swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2007/texmf/tex/latex/config/graphics.cfg)
(/usr/local/texlive/2007/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(./ch3.aux) (/usr/local/texlive/2007/texmf-dist/tex/context/base/supp-
pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
) [MP to PDF] (./ch3.5
Runaway argument?
! Paragraph ended before \handleMPsequence was complete.
<to be read again>
\par
l.18
?
_____________________________________________________________
$ kpsewhich pdftex.def
/usr/local/texlive/2007/texmf-dist/tex/latex/pdftex-def/pdftex.def
ftpmaint@millstone:~/tmp$ head /usr/local/texlive/2007/texmf-dist/tex/
latex/pdftex-def/pdftex.def
\ProvidesFile{pdftex.def}[2007/01/08 v0.04d Graphics/color for pdfTeX]
..
> On Jul 23, 11:24 pm, Dan <lueck...@uark.edu> wrote:
> > Also: what version of metapost and supp-pdf.tex? And for good
> > measure, what version or the file pdftex.def and even of pdftex
> > itself. It might also be helpful to see the file ch3.5 itself.
> >
> > And finally, a minimal .tex file, and any information about how
> > it and the .mp file are processed. Metapost doesn't usually put
> > blank lines in its output file, but some post-processors might.
> MetaPost 0.993 (Web2C 7.5.6)
> Here is the result of running mpost; no post-processing.
>
> [...]
> %%Creator: MetaPost 0.993
> [...]
> -5.46411 8.04027 0 18.06866 0 27.53888 curveto closepath stroke
>
> gsave 90.71631 0 translate newpath 0 28.5108 moveto
> [...]
The empty line vanishes with an uptodate MetaPost:
MetaPost 1.005 (Web2C 7.5.7)
%!PS
%%BoundingBox: -3 -7 128 64
%%HiResBoundingBox: -2.6785 -6.83275 127.41618 63.85435
%%Creator: MetaPost 1.005
%%CreationDate: 2008.07.24:1608
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
0 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth
pop
[] 0 setdash 1 setlinejoin 10 setmiterlimit
newpath 0 27.53888 moveto
0 37.0091 -5.46411 47.03749 0 55.07776 curveto
5.77791 63.57976 18.42236 63.18027 25.91895 55.07776 curveto
37.90297 42.1251 37.90297 12.95265 25.91895 0 curveto
18.42236 -8.10251 5.77791 -8.502 0 0 curveto
-5.46411 8.04027 0 18.06866 0 27.53888 curveto closepath stroke
gsave 90.71631 0 translate newpath 0 28.5108 moveto
0 38.31018 -5.60596 48.67606 0 57.0216 curveto
6.03033 65.9989 19.36314 65.59601 27.21497 57.0216 curveto
39.52818 43.57524 39.52818 13.44637 27.21497 0 curveto
19.36314 -8.5744 6.03033 -8.9773 0 0 curveto
-5.60596 8.34555 0 18.71143 0 28.5108 curveto closepath stroke
grestore
showpage
%%EOF
Yours sincerely
Heiko <ober...@uni-freiburg.de>
Jim
As a second data point, there is also no empty line in the very
latest beta:
MetaPost, version 1.091 (kpathsea version 3.5.7)
Dan
Thanks for both data points. I have gotten the latest TL version and
it compiles correctly.
Jim