Debian Codegraph @

texmf-dist/doc/latex/tikz-palattice/example1_linear.tex

raw
1 %% example1_linear.tex
2 %% Copyright 2015 J. Schmidt
3 %% tikz-palattice LaTeX package
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either version 1.3
7 % of this license or (at your option) any later version.
8 % The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3 or later is part of all distributions of LaTeX
11 % version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status `maintained'.
14 %
15 % The Current Maintainer of this work is J. Schmidt.
16 %
17 % This work consists of the files tikz-palattice.sty and tikz-palattice_documentation.tex
18 % and the 5 example files example1_linear.tex, example2_circular.tex,
19 % example3_coordinates.tex, example4_labels.tex and elsa.tex
20
21 \documentclass[]{standalone}
22 \usepackage[ngerman]{babel}
23 \usepackage[utf8]{inputenc}
24 \usepackage{tikz-palattice}
25
26
27 \begin{document}
28
29 \begin{lattice}
30 \source{MySource}{0.4}
31 \drift{0.167}
32 \quadrupole{Q1}{0.4}
33 \drift{0.1}
34 \kicker{VC1}{0.1}
35 \drift{0.29}
36 \drift{0.2}
37 \screen{S1}
38 \drift{0.2}
39 \quadrupole{Q2}{0.4}
40 \drift{0.3}
41 \marker{marker 1}[1.2]
42 \drift{1.16}[Space left!]
43 \marker{marker 2}[1.2]
44 \drift{0.15}
45 \cavity{Acceleration?}{2}
46 \drift{0.63}
47 \dipole{M1}{0.5}{90}[r]
48 \drift{0.3}
49 \quadrupole{Q42}{0.4}
50 \drift{0.3}
51 \end{lattice}
52
53 \end{document}