25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

42 satır
1.5KB

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