如何画一条从一端到另一端连接一个点的线?
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\begin{document}
\[
\begin{matrix}
\bullet & \bullet & \bullet \\
\bullet & \bullet & \bullet \\
\bullet & \bullet & \bullet \\
\end{matrix}
\]
\end{document}
答案1
只是猜测......使用 tikz` 你可以将矩阵写为:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\[
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,
nodes={inner sep=-0.5pt, outer sep=-0pt},
column sep=1ex, row sep=1ex
]
{
\bullet & \bullet & \bullet \\
\bullet & \bullet & \bullet \\
\bullet & \bullet & \bullet \\
};
\draw[red] (m-1-1) -- (m-1-3);
\end{tikzpicture}
\]
\end{document}
或者像这样——项目符号被绘制为节点:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
\[
\begin{tikzpicture}
\matrix (m) [matrix of nodes,
nodes in empty cells,
nodes={circle, fill, inner sep= 1pt, outer sep=0pt},
column sep=1ex, row sep=1ex
]
{
& & \\
& & \\
& & \\
};
\draw[red] (m-1-1) to[bend left] (m-1-3);
\end{tikzpicture}
\]
\end{document}