From 73a5c72a708942eaaa12bb54b9352b3969b114bb Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Mon, 30 Jan 2023 08:30:25 +0100 Subject: [PATCH] create function to auto-label maps --- layout.sty | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/layout.sty b/layout.sty index 4c67696e..9e02b34c 100644 --- a/layout.sty +++ b/layout.sty @@ -260,6 +260,30 @@ bookmarks=true]% \end{figure*} } +\newcommand\mapLegend[3]{ + \node [black, font=\bfseries] at (#1,#2) {\huge #3}; +} + +\newcommand\mapPic[2]{ + \begin{figure*}[t!] + \begin{tikzpicture}[every shadow/.style={ + shadow blur invert, + shadow xshift=-1pt, + shadow yshift=-3pt + }] + \node[anchor=south west,inner sep=0] (image) at (0,0) {\includesvg[width=\textwidth]{#1}}; + \begin{scope}[ + x={(image.south east)}, + y={(image.north west)} + ] + \foreach \mX/\mY/\mNum in {#2}{ + \mapLegend{\mX}{\mY}{\mNum} + } + \end{scope} + \end{tikzpicture} + \end{figure*} +} + \newcounter{blingNo} \setcounter{blingNo}{0} -- GitLab