Is there any way I can get the pin icon / symbol (that us usually used on maps)? Any icon similar to the attached one would do. I am trying to use this symbol instead of stating 'Address' in one of my documents. Any input, suggestions or advice will be greatly appreciated.
[Tex/LaTex] Code for pin icon on a map
graphicssymbols
Related Solutions
I'm using TikZ to draw the symbol:
\documentclass{article}
\usepackage{tikz}
\newcommand{\ExternalLink}{%
\tikz[x=1.2ex, y=1.2ex, baseline=-0.05ex]{%
\begin{scope}[x=1ex, y=1ex]
\clip (-0.1,-0.1)
--++ (-0, 1.2)
--++ (0.6, 0)
--++ (0, -0.6)
--++ (0.6, 0)
--++ (0, -1);
\path[draw,
line width = 0.5,
rounded corners=0.5]
(0,0) rectangle (1,1);
\end{scope}
\path[draw, line width = 0.5] (0.5, 0.5)
-- (1, 1);
\path[draw, line width = 0.5] (0.6, 1)
-- (1, 1) -- (1, 0.6);
}
}
\begin{document}
See Wikipedia \ExternalLink for more information.
\end{document}
These symbols remind of footnote symbols, which following this sequence: (1) *
, (2), \dagger
, (3) \ddagger
, (4), \mathsection
, (5) \mathparagraph
, (6) \|
, (7) **
, (8) \dagger\dagger
and (9) \ddagger\ddagger
. You'll notice this sequence when viewing the definition of \@fnsymbol
(from latex.ltx
):
\def\@fnsymbol#1{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
\mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
\or \ddagger\ddagger \else\@ctrerr\fi}}
It only carries symbols up to 9, after which an error is thrown. If needed, you can define your own symbol-extraction macro (or use the above) and pick symbols from it in a very generic way:
\documentclass{article}
\makeatletter
\newcommand{\ssymbol}[1]{^{\@fnsymbol{#1}}}
\makeatother
\begin{document}
$x\ x\ssymbol{1}\ x\ssymbol{2}\ x\ssymbol{3}\ x\ssymbol{4}\ x\ssymbol{5} x\ssymbol{6}\ x\ssymbol{7}\ x\ssymbol{8}\ x\ssymbol{9}$
\end{document}
Perhaps, define your own \@ssymbol
macro in a similar way to \@fnsymbol
that adds to your symbol selection from those included in the Comprehensive LaTeX symbol list. This is preferred since it also promotes consistency and allows you to easily change your mind later. For example, if you don't want \ddagger\ddagger
for \ssymbol{9}
, just update the definition and everything else will fall in place; no need to manually replace all \ddagger\ddagger
with <new preferres symbol>
.
As a showcase, \ssymbol{<num>}
provides some letters from the Greek alphabet as "symbols":
\documentclass{article}
\usepackage{multido}% http://ctan.org/pkg/multido
\makeatletter
\newcommand{\@ssymbol}[1]{\ifcase#1\or\alpha\or\beta\or\gamma\or\delta\or\epsilon\or\varepsilon
\or\zeta\or\eta\or\theta\or\vartheta\or\iota\or\kappa\or\lambda\or\mu\or\nu\or\xi\or\pi
\or\varpi\or\rho\or\varrho\or\sigma\or\varsigma\or\tau\or\upsilon\or\phi\or\varphi\or\chi
\or\psi\or\omega\else\@ctrerr\fi}
\newcommand{\ssymbol}[1]{^{\@ssymbol{#1}}}
\makeatother
\begin{document}
$x \multido{\i=1+1}{15}{\ x\ssymbol{\i}}$ \par
$x \multido{\i=16+1}{14}{\ x\ssymbol{\i}}$
\end{document}
Best Answer
A
tikz
solution (as standalone image):The both radii and the length of the tip can be configured using the dimen registers
\pinA
,\pinB
,\pinC
, all three measured from the origin in the middle of the circles. The color can be set via color namepin
.Usage
The file can be stored as
pin.tex
, then runpdflatex pin
to getpin.pdf
. The following example automatically scales the image to the size of uppercase letters, when included as image: