código para diagramas conmutativos

código para diagramas conmutativos

Hay algunos diagramas que son un poco complicados, uso el paquete de matriz para dibujar los básicos, es decir, los cuadrados. pero ¿es posible dibujar algún diagrama mediante el paquete [matriz]? Por ejemplo ingrese la descripción de la imagen aquí , ¿puedes ayudarme con esto? Puedo imitar de la misma manera. Muchas gracias.

Respuesta1

Se obtiene un diagrama bastante bonito con tikz-cd:

\documentclass{article}
\usepackage{tikz,tikz-cd}

\begin{document}

\[
\begin{tikzcd}[column sep=2.5pc,row sep=2pc]
{} & B \arrow{d} \arrow[bend left]{dddrr} \\
A \arrow{r} \arrow{rrd} \arrow[bend right]{rrrdd} & G \\
{} & {} & P \arrow{ul}[swap]{\tilde{\varphi}} \\
{} & {} & {} & B*C \arrow{ul}[swap]{\nu}
\end{tikzcd}
\]

\end{document} 

ingrese la descripción de la imagen aquí

Respuesta2

Podrías probar el paquete xypic. Mira estopáginapara manuales y documentación.

Respuesta3

O bien usando eltikz positioningbiblioteca

captura de pantalla

Aquí está el código:

% arara: pdflatex

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

% arrows set as stealth fighters
\tikzset{>=stealth}

\begin{document}

\begin{tikzpicture}
    % setup the nodes
    \node (B){$B$};
    \node[below=of B](G){$G$};
    \node[left=of G](A){$A$};
    \node[below right=of G](P){$P$};
    \node[below right=of P](BstarC){$B*C$};
    % connect them
    \foreach \start/\finish/\mylabel in {B/G/, A/G/, A/P/, P/G/$\tilde{\varphi}$, BstarC/P/$\nu$}
    {
        \draw[->](\start)--(\finish) node[midway,above]{\mylabel};
    }
    % bended arrows
    \draw[->](A) to[bend right=30] (BstarC);
    \draw[->](BstarC) to[bend right=20] (B);
\end{tikzpicture}

\end{document}

información relacionada