From 39dcac2281970febcce36a0151796af2986388b3 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sat, 7 Nov 2026 09:12:48 +0300 Subject: publish --- doc/od.tex | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/od.tex (limited to 'doc/od.tex') 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 @@ +\documentclass[tikz]{standalone} +\usepackage{fontspec} +\setmainfont{Liberation Serif} +\setsansfont{Liberation Sans} + +\begin{document} +\usetikzlibrary{er} +\usetikzlibrary{calc} +\begin{tikzpicture} + [ + text depth=1pt, + every entity/.style={fill=blue!20,draw=blue,thick} + ] + + \node[entity] (group) at (-4,+2) {Группа}; + \node[entity] (teacher) at (-4,-2) {Преподаватель}; + \node[entity] (student) at (+0,+2) {Студент}; + \node[entity] (lab) at (+0,+0) {Лабораторная работа}; + \node[entity] (subject) at (+0,-2) {Предмет}; + + \draw (student.west) -- node[at start,above left ] {$\infty$} node[at end,above right] {$1$} (group.east); + \draw (student.south) -- node[at start,below right] {$\infty$} node[at end,above right] {$\infty$} (lab.north); + \draw (group.south) |- node[at start,below right] {$\infty$} node[at end,above left ] {$\infty$} (lab.west); + \draw (lab.south) -- node[at start,below right] {$\infty$} node[at end,above right] {$1$} (subject.north); + \draw (teacher.north) |- node[at start,above right] {$\infty$} node[at end,above left ] {$\infty$} (lab.west); +\end{tikzpicture} +\end{document} + +%% Local Variables: +%% compile-command: "xelatex od.tex" +%% End: -- cgit v1.3.1