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

document mapPic

parent 73a5c72a
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,29 @@ Wider pictures should be placed with \verb"\widePic{s1}", and they will appear o
\widePic{s1}
\subsubsection{Maps}
The map function works like \verb"\widePic", but for maps.
You can add a list of coordinates, and the names or number-labels to place on those coordinates.
\mapPic{../config/images/l1}{0.8/0.8/Toptown, 0.2/0.75/Leftown,0.8/0.6/2}
Imagine the shield image is a map to be labelled.
We can start by putting `Toptown' at the top.
\begin{verbatim}
\mapPic{../config/images/l1}{0.8/0.8/Toptown}
\end{verbatim}
The Cartesian coordinates are `0.8/0.8', meaning `80\% along, 80\% up'.
We can add more to the list with commas.
We can even add commands, such as \verb"\ref{basement}" to get some number associated with a basement, and automatically place that number on the map.
\begin{verbatim}
\mapPic{../config/images/l1}{0.8/0.8/Toptown, 0.2/0.75/Leftown,0.8/0.6/2}
\end{verbatim}
\subsection{Symbols}
\begin{tabularx}{\linewidth}{Xcc}
......
......@@ -271,7 +271,7 @@ bookmarks=true]%
shadow xshift=-1pt,
shadow yshift=-3pt
}]
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includesvg[width=\textwidth]{#1}};
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includesvg[width=\textwidth]{images/#1}};
\begin{scope}[
x={(image.south east)},
y={(image.north west)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment