diff --git a/docs.tex b/docs.tex index 28afbbe75461de627dacff85c4f000919c25d475..9a1e9c930a1e027b27dda46860272d260dc4217b 100644 --- a/docs.tex +++ b/docs.tex @@ -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} diff --git a/layout.sty b/layout.sty index 9e02b34cc7373eb85ff1bdd096b1cb44ae14fc8c..e36e5cdb720083ddb3ce1772162c0a90418d5520 100644 --- a/layout.sty +++ b/layout.sty @@ -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)}