This site is a showcase for using LatexRender for mathematics in WordPress

Using LaTeX in WordPress

More \LaTeX Graphics

Sunday 28th November 2004

Filed under: — Steve @ 6:42 pm

These graphics were taken from LaTeX Graphics

Triangle with circumscribed, inscribed, adjacent and Feuerbach circles

\psset{unit=.25pt}
\begin{pspicture}*(420, 420)
  \psset{linewidth=.4pt}
  % Frame
  \pspolygon(0, 0)(420, 0)(420, 420)(0, 420)
  % Circumscribed circle and inscribed circle
  \pscircle[linecolor=blue](206, 222){166.18}
  \pscircle[linecolor=yellow](250, 197){75.42}
  % Adjacent circles
  \pscircle[linestyle=dashed, linecolor=green](476, 135){157.68}
  \pscircle[linestyle=dashed, linecolor=green](-32, -22){266.53}
  \pscircle[linestyle=dashed, linecolor=green](132, 579){315.92}
  % triangle
  \psset{linewidth=1pt}
  \pspolygon(43, 253)(361, 283)(287, 77)
  % nine-points circle (Feuerbach)
  \pscircle[linestyle=dotted, linecolor=red](242, 195){83.09}
\end{pspicture}


Rotation of axes

\setlength{\unitlength}{1mm}
\begin{picture}(93,46)
  \put( 0,14){\vector(1,0){60}}
  \put(61,13){$x$}
  \put(20,4){\vector(0,1){37}}
  \put(19,43){$y$}
  \put(50,34){\circle*{2}}
  \put(52,35){$P$}
  \multiput(20,34)(4,0){8}{\line(1,0){2}}
  \put(14.5,33.5){$y_P$}
  \multiput(50,14)(0,4){5}{\line(0,1){2}}
  \put(48,11){$x_P$}
  \put( 2,8){\vector(3,1){56}}
  \put(59,26.5){$x^{\prime}$}
  \multiput(50,34)(1.9,-5.7){2}
    {\line(1,-3){1.2}}
  \put(52,22){$x_P^{\prime}$}
  \multiput(50,34)(-5.8,-1.933){6}
    {\line(-3,-1){3.6}}
  \put(12,21){$y_P^{\prime}$}
  \put(22,8){\vector(-1,3){10.5}}
  \put(10,41){$y^{\prime}$}
\end{picture}

Multiple use of predefined partial pictures

\setlength{\unitlength}{.25mm}
\begin{picture}(120, 168)
\newsavebox{\foldera}%
\savebox{\foldera}(40, 32)[l]{%
  \multiput(0, 0)(0, 28){2}{\line(1, 0){40}}
  \multiput(0, 0)(40, 0){2}{\line(0, 1){28}}
  \put(1, 28){\oval(2, 2)[tl]}
  \put(1, 29){\line(1, 0){5}}
  \put(9, 29){\oval(6, 6)[tl]}
  \put(9, 32){\line(1, 0){8}}
  \put(17, 29){\oval(6, 6)[tr]}
  \put(20, 29){\line(1, 0){19}}
  \put(39, 28){\oval(2, 2)[tr]}
}
\newsavebox{\folderb}%
\savebox{\folderb}(40, 32)[l]{%
  \put(0, 14){\line(1, 0){8}}
  \put(8, 0){\usebox{\foldera}}
}
\multiput(0, 0)(120, 0){2}{\line(0, 1){168}}
\multiput(0, 0)(0, 168){2}{\line(1, 0){120}}
\put(34, 26){\line(0, 1){102}}
\put(14, 128){\usebox{\foldera}}
\multiput(34, 86)(0, -37){3}{\usebox{\folderb}}
\end{picture}

The multiput and the linethickness command

\setlength{\unitlength}{2mm}
\begin{picture}(30, 20)
  \linethickness{0.075mm}
  \multiput(0, 0)(1, 0){31}{\line(0, 1){20}}
  \multiput(0, 0)(0, 1){21}{\line(1, 0){30}}
  \linethickness{0.15mm}
  \multiput(0, 0)(5, 0){7}{\line(0, 1){20}}
  \multiput(0, 0)(0, 5){5}{\line(1, 0){30}}
  \linethickness{0.3mm}
  \multiput(5, 0)(10, 0){3}{\line(0, 1){20}}
  \multiput(0, 5)(0, 10){2}{\line(1, 0){30}}
\end{picture}

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


 

This site is a showcase for using LatexRender for mathematics in WordPress