Skip to content
Snippets Groups Projects
Unverified Commit f7a2df5e authored by Malin Freeborn's avatar Malin Freeborn
Browse files

allow callout boxes on maps

parent cbade327
Branches
No related tags found
No related merge requests found
......@@ -292,20 +292,29 @@ bookmarks=true]%
\newcommand{\widePic}[2][b]{
\begin{figure*}[#1!]
\setcounter{enc}{0}
\IfFileExists{images/#2.svg}{
\includesvg[width=\textwidth]{images/#2}
\begin{tikzpicture}
\node (mapPic) {\includesvg[width=\textwidth]{images/#2}};
\csComments
\end{tikzpicture}
}{
\tcbincludegraphics[
blankest,
before upper={\parindent0pt},
boxrule=0mm,
finish fading vignette={size=0.02\textwidth},
]{images/#2.jpg}
\tcbincludegraphics[
blankest,
before upper={\parindent0pt},
boxrule=0mm,
finish fading vignette={size=0.02\textwidth},
]{images/#2.jpg}
}
\label{#2}
\renewcommand\csComments{}
\end{figure*}
}
\newcommand\callout[3]{
\node[text=white, overlay, rectangle callout, callout relative pointer={(#2)}, fill=black,] (\arabic{enc}) at (#1) [text width=4cm]{#3};
}
\newcommand\mapLegend[4]{
\node [black, font=\bfseries] at (0.#2,0.#3) {#4 #1};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment