
有一些圖表有點複雜,我使用數組包來繪製基本的圖表,我的意思是正方形圖表。但是可以透過 [array] 套件繪製任何圖表嗎?例如,
你可以幫助我嗎,我可以以同樣的方式模仿,非常感謝
答案1
一個相當不錯的圖表是透過以下方式獲得的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}
答案2
您可以嘗試 xypic 軟體包。看到這個頁用於手冊和文件。
答案3
或使用tikz
positioning
圖書館
這是代碼:
% 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}