在 LaTeX 中绘制 F0

在 LaTeX 中绘制 F0

我正在寻找一种在 LaTeX 中实现此目的的方法。我希望将句子的 F0 置于句子上方或句子底部,如附图所示。 在此处输入图片描述 非常感谢 Muhamamd

答案1

在此处输入图片描述

tikz使用包和库来做这件事相当简单tikzmark。这里有很多参数,你可以摆弄它们来得到你想要的东西。

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\usetikzlibrary{calc}
\begin{document}
    \{\tikzmarknode{A}{W}ould you like some c\tikzmarknode{B}{o}\tikzmarknode{C}{ff}e\tikzmarknode{D}{e}\}
    \begin{tikzpicture}[overlay, remember picture]
        \coordinate (point 1) at ($(A.north) + (0, 0.2)$);
        \coordinate (point 2) at ($(B.north) + (0, 0.6)$);
        \coordinate (point 3) at ($(C.north) + (0.05, 0.3)$);
        \coordinate (point 4) at ($(D.north) + (0, 0.6)$);
        \draw[fill=black] (point 1) circle[radius=0.075cm];
        \draw[fill=black] (point 2) circle[radius=0.075cm];
        \draw[fill=black] (point 3) circle[radius=0.075cm];
        \draw[fill=black] (point 4) circle[radius=0.075cm];
        \draw (point 1) -- ($(point 1) + (2, 0)$) to[out=0, in=-135] (point 2);
        \draw (point 2) to[out=-60, in=150] (point 3);
        \draw (point 3) to[out=30, in=-120] (point 4);
        \draw ($(B.south) + (0, -0.1)$) -- ($(B.south) - (0, 0.5)$);
        \node[below right] at ($(B.south) - (0.15, 0.5)$) {H\(^*\)LH\%};
        \node[below] at ($(A.south) - (0, 0.5)$) {\%L};
    \end{tikzpicture}
\end{document}

相关内容