增加 TikZ 箭头的弧度

增加 TikZ 箭头的弧度

这个问题是TikZ 箭头在斜体文本中未对齐

我正在使用 TikZ 绘制一个从一个字符到另一个字符的箭头\path edge[]。但箭头的弧线太平,以至于接触到箭头。理想情况下,我会让弧线更陡峭。我假设我可以使用 TikZ 的arc选项 (?) 来做到这一点,但根据我在 pgf 手册中读到的内容,我还没能弄清楚如何正确使用它。

\documentclass{article}
\usepackage{fontspec,tikz}
    \setsansfont{Linux Biolinum O}
\begin{document}
\textsf{\textit{ac\tikz[baseline, remember picture] \node[inner sep = 0pt, anchor = base] (finisharrow){e};rn\tikz[baseline, remember picture] \node[inner sep = 0pt, anchor = base] (startarrow){a};}}
\begin{tikzpicture}[remember picture, overlay, shorten <=.2ex, shorten >=.2ex]
    \path[->, semithick](startarrow.70) edge[out = 90, in = 90] (finisharrow.70);
\end{tikzpicture}
\end{document}

在此处输入图片描述

答案1

用于loosenes=<value>增加圆弧的半径:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\textsf{\textit{ac\tikz[baseline, remember picture] \node[inner sep = 0pt, anchor = base] (finisharrow){e};rn\tikz[baseline, remember picture] \node[inner sep = 0pt, anchor = base] (startarrow){a};}}
\begin{tikzpicture}[remember picture, overlay, shorten <=.2ex, shorten >=.2ex]
    \path[->, semithick](startarrow.70) edge[out = 90, in = 90, looseness=2] (finisharrow.70);
\end{tikzpicture}
\end{document}

相关内容