Is there a \ding symbol for a house? I need it for my CV, but can't find it. Thanks
[Tex/LaTex] \ding symbol for a house
symbols
Related Solutions
The MnSymbol
package offers \upmapsto
and \downmapsto
:
\documentclass{article}
\usepackage{MnSymbol}
\begin{document}
$\upmapsto\quad\downmapsto$
\end{document}
However, using this package will change some other symbols, and this might be no desirable. In this particular case, since the arrow is needed for a commutative diagram I suggest using the tikz-cd
package and its mapsto
option for arrows:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
A \arrow{r}{\psi} \arrow[mapsto,color=red]{d}
& B \\
C \arrow[mapsto,color=red]{r}[color=blue]{\eta}
& D \arrow[mapsto,color=red]{u}
\end{tikzcd}
\end{document}
Now that an edit has been made to the original question including the desired commutative diagram, here it is using tikz-cd
:
\documentclass{article}
\usepackage{tikz-cd}
\newcommand\tikzmark[5][0]{%
\tikz[overlay,remember picture,baseline] \node [rotate=#1,anchor=base,xshift=#4,yshift=#5] (#2) {$\scriptstyle#3$};}
\begin{document}
\begin{tikzcd}
0 \arrow{r} &
A_{n+1} \arrow{r} \arrow{d} &
B_{n+1} \arrow{r} \arrow{d} &
C_{n+1} \arrow{r} \arrow{d} &
0 \arrow{d}
\\
&
A_n \arrow{r} \arrow{d} &
\tikzmark{s}{b}{14pt}{-9pt}B_n \arrow{r} \arrow{d}{d_n} &
\tikzmark{s}{c}{-2pt}{-8pt}\tikzmark{e}{0}{-2pt}{-24pt}\tikzmark[270]{a}{\mapsto}{14pt}{-4pt}
C_n \arrow{r}{g_n} \arrow{d} &
0 \arrow{d}
\\
&
A_{n-1} \arrow{r}{a} &
B_{n-1} \arrow{r}{f_{n-1}} &
C_{n-1} \arrow{r} & 0
\end{tikzcd}
\end{document}
A variation of \tikzmark
was used to position some special characters; in particular, the vertical "downmapsto" arrow was obtained with the rotate=270
option applied to a standard \mapsto
The package mathabx
provides all arrows of this kind. The one you're looking for is \updownarrows
.
\documentclass{article}
\usepackage{mathabx}
\begin{document}
$\upuparrows$ - $\downdownarrows$ - $\updownarrows$ - $\downuparrows$
\end{document}
For such questions, a good place to look at is the comprehensive LaTeX symbols list.
Note that mathabx
redefines many symbols. An alternative is the following code, which produces updownarrows in a pure-latex fashion, but as you can see, the result is still not fully identical to amssymb
's \upuparrows
.
\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\updownarrows}{\mathbin\uparrow\hspace{-.5em}\downarrow}
\newcommand{\downuparrows}{\mathbin\downarrow\hspace{-.5em}\uparrow}
\begin{document}
$\upuparrows$ - $\downdownarrows$ - $\updownarrows$ - $\downuparrows$
\end{document}
A possible solution would be to redefine \upuparrows
and \downdownarrows
as well :
\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\updownarrows}{\mathbin\uparrow\hspace{-.3em}\downarrow}
\newcommand{\downuparrows}{\mathbin\downarrow\hspace{-.3em}\uparrow}
\renewcommand{\upuparrows}{\mathbin\uparrow\hspace{-.3em}\uparrow}
\renewcommand{\downdownarrows}{\mathbin\downarrow\hspace{-.3em}\downarrow}
\begin{document}
$\upuparrows$ - $\downdownarrows$ - $\updownarrows$ - $\downuparrows$
\end{document}
In comments, egreg proposed the following answer, for the same result (well, not technically the same), but with a cleaner code. It will probably give better spacing results if used within longer formulas :
\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\updownarrows}{\uparrow\mathrel{\mspace{-1mu}}\downarrow}
\newcommand{\downuparrows}{\downarrow\mathrel{\mspace{-1mu}}\uparrow}
\renewcommand{\upuparrows}{\uparrow\uparrow}
\renewcommand{\downdownarrows}{\downarrow\downarrow}
\begin{document}
$\upuparrows$ - $\downdownarrows$ - $\updownarrows$ - $\downuparrows$
\end{document}
Best Answer
We can use direct
\pdfliteral
. For example: