![在頂點/邊上繪製帶有文字的三角形](https://rvso.com/image/391012/%E5%9C%A8%E9%A0%82%E9%BB%9E%2F%E9%82%8A%E4%B8%8A%E7%B9%AA%E8%A3%BD%E5%B8%B6%E6%9C%89%E6%96%87%E5%AD%97%E7%9A%84%E4%B8%89%E8%A7%92%E5%BD%A2.png)
答案1
或者,如果你想要一個等邊三角形:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning}
\newcommand{\mytri}[2]{%}
\begin{tikzpicture}[baseline=(a.south)]
\node[
draw,
regular polygon,
regular polygon sides=3,
text width=.2em
] (a) {};
\node[above=0pt of a] {$#1$};
\node[below=0pt of a] {$#2$};
\end{tikzpicture}}
\begin{document}
\begin{enumerate}
\item \dots
\item For each subtree of the form
\mytri{A}{\alpha_{1} \ldots \alpha_{n}}
do \dots
\end{enumerate}
\end{document}
答案2
含純鈦kZ。
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{enumerate}
\item \dots
\item For each subtree of the form
\begin{tikzpicture}[baseline=0.5em]
\node (a){$\alpha_{1} \ldots \alpha_{n}$};
\draw (a.90) + (0,0.3) node[above]{$A$} -- (a.30) -- (a.150) -- cycle;
\end{tikzpicture}
do \dots
\end{enumerate}
\end{document}