aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/punktgruppen/tikz/lattice.tex
blob: a6b18769c887616755aae4b90282191f67c4511b (plain)
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
\documentclass[tikz]{standalone}
\usepackage{amsmath}
\usepackage{times}
\usepackage{txfonts}

\usetikzlibrary{arrows}
\usetikzlibrary{intersections}
\usetikzlibrary{math}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[
    >=latex, 
    dot/.style = {
      draw, circle, thick, black, fill = gray!40!white,
      minimum size = 2mm,
      inner sep = 0pt,
      outer sep = 1mm,
    },
  ]

  \begin{scope}
	\clip (-2,-2) rectangle (7,2);
	\foreach \y in {-7,-6,...,7} {
	  \foreach \x in {-7,-6,...,7} {
		\node[dot, xshift=3mm*\y] (N\x\y) at (\x, \y) {};
	  }
	}
  \end{scope}
  \draw[black, thick] (-2, -2) rectangle (7,2);

  \draw[red!80!black, thick, ->] 
	(N00) to node[midway, below] {\(\vec{a}_1\)} (N10);
  \draw[cyan!80!black, thick, ->]
	(N00) to node[midway, left] {\(\vec{a}_2\)} (N01);
\end{tikzpicture}
\end{document}