答案1
为了得到更完整的答案(来自 Luis Turcio 的答案),我建议这样做:
\documentclass{article}
\usepackage{annotate-equations}
\begin{document}
\tikzmarknode{n1}{\underline{This}} \tikzmarknode{n2}{\underline{is}} \tikzmarknode{n3}{\underline{some}} \tikzmarknode{n4}{\underline{text}}
\annotate[yshift=-0.5em]{below}{n4}{some info}
\annotate[yshift=-2em,xshift=.2em]{below}{n3}{some more info}
\annotate[yshift=-3.5em,xshift=4em]{below}{n2}{other info}
\annotate[yshift=-5em,xshift=6.5em]{below}{n1}{as well}
\end{document}
输出:
答案2
这是一种可能性,annotate-equations
建议也可以这样做tikzmark
\documentclass{article}
\usepackage{annotate-equations}
\begin{document}
\tikzmarknode{n1}{This} \tikzmarknode{n2}{is} \tikzmarknode{n3}{some} \tikzmarknode{n4}{text}
\annotate[yshift=-0.5em]{below}{n4}{some info}
\annotate[yshift=-2em,xshift=.2em]{below}{n3}{some more info}
\annotate[yshift=-3.5em,xshift=4em]{below}{n2}{other info}
\annotate[yshift=-5em,xshift=6.5em]{below}{n1}{as well}
\end{document}