diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2021-07-26 07:58:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 07:58:40 +0200 |
commit | 56443dfc2486e08b0ed3bf8ecc61c9ad8a83e213 (patch) | |
tree | f3cf93ea263d777c2396ee5e21369ec99868d53b /buch/papers/punktgruppen/tikz/atoms-grid-force.tex | |
parent | add munkres files (diff) | |
parent | Fix typo (diff) | |
download | SeminarMatrizen-56443dfc2486e08b0ed3bf8ecc61c9ad8a83e213.tar.gz SeminarMatrizen-56443dfc2486e08b0ed3bf8ecc61c9ad8a83e213.zip |
Merge pull request #45 from NaoPross/master
Almost complete
Diffstat (limited to 'buch/papers/punktgruppen/tikz/atoms-grid-force.tex')
-rw-r--r-- | buch/papers/punktgruppen/tikz/atoms-grid-force.tex | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/buch/papers/punktgruppen/tikz/atoms-grid-force.tex b/buch/papers/punktgruppen/tikz/atoms-grid-force.tex new file mode 100644 index 0000000..05742cf --- /dev/null +++ b/buch/papers/punktgruppen/tikz/atoms-grid-force.tex @@ -0,0 +1,42 @@ +\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, + node distance = 2mm, + charge/.style = { + circle, draw = black, thick, + minimum size = 5mm + }, + positive/.style = { fill = red!50 }, + negative/.style = { fill = blue!50 }, + ] + + \matrix[nodes = { charge }, row sep = 5mm, column sep = 1cm] { + \node[positive] (NW) {}; & \node[negative] (N) {}; & \node [positive] (NE) {}; \\ + \node[negative] (W) {}; & \node[positive] {}; & \node [negative] (E) {}; \\ + \node[positive] (SW) {}; & \node[negative] (S) {}; & \node [positive] (SE) {}; \\ + }; + + \foreach \d in {NW, N, NE} { + \draw[orange, very thick, <-] (\d) to ++(0,.7); + } + + \foreach \d in {SW, S, SE} { + \draw[orange, very thick, <-] (\d) to ++(0,-.7); + } + + \draw[gray, dashed] (W) to (N) to (E) to (S) to (W); + \end{tikzpicture} +\end{document} |