# Tag Info

2

I've propagated this question also to the TeX Live mailing list and it was a bug that's been fixed now (thanks to willing developers), yet in development version only.

9

9

I would suggest using pst-slpe: \documentclass{article} \usepackage{pstricks}% http://tug.org/PSTricks/main.cgi/ \usepackage{graphicx,pst-slpe}% http://ctan.org/pkg/{graphicx,pst-slpe} \newsavebox{\imagebox} \begin{document} \savebox{\imagebox}{\includegraphics[width=4cm]{tiger}} \begin{pspicture}(\wd\imagebox,\ht\imagebox) \psclip{ ...

4

Can't you use LuaTeX? Then you are able to integrate the MP-code into the document: \documentclass{article} \usepackage{luamplib} \begin{document} Lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum. % \begin{mplibcode} u:=1cm; beginfig(1); draw ...

1

Late to the party I know, but here is a shortish version in Metapost using the solve macro and a transform to draw the second similar triangle. beginfig(1); vardef mark(expr p,q,r) = .5 right rotated angle (p-q) shifted q {up rotated angle(p-q)} .. .5 right rotated angle (r-q) shifted q {up rotated angle(r-q)} enddef; vardef f(expr h) = ...

7

I have no problem with \documentclass{article} \usepackage{luamplib} \begin{document} foo \begin{mplibcode} input demo.mp; \end{mplibcode} bar \end{document} and a demo.mp with beginfig(1); pair A, B, C; A:=(0,0); B:=(1cm,0); C:=(0,1cm); draw A--B--C; \endfig;

Top 50 recent answers are included