From d5aa0421817ada4195e1fc27f238f6e5b9d73189 Mon Sep 17 00:00:00 2001
From: Jan Aalmoes <jan.aalmoes@inria.fr>
Date: Mon, 5 Aug 2024 10:55:57 +0200
Subject: add contexte files

---
 contexte/figure/tikz/data.tex | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 contexte/figure/tikz/data.tex

(limited to 'contexte/figure/tikz/data.tex')

diff --git a/contexte/figure/tikz/data.tex b/contexte/figure/tikz/data.tex
new file mode 100644
index 0000000..663b59c
--- /dev/null
+++ b/contexte/figure/tikz/data.tex
@@ -0,0 +1,20 @@
+\makeatletter
+\tikzset{
+    database/.style={
+        path picture={
+            \draw (0, 1.5*\database@segmentheight) circle [x radius=\database@radius,y radius=\database@aspectratio*\database@radius];
+            \draw (-\database@radius, 0.5*\database@segmentheight) arc [start angle=180,end angle=360,x radius=\database@radius, y radius=\database@aspectratio*\database@radius];
+            \draw (-\database@radius,-0.5*\database@segmentheight) arc [start angle=180,end angle=360,x radius=\database@radius, y radius=\database@aspectratio*\database@radius];
+            \draw (-\database@radius,1.5*\database@segmentheight) -- ++(0,-3*\database@segmentheight) arc [start angle=180,end angle=360,x radius=\database@radius, y radius=\database@aspectratio*\database@radius] -- ++(0,3*\database@segmentheight);
+        },
+        minimum width=2*\database@radius + \pgflinewidth,
+        minimum height=3*\database@segmentheight + 2*\database@aspectratio*\database@radius + \pgflinewidth,
+    },
+    database segment height/.store in=\database@segmentheight,
+    database radius/.store in=\database@radius,
+    database aspect ratio/.store in=\database@aspectratio,
+    database segment height=0.1cm,
+    database radius=0.25cm,
+    database aspect ratio=0.35,
+}
+\makeatother
-- 
cgit v1.2.3

