File: test_tikz_reference.tex

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (49 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\begin{document}
\tikz \fill[green] rectangle (0.5,0.5); Something
about something.

\begin{tikzpicture}
  \draw [solid] let \p{I} = (0,0) in (1,1) -|
    (\x{I}-1cm,-1cm) node [yshift=-.25cm] {(i)};
  % Just some comment
\end{tikzpicture}

\begin{tikzpicture}
  % (i) center contact head
  \draw [solid] let \p{I} = (centerContactHead) in (centerContactHead) -|
    (\x{I}-.75cm,-2.5)
    node [yshift=-.25cm] {(i)};

  % (ii) outer conductor of the contact head
  \coordinate (outerContactHead) at (.8,-1.7);
  \draw [solid] let \p{O} = (outerContactHead)
    in (outerContactHead) -- (\x{O},-2.5)
    node [yshift=-.25cm] {(ii)};

  \begin{axis}
    \addplot
      table[row sep=crcr]{%
        0       0\\
        1       1\\
        2       2\\
      };
  \end{axis}
\end{tikzpicture}

\begin{center}
  \begin{circuitikz}[american]
    \draw (0,0) node[npn]{};
  \end{circuitikz}
\end{center}
\begin{center}
  \begin{circuitikz}[american, baseline=(VCC)]
    \draw (0,0) node[npn]{};
  \end{circuitikz}
\end{center}

\end{document}