\underleftarrow
当在边缘倾斜的方程上使用时,箭头看起来不是直的。以下是示例:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}
\node (a) at (0,0) {a};
\node (b) at (2, 8) {b};
\draw (a) to node[above,sloped]
{\(\underleftarrow{xxxxxxxxxxxxxxxxxxxxxxxxxxx}\)} (b);
\end{tikzpicture}
\end{document}
截屏:
我该如何修复它?
答案1
如果你想一劳永逸地解决这个问题,切换到 Ti 并不难钾Z 自己的箭
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}
\node (a) at (0,0) {a};
\node (b) at (2, 8) {b};
\draw (a) to node(c)[above=10,sloped]{$xxxxxxxxxxxxxxxxxxxxxxxxxxx$}(b);
\draw[->](c.south east)--(c.south west);
\end{tikzpicture}
\end{document}