Eu sou novo no LaTeX. Será útil se alguém me fornecer um código LaTeX simples para o diagrama a seguir

O problema aqui é: eu conheço o código para diagramas de deslocamento como esse somente quando há a seta horizontal. Mas neste diagrama não há seta horizontal.
Responder1
As setas são opcionais. Não se esqueça da cmtipopção, pois as pontas das setas padrão do Xy-pic são realmente horríveis.
\documentclass{article}
\usepackage{amsmath}
\usepackage[all,cmtip]{xy}
\begin{document}
\begin{gather}
\begin{gathered}
\xymatrix{
V \ar[d] \ar[r] & W \ar[d] \\
\mathcal{C}(G,K)^m \ar[r] & \mathcal{C}(G,K)^n
}
\end{gathered}
\\
\begin{gathered}
\xymatrix{
V \ar[d] & W \ar[d] \\
\mathcal{C}(G,K)^m \ar[r] & \mathcal{C}(G,K)^n
}
\end{gathered}
\\
\begin{gathered}
\xymatrix{
V \ar[d] & W \ar[d] \\
\mathcal{C}(G,K)^m & \mathcal{C}(G,K)^n
}
\end{gathered}
\end{gather}
\end{document}
O gatheredambiente é usado para centralizar os diagramas em relação ao número da equação. Se nenhum número for desejado, não é necessário.

Responder2
Aqui estão duas possibilidades, with pst-nodee with tikz-cd:
\documentclass[pdf]{article}
\usepackage{mathtools}
\usepackage{pst-node}
\usepackage{tikz-cd}
\newcommand{\dvarprojlim}[1]{\mathop{\mathstrut\varprojlim\limits_{#1}}}
\begin{document}
\texttt{psmatrix solution: }
\[ \psset{arrows=->, arrowinset=0.25, linewidth=0.6pt, nodesep=3pt,mnode =R, rowsep=1cm, colsep = 1cm}
\begin{psmatrix}
%%% nodes
V & W\\%
\mathcal C(G; K)^m & \mathcal C(G; K)^n
%%% horizontal arrows
\ncline{2,1}{2,2}
%%% vertical arrows
\ncline{1,1}{2,1}\ncline{1,2}{2,2}
\end{psmatrix}
\]
\vskip 1cm
\texttt{tikz-cd solution: }
\[ \begin{tikzcd}\
V \arrow{d}& W\arrow{d} \\%
\mathcal C(G; K)^m \arrow{r}& \mathcal C(G; K)^n
\end{tikzcd}
\]
\end{document}

Responder3
Duas maneiras diferentes de fazer isso comMetaPost, usando oboxeseMetaObjpacote respectivamente, e produzindo o mesmo resultado. Incluído em um programa LuaLaTeX através doluamplibpacote para conveniência de composição tipográfica.
\documentclass[border=2mm, multi=mplibcode]{standalone}
\usepackage{luamplib}
\mplibtextextlabel{enable}
\begin{document}
\begin{mplibcode}
input boxes
beginfig(1);
boxit.V("$V$");
boxit.W("$W$");
boxit.Cm("$\mathcal{C}(G;K)^m$");
boxit.Cn("$\mathcal{C}(G;K)^n$");
Cn.w - Cm.e = (cm, 0);
V.s - Cm.n = (0, cm) = W.s - Cn.n;
drawunboxed(V, W, Cm, Cn);
drawarrow V.s -- Cm.n;
drawarrow W.s -- Cn.n;
drawarrow Cm.e -- Cn.w;
endfig;
\end{mplibcode}
\begin{mplibcode}
input metaobj
beginfig(1);
mat = new_Matrix_(2,2)(
new_Box_("$V$")("framed(false)"),
new_Box_("$W$")("framed(false)"),
new_Box_("$\mathcal{C}(G;K)^m$")("framed(false)"),
new_Box_("$\mathcal{C}(G;K)^n$")("framed(false)"))
("hsep(1cm)", "vsep(1cm)");
mcline.Obj(mat)(1,1, 2,1);
mcline.Obj(mat)(1,2, 2,2);
mcline.Obj(mat)(2,1, 2,2);
Obj(mat).c = origin;
draw_Obj(mat);
endfig;
\end{mplibcode}
\end{document}




