From Wikipedia, the free encyclopedia
[edit] Summary
Illustration for en:Midpoint. Created by Gustavb using en:PSTricks.
[edit] Licensing
I, the author of this work, hereby publish it under the following license:
|
[edit] Source
[edit] Midpoint.tex (PSTricks source)
\input pst-eps
\input pst-plot
\input pst-node
\TeXtoEPS
\psset{linecolor=black,linewidth=1.2pt}
\psset{unit=.4cm}
\pspicture*(-6,-1)(10,5)
\psdots[dotstyle=*,dotscale=1.2](0,0)(3,2)(6,4)
\psdots[dotangle=33.69,dotstyle=|](1.5,1)(4.5,3)
\uput{.4}[180](0,0){$(x_1,y_1)$}
\uput{.4}[20](6,4){$(x_2,y_2)$}
\uput{0pt}[310](3,2){\rnode{Ot}{\hglue-9.5cm\vbox{\vglue-.8cm
$$\bigg({{x_1+x_2} \over 2},{{y_1+y_2} \over 2}\bigg)$$}}}
\psline(0,0)(6,4)
\endpspicture
\endTeXtoEPS
\nopagenumbers
\end
[edit] Instructions
- Create EPS
$ tex Midpoint.tex && dvips -E Midpoint.dvi
- Outline fonts
$ eps2eps -dNOCACHE Midpoint.ps Midpoint2.eps
- Fix bounding box
$ ps2epsi Midpoint2.eps Midpoint.eps
- Convert to Sketch
$ pstoedit -f sk Midpoint.eps Midpoint.sk
- Convert to SVG
$ skconvert Midpoint.sk Midpoint.svg
- Fix Midpoint.svg with Inkscape
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):