diff options
| author | 2026-11-07 06:12:48 +0000 | |
|---|---|---|
| committer | 2026-11-07 06:21:22 +0000 | |
| commit | 39dcac2281970febcce36a0151796af2986388b3 (patch) | |
| tree | 7339e54dc942a3ab0d9ba9daae56a2801c1917e9 /doc/od.tex | |
| download | coursework-39dcac2281970febcce36a0151796af2986388b3.tar.gz | |
Diffstat (limited to 'doc/od.tex')
| -rw-r--r-- | doc/od.tex | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/od.tex b/doc/od.tex new file mode 100644 index 0000000..acce812 --- /dev/null +++ b/doc/od.tex | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | \documentclass[tikz]{standalone} | ||
| 2 | \usepackage{fontspec} | ||
| 3 | \setmainfont{Liberation Serif} | ||
| 4 | \setsansfont{Liberation Sans} | ||
| 5 | |||
| 6 | \begin{document} | ||
| 7 | \usetikzlibrary{er} | ||
| 8 | \usetikzlibrary{calc} | ||
| 9 | \begin{tikzpicture} | ||
| 10 | [ | ||
| 11 | text depth=1pt, | ||
| 12 | every entity/.style={fill=blue!20,draw=blue,thick} | ||
| 13 | ] | ||
| 14 | |||
| 15 | \node[entity] (group) at (-4,+2) {Группа}; | ||
| 16 | \node[entity] (teacher) at (-4,-2) {Преподаватель}; | ||
| 17 | \node[entity] (student) at (+0,+2) {Студент}; | ||
| 18 | \node[entity] (lab) at (+0,+0) {Лабораторная работа}; | ||
| 19 | \node[entity] (subject) at (+0,-2) {Предмет}; | ||
| 20 | |||
| 21 | \draw (student.west) -- node[at start,above left ] {$\infty$} node[at end,above right] {$1$} (group.east); | ||
| 22 | \draw (student.south) -- node[at start,below right] {$\infty$} node[at end,above right] {$\infty$} (lab.north); | ||
| 23 | \draw (group.south) |- node[at start,below right] {$\infty$} node[at end,above left ] {$\infty$} (lab.west); | ||
| 24 | \draw (lab.south) -- node[at start,below right] {$\infty$} node[at end,above right] {$1$} (subject.north); | ||
| 25 | \draw (teacher.north) |- node[at start,above right] {$\infty$} node[at end,above left ] {$\infty$} (lab.west); | ||
| 26 | \end{tikzpicture} | ||
| 27 | \end{document} | ||
| 28 | |||
| 29 | %% Local Variables: | ||
| 30 | %% compile-command: "xelatex od.tex" | ||
| 31 | %% End: | ||
