你好,我是硕士生,刚开始接触 LaTeX。我写了一个程序,可以在显示屏上显示坐标,而不是我想要的标签,就像这样显示。。
\documentclass[a4paper, oneside]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \Point/\PointLabel in {(0,0), (-0.08,-0.75), (-0.22,-1.5), (-0.44,-2.25), (-1.01,-3.5), (-1.49,-4.25), (-2.09,-5), (-2.87,-5.75)/,}
\draw[thick, fill=black] \Point circle (0.08) node[below right] {$\PointLabel$};
\draw[thick, black] (0,0.4) arc (0:-52:8cm);
\end{tikzpicture}
\end{document}
仍然有问题,如果有配置问题,请帮助我
答案1
在 OP 的 MWE 中,没有提供标签,所以我将它们添加到\foreach
数据列表中。
\documentclass[a4paper, oneside]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \Point/\PointLabel in {(0,0)/B=P_n, (-0.08,-0.75)/P_{a=1},
(-0.22,-1.5)/P_k, (-0.44,-2.25)/Q_k, (-1.01,-3.5)/P_{k-1},
(-1.49,-4.25)/P_2, (-2.09,-5)/P_1, (-2.87,-5.75)/A=P_0,}
\draw[thick, fill=black] \Point circle (0.08) node[below right] {$\PointLabel$};
\draw[thick, black] (0,0.4) arc (0:-52:8cm);
\end{tikzpicture}
\end{document}