diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/texdr.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex-tipps-und-tricks/texdr.tex | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/texdr.tex b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/texdr.tex new file mode 100644 index 00000000000..c2b137039b0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/texdr.tex @@ -0,0 +1,61 @@ +\documentclass{article} +\usepackage{german,texdraw} +\input txdps % <-- nur fuer die Torte noetig! + +\begin{document} + +\centering + +\begin{texdraw} +\drawdim cm + +% Frame um alles, grau unterlegen +\move(0 0)\lvec(8 0) \lvec(8 5) \lvec(0 5) \lvec(0 0) +\ifill f:.9 + +% Beschriftung +\textref h:C v:C +\htext(4 4.5){"Uberschrift} +\vtext(.5 2.5){$y=\sqrt(g(t))$} + +\textref h:R v:T +\htext(7 .7){Zeit $t$} + +% Graphik beginnt an Punkt (1,1) +\move(1 1)\bsegment + % Weisse Flaeche + \move(0 0) \lvec(6 0) \lvec(6 3) \lvec(0 3) \lvec(0 0) + \ifill f:1 + % Koordinatensystem + \move(0 0) \avec(6 0) \move(0 0) \avec(0 3) + % Daten + \move(.5 .8) \lvec(1 1) \lvec(2 .8) \lvec(3 2) \lvec(4 1.5) + \lvec(5 1.7) + \lpatt(.1 .1) % je 1 mm Strich und Luecke! + \move(.5 2) \lvec(1 1.8) \lvec(2 1.5) \lvec(3 .8) \lvec(4 1.3) + \lvec(5 1.4) + \esegment +\end{texdraw} + +\vspace*{1cm} + +\begin{texdraw} +\drawdim cm +% maximale Abmessungen bekanntmachen! +\move(0 0)\move(5 5) + +% Torte beginnt an M=(2.5 2.5) +\move(2.5 2.5)\bsegment + \move(0 0) \PSarc r:2 sd:80 ed:290 (0 0) + \PSclosepath \ifill f:.7 + \move(0 0) \PSarc r:2 sd:290 ed:360 (0 0) + \PSclosepath \ifill f:.2 + \move(.3 .3) \PSarc r:2 sd:0 ed:80 (.3 .3) + \PSclosepath \lfill f:.9 + \move(-2.5 1.5) \avec(-1 .5) + \htext(-2.5 1.5){Hauptanteil} + \move(3.5 1) \avec(1.5 1) + \htext(3.5 1){Anteil $\frac{\phi_1}{\phi_2}$} + \esegment +\end{texdraw} +\end{document} |