From 59c892e6d233c7c5394005c23837e19756984cb3 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Fri, 2 Feb 2018 16:07:17 +0100 Subject: [PATCH] Lattice figure --- fig-lattice-base.tex | 23 +++++++++++++++++++++++ sec-lattices.tex | 24 +----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 fig-lattice-base.tex diff --git a/fig-lattice-base.tex b/fig-lattice-base.tex new file mode 100644 index 0000000..3cfe038 --- /dev/null +++ b/fig-lattice-base.tex @@ -0,0 +1,23 @@ +\begin{tikzpicture} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Comment or uncomment crop % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \clip[use as bounding box] + %\draw[thick, black] + (2,3) rectangle (10,8); + \foreach \i in {0,1,...,20} { + \foreach \j in {0,1,..., 10} { + \draw[fill=black] (.2*\j + .5*\i, \j + .1*\i) circle (1pt) coordinate (v-\i-\j); + } + } + \draw[very thick, green!80!black, ->] (v-9-4) -- (v-8-4); + \draw[very thick, green!80!black, ->] (v-9-4) -- (v-9-5); + \draw[very thick, red!80!black, ->] (v-9-4) -- (v-19-2); + \draw[very thick, red!80!black, ->] (v-9-4) -- (v-18-2); + \foreach \i in {0,1,...,10} { + \draw[dotted, color=black!70] (v-0-\i) -- (v-20-\i); + } + \foreach \i in {0,1,...,20} { + \draw[dotted, color=black!70] (v-\i-0) -- (v-\i-10); + } +\end{tikzpicture} diff --git a/sec-lattices.tex b/sec-lattices.tex index 3100e2a..b43a4c3 100644 --- a/sec-lattices.tex +++ b/sec-lattices.tex @@ -13,29 +13,7 @@ Worst-case lattice problems have been extensively studied in the last past years \begin{figure} \centering - \begin{tikzpicture} - %%%%%%%%%%%%%%%%%%%%%%%%%%%%% - % Comment or uncomment crop % - %%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \clip[use as bounding box] - %\draw[thick, black] - (2,3) rectangle (10,8); - \foreach \i in {0,1,...,20} { - \foreach \j in {0,1,..., 10} { - \draw[fill=black] (.2*\j + .5*\i, \j + .1*\i) circle (1pt) coordinate (v-\i-\j); - } - } - \draw[very thick, green!80!black, ->] (v-9-4) -- (v-8-4); - \draw[very thick, green!80!black, ->] (v-9-4) -- (v-9-5); - \draw[very thick, red!80!black, ->] (v-9-4) -- (v-19-2); - \draw[very thick, red!80!black, ->] (v-9-4) -- (v-18-2); - \foreach \i in {0,1,...,10} { - \draw[dotted, color=black!70] (v-0-\i) -- (v-20-\i); - } - \foreach \i in {0,1,...,20} { - \draw[dotted, color=black!70] (v-\i-0) -- (v-\i-10); - } - \end{tikzpicture} + \input fig-lattice-base \caption{A lattice $\Lambda$ with two different basis.} \label{fig:lattice-basis} \end{figure}