Since there is no map marker symbol in the symbols list (at least I could not find it) I decided to draw it with TikZ. This is it:
\documentclass{article}
\usepackage{tikz}
\newcommand{\point}{\tikz{
\draw [rounded corners,blue, fill=blue](0,0) .. controls (-.05em,.2ex) and (-.3em,1.2ex) .. (0em,2.2ex) .. controls (.3em,1.2ex) and (.05em,.2ex) .. (0,0);
\draw [blue,fill=white](0,1.15ex) circle (0.12em);}
}
\begin{document}
\tiny tiny \point text
\normalsize normal \point text
\Huge huge \point text
\end{document}
The problem is that it does not scale properly if I change the font size, for example {\Large text \point text}
Do I need to draw a different symbol for each size I use or is there a way to let it scale properly?
Best Answer
The problem is the
rounded corners
part, which is not relative to the font size. So the solution is to setrounded corners=<x>ex
, then it depends on the font size. The following example shows a solution an illustrated the problem with simple corners:\cornerI
is rounded with the absolute same radius, while\cornerII
is rounded with a radius proportional to the font size.Furthermore it’s not a good idea to mix
em
andex
because they don’t scale the same way. Hav a look at the following example: The\Square
is perfect for\Huge
but not for smaller sizes.The reason is that the ratio 1em/1ex isn’t the same for all font sizes …
… and it even depends on the font itself.