Re: MetaPost issue

Norman Gray <[email protected]> Sat, 29 Mar 2025 10:00:32 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <[email protected]>
Walter, hello.

On 28 Mar 2025, at 22:12, Walter Burkhard via texhax wrote:

> Hello,   I have an issue with the cutafter and cutbefore operations.  I
> have attached  three files --  test.mp, test.tex
> and test.pdf

Your test.mp looks OK to me: I've attached the result I get from the following:

    % mpost test.mp
    This is MetaPost, version 2.10 (TeX Live 2024) (kpathsea version 6.4.0)
    (/usr/local/texlive/2024/texmf-dist/metapost/base/mpost.mp
    (/usr/local/texlive/2024/texmf-dist/metapost/base/plain.mp
    Preloading the plain mem file, version 1.005) ) (./test.mp [1] )
    1 output file written: test.1
    Transcript written on test.log.
    % ps2pdf test.1

I notice, by the way, that your test.tex includes the file rest.1, not test.1 -- is that deliberate?

Best wishes,

Norman


-- 
Norman Gray  :  https://nxg.me.uk
test.1 (text/plain, 1.2 KB)
%!PS
%%BoundingBox: -16 -16 86 86 
%%HiResBoundingBox: -15.25 -15.25 85.25 85.25 
%%Creator: MetaPost 2.10
%%CreationDate: 2025.03.29:0957
%%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 15 0 moveto
15 3.97842 13.41934 7.79343 10.60638 10.60638 curveto
7.79343 13.41934 3.97842 15 0 15 curveto
-3.97842 15 -7.79343 13.41934 -10.60638 10.60638 curveto
-13.41934 7.79343 -15 3.97842 -15 0 curveto
-15 -3.97842 -13.41934 -7.79343 -10.60638 -10.60638 curveto
-7.79343 -13.41934 -3.97842 -15 0 -15 curveto
3.97842 -15 7.79343 -13.41934 10.60638 -10.60638 curveto
13.41934 -7.79343 15 -3.97842 15 0 curveto closepath stroke
newpath 85 70 moveto
85 73.97842 83.41934 77.79343 80.60638 80.60638 curveto
77.79343 83.41934 73.97842 85 70 85 curveto
66.02158 85 62.20657 83.41934 59.39362 80.60638 curveto
56.58066 77.79343 55 73.97842 55 70 curveto
55 66.02158 56.58066 62.20657 59.39362 59.39362 curveto
62.20657 56.58066 66.02158 55 70 55 curveto
73.97842 55 77.79343 56.58066 80.60638 59.39362 curveto
83.41934 62.20657 85 66.02158 85 70 curveto closepath stroke
 1 setlinecap
newpath 10.60638 10.60638 moveto
59.39388 59.39388 lineto stroke
showpage
%%EOF
test.1.pdf (application/pdf, 2.6 KB) - not displayed