Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[12pt,a4paper]{article}
- usepackage{tikz}
- begin{document}
- begin{tikzpicture}
- draw (0,0) rectangle node[above] {$m$} +(2,1);
- draw (0,2) rectangle node[anchor=south] {$m$} +(2,1);
- begin{scope}[xshift=4cm,rotate=-30]
- draw (0,0) rectangle node[above] {$m$} +(2,1);
- draw (0,2) rectangle node[anchor=south] {$m$} +(2,1);
- end{scope}
- end{tikzpicture}
- end{document}
- documentclass{article}
- usepackage{tikz}
- begin{document}
- tikzset{rect style/.style={rotate=#1,scale=2,every node/.style={rotate=#1}}}
- begin{tikzpicture}[rect style=-30]
- pgfmathsetmacrox{2}
- pgfmathsetmacroy{1}
- draw (0,0) rectangle +(x,y);
- node[above] at (.5*x,y){$m$};
- end{tikzpicture}
- begin{tikzpicture}[rect style=30]
- pgfmathsetmacrox{2}
- pgfmathsetmacroy{1}
- draw (0,0) rectangle +(x,y);
- path (0,y) -- (x,y) node[midway,above] {$m$};
- end{tikzpicture}
- end{document}
- documentclass[12pt,a4paper]{article}
- usepackage{tikz}
- begin{document}
- begin{tikzpicture}
- node [draw,rectangle,minimum width=2cm,minimum height=1cm,label=$m$] {};
- begin{scope}[xshift=3cm]
- node [rotate=-30,draw,rectangle,minimum width=2cm,minimum height=1cm,label=$m$] {};
- end{scope}
- begin{scope}[xshift=6cm,rotate=-30]
- node [transform shape,draw,rectangle,minimum width=2cm,minimum height=1cm,label={[transform shape]$m$}] {};
- end{scope}
- begin{scope}[xshift=1cm,yshift=-3cm,rotate=-30,scale=2]
- node [transform shape,draw,rectangle,minimum width=2cm,minimum height=1cm,label=$m$] {};
- end{scope}
- begin{scope}[transform canvas={xshift=6cm,yshift=-3cm,rotate=-30}]
- node [draw,rectangle,minimum width=2cm,minimum height=1cm,label=$m$] {};
- end{scope}
- end{tikzpicture}
- end{document}
- documentclass[12pt,a4paper]{article}
- usepackage{tikz}
- usetikzlibrary{calc}
- begin{document}
- begin{tikzpicture}[every node/.style={draw}]
- begin{scope}[rotate=-30]
- node at (3,0) [draw,name=A,rectangle, minimum width=2cm,minimum height=1cm,anchor=south,label=$m_1$,transform shape] {};
- node at (6,0) [name=B,rectangle, minimum width=1cm,minimum height=0.75cm,anchor=south,label=$m_2$,transform shape] {};
- node at (0,0) [name=C,circle,minimum size=.8cm,transform shape] {};
- draw (C.north) -- ($(A.south west)!(C.north)!(A.north west)$);
- draw ($(A.south east)!(C.north)!(A.north east)$) -- ($(B.south west)!(C.north)!(B.north west)$);
- draw(1,0) -- (8,0);
- end{scope}
- node at (-0.4,-5) [draw,name=D,rectangle, minimum width=1cm,minimum height=2cm,anchor=south,label=right:$m_3$] {};
- draw ($(D.north west)!(C.210)!(D.north east)$) -- (C.210) arc [start angle=180,end angle=60,radius=0.4cm];
- end{tikzpicture}
- end{document}
- documentclass[12pt,a4paper]{article}
- usepackage{tikz}
- usetikzlibrary{calc,patterns}
- begin{document}
- begin{tikzpicture}[every node/.style={draw,outer sep=0pt,thick}]
- node (M3) [minimum width=3.5cm,minimum height=2.5cm] {$m_3$};
- node (M1) at (M3.north) [minimum width=1cm,minimum height=0.6cm,label=$m_2$,anchor=south] {};
- node (M2) at (M3.east) [minimum width=0.6cm,minimum height=1cm,label=right:$m_1$,anchor=west] {};
- node (C) at (M3.north east) [circle, minimum size=0.6cm] {};
- draw (M1.east) -- (C.north) (C.east) -- (M2.north);
- node (ground) at (M3.south) [fill,pattern=north east lines,minimum width=5cm,minimum height=.3cm,anchor=north,draw=none] {};
- draw (ground.north west) -- (ground.north east);
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement