我希望我的箭头有相同的大小。例如,我无法解释为什么从顶点“a”出来的两个垂直箭头有不同的大小。
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{amsmath}
\begin{document}
$$
\begin{tikzcd} [column sep=small , row sep=small ]
&&& \bullet \ar{dl} \ar{dr}&&& \\
&& \bullet \ar{dl}& \vdots \ar{u}& \bullet \ar{dr}&& \\
& \iddots \ar{dl}&& \bullet \ar{u}&& \ddots \ar{dr}& \\
\bullet \ar{r}& \dotsc \ar{r}& \bullet \ar{r}& a \ar{u} \ar{d}& \bullet \ar{l}& \dotsc \ar{l}& \bullet \ar{l}\\
& \ddots \ar{ul}&& \bullet \ar{d}&& \iddots \ar{ur}& \\
&& \bullet \ar{ul}& \vdots \ar{d}& \bullet \ar{ur}&& \\
&&& \bullet \ar{ul} \ar{ur}&&&
\end{tikzcd}
$$
\end{document}
答案1
您需要根据单元格中心设置列和行的距离。我为您调整了一些点。我将整个图形拉长了一点,以便获得与 相同的角度\ddots
。如果您想要一个对称的图表,则必须稍微旋转这些点。
% arara: pdflatex
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{mathtools}
\usepackage{mathdots}
\makeatletter
\DeclareRobustCommand{\rvdots}{%
\vbox{
\baselineskip4\p@\lineskiplimit\z@
\kern-\p@
\hbox{.}\hbox{.}\hbox{.}
}}
\makeatother
\begin{document}
\[
\begin{tikzcd} [column sep={1.32cm,between origins} , row sep={1cm,between origins} ]
&&& \bullet \ar{dl} \ar{dr}&&& \\
&& \bullet \ar{dl}& \rvdots \ar{u}& \bullet \ar{dr}&& \\
& \iddots \ar{dl}&& \bullet \ar{u}&& \ddots \ar{dr}& \\
\bullet \ar{r}& \cdots \ar{r}& \bullet \ar{r}& a \ar{u} \ar{d}& \bullet \ar{l}& \cdots \ar{l}& \bullet \ar{l}\\
& \ddots \ar{ul}&& \bullet \ar{d}&& \iddots \ar{ur}& \\
&& \bullet \ar{ul}& \rvdots \ar{d}& \bullet \ar{ur}&& \\
&&& \bullet \ar{ul} \ar{ur}&&&
\end{tikzcd}
\]
\end{document}
如果您使用以下方法,则可能需要进行较少的调整:
% arara: pdflatex
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd} [column sep={1cm,between origins} , row sep={1cm,between origins} ]
& & & \bullet \ar{dl} \ar{dr} & & & \\
& & \bullet \ar{ddll}[description,sloped]{\dots} & & \bullet \ar{ddrr}[description,sloped]{\dots} & & \\
& & & \bullet \ar{uu}[description,sloped]{\dots} & & & \\
\bullet \ar{rr}[description]{\dots} & & \bullet \ar{r} & a \ar{u} \ar{d}& \bullet \ar{l} & & \bullet \ar{ll}[description]{\dots}\\
& \ar{ul}&& \bullet \ar{dd}[description,sloped]{\dots} & & & \\
& & \bullet \ar{uull}[description,sloped]{\dots} & & \bullet \ar{uurr}[description,sloped]{\dots} & & \\
& & & \bullet \ar{ul} \ar{ur} & & &
\end{tikzcd}
\]
\end{document}