| 1 |
% \LaTeX-Main\ |
| 2 |
% !TeX encoding=UTF-8 |
| 3 |
%% |
| 4 |
%% The LaTeX package mercatormap - version 1.3.0 (2026/02/19) |
| 5 |
%% mercatormap-example.tex: Example document with a map |
| 6 |
%% |
| 7 |
%% ------------------------------------------------------------------------------------------- |
| 8 |
%% Copyright (c) 2020-2026 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> |
| 9 |
%% ------------------------------------------------------------------------------------------- |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
%% |
| 19 |
%% This work has the LPPL maintenance status `author-maintained'. |
| 20 |
%% |
| 21 |
%% This work consists of all files listed in README |
| 22 |
%% |
| 23 |
% arara: pdflatex: { shell: yes } |
| 24 |
% |
| 25 |
\def\mrcpkgprefix{} |
| 26 |
\documentclass{article} |
| 27 |
|
| 28 |
\usepackage[T1]{fontenc} |
| 29 |
\usepackage{lmodern} |
| 30 |
\usepackage[bookmarks,raiselinks,pageanchor,colorlinks]{hyperref} |
| 31 |
\usepackage[a4paper,margin=15mm,noheadfoot]{geometry} |
| 32 |
\usepackage{mercatormap} |
| 33 |
|
| 34 |
\pagestyle{empty} |
| 35 |
|
| 36 |
\mrcactivatescript% activates Python script |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
|
| 40 |
\vspace*{\fill} |
| 41 |
\noindent |
| 42 |
\begin{tikzpicture} |
| 43 |
\mrcNPdef{bbox-SW}{47.270111}{8.976350} |
| 44 |
\mrcNPdef{bbox-NE}{50.564714}{13.839637} |
| 45 |
\mrcmap |
| 46 |
[ |
| 47 |
area = {bbox-SW, bbox-NE}, |
| 48 |
area to reference, |
| 49 |
type = reference, |
| 50 |
flex reference scale = 2000000, |
| 51 |
tex width = \linewidth, |
| 52 |
tex height = 22cm, |
| 53 |
source = topplusopen web, |
| 54 |
]{mercatormap-example} |
| 55 |
\mrcdrawmap |
| 56 |
\mrcdrawnetwork |
| 57 |
\node[below,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south) |
| 58 |
{\mrcmapattribution}; |
| 59 |
\mrcclipmap |
| 60 |
|
| 61 |
\draw[thick] (mrcmap.south west) rectangle (mrcmap.north east); |
| 62 |
|
| 63 |
\mermapsetmarker{type=drop, draw=red, fill=red!20!white, |
| 64 |
font=\sffamily\bfseries} |
| 65 |
\mrcmarker{position=48.137222:11.575556, contents={M}} |
| 66 |
\mrcmarker{position=48.537222:12.152222, contents={LA}} |
| 67 |
\mrcmarker{position=49.017222:12.096944, contents={R}} |
| 68 |
\mrcmarker{position=48.371667:10.898333, contents={A}} |
| 69 |
\mrcmarker{position=49.300833:10.571667, contents={AN}} |
| 70 |
\mrcmarker{position=49.948056:11.578333, contents={BT}} |
| 71 |
\mrcmarker{position=49.948056:11.578333, contents={BT}} |
| 72 |
\mrcmarker{position=49.794444:9.929444, contents={W\"U}} |
| 73 |
|
| 74 |
\node[below left=2mm,align=center,fill=white,draw=black,fill opacity=0.9, |
| 75 |
text opacity=1,inner sep=2mm] at (mrcmap.north east) |
| 76 |
{ |
| 77 |
\textbf{\Large Bayern}\\[1mm] |
| 78 |
\mrcprettymapscale\\[1mm] |
| 79 |
\begin{tikzpicture} |
| 80 |
\mrcdrawscalebar[width-in-km=100] |
| 81 |
\path[every node/.style={above,inner sep=0.5mm,font=\sffamily\tiny}] |
| 82 |
(mrcscalebar.north west) -- (mrcscalebar.north east) |
| 83 |
node[pos=0]{0} node[pos=0.2]{20} node[pos=0.4]{40} node[pos=0.6]{60} |
| 84 |
node[pos=0.8]{80} node[pos=1]{100} node[pos=1,right,yshift=-1mm]{km}; |
| 85 |
\end{tikzpicture} |
| 86 |
}; |
| 87 |
|
| 88 |
\end{tikzpicture} |
| 89 |
\vspace*{\fill} |
| 90 |
|
| 91 |
\end{document} |