-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_irs.tex
32 lines (22 loc) · 918 Bytes
/
test_irs.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\documentclass[a4]{standalone}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc} % Use this if the file is encoded with utf-8
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz} % Create graphics in Latex
\input{irs.tex}
\begin{document}
\thispagestyle{empty}
\usetikzlibrary{positioning}
\begin{tikzpicture}
\draw[help lines] (-2,-2) grid (2,2);
\node[IRS, element fill color=green!30, fill=red!30, minimum size=2.5cm] at (0,0) (irs) {};
% All rectangle anchors are supported as well as "border anchors" (an angle intersecting the border)
\draw[fill=green] (irs.north) circle (0.8pt) node[scale=0.8,red!50!black,rotate=45,yshift=2mm, xshift=1mm] {\tiny{north}};
\draw[fill=green] (irs.58) circle (0.8pt) node[scale=0.8,red!50!black,rotate=45, yshift=2mm, xshift=1mm] {\tiny{58°}};
\end{tikzpicture}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: