# code of this picture

What is the code for write this mapps in this picture?

• If you download papers from the arxiv, it is not hard to get the original tex code for each file. For example, look here: arxiv.org/abs/1907.13006 and click on "Other formats". Then click on "source". You should get the original tex file we wrote. That gives you lots of examples of code you can copy from. – Benjamin McKay Oct 21 at 19:02

## 3 Answers

With tikz-cd:

\documentclass[margin=3mm]{standalone}
\usepackage{tikz-cd}

\begin{document}
\begin{tikzcd}[cells = {nodes={minimum width=3.5em, inner xsep=0pt}},
row sep=0pt]
\rho:G \ar[r]           &   GL(V)   \\
s      \ar[r, mapsto]   &   \rho_s
\end{tikzcd}
\end{document}


amsmath and mathtools each provide extensible versions of \rightarrow and \mapsto using \xrightarrow{<stuff>} and \xmapsto{<stuff>}.

Below I inserted a 1em space (using \quad) as the arguments (<stuff>) to both. You can use \hspace{<len>} where you specify an appropriate <len>gth (see What commands are there for horizontal spacing?).

\documentclass{article}

\usepackage{mathtools}

\begin{document}

\begin{align*}
\rho \colon G &\xrightarrow{\quad} GL(V) \\
s &\xmapsto{\quad} \rho_s
\end{align*}

\end{document}

\begin{document}
$\rho:G \longrightarrow GL(V)$

$s\longmapsto \rho_s$
\end{document}


This should reproduce the above picture..

• How to adjust Length of arrow? – mohammed Oct 21 at 18:17