Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

40 rindas
1.5KB

  1. %&tex
  2. \documentclass{standalone}
  3. \usepackage{tikz}
  4. \usepackage{siltex}
  5. \usetikzlibrary{calc,positioning,patterns,math}
  6. \begin{document}
  7. \begin{tikzpicture}[x=0.75cm, y=0.75cm]
  8. \tikzstyle{arrow} = [-latex,ultra thick]
  9. % draw roof
  10. \fill[pattern = north east lines] ($ (0,0) + (-1,0) $) rectangle ($ (0,0) + (1,0.5) $);
  11. \draw[thick] ($ (0,0.5) + (-1,0) $) -- ($ (0,0.5) + (1,0) $);
  12. %draw arm and joints
  13. \pgfmathsetmacro{\alphahoek}{120};
  14. \pgfmathsetmacro{\a}{4};
  15. \pgfmathsetmacro{\betahoek}{-105};
  16. \pgfmathsetmacro{\b}{4};
  17. \pgfmathsetmacro{\radius}{0.8};
  18. \begin{scope}[shift={(0,0.5)}]
  19. \draw (\radius,0) arc [start angle=0, end angle=\alphahoek, radius=\radius] node[above,midway] {$\alpha$};
  20. \begin{scope}[rotate=\alphahoek]
  21. \fill (0,0) circle (0.2);
  22. \draw[thick] (0,0) to node[midway,right,draw=none] {$a$} (\a,0);
  23. \begin{scope}[shift={(\a,0)}]
  24. \draw (-\radius,0) arc [start angle=-180, end angle=\betahoek, radius=\radius] node[right,midway] {$\beta$};
  25. \begin{scope}[rotate=\betahoek]
  26. \fill (0,0) circle (0.2);
  27. \draw[thick] (0,0) to node[midway,below,draw=none] {$b$} (\b,0);
  28. \begin{scope}[shift={(\b,0)}]
  29. \draw[fill=white] (0,0) circle (0.3) node {$m$};
  30. \end{scope}
  31. \end{scope}
  32. \end{scope}
  33. \end{scope}
  34. \end{scope}
  35. \end{tikzpicture}
  36. \end{document}