我正在尝试在 LateX 中输入语言公式。示例如下:
https://upload.wikimedia.org/wikipedia/en/8/8e/AmerEngFlappingRule_annotated.PNG
答案1
不清楚红色数字是所需答案的一部分还是仅仅是注释。如果需要,请对此发表评论。
\documentclass{article}
\usepackage{stackengine,scalerel}
\setstackEOL{\\}
\renewcommand\stackalignment{l}
\begin{document}
\[
\left[\Centerstack{+ stop\\+ consonant\\+ alveolar}\right]
\rightarrow [\mathbf{r}]
\scalerel{/}{\Centerstack{\\\\}}
\left[\Centerstack{+ vowel\\+ stressed}\right]
\Centerstack{\\\\\makebox[2em]{\hrulefill}}
\left[\Centerstack{+ vowel\\$-$ stressed}\right]
\]
\end{document}
全部以粗体显示:
\documentclass{article}
\usepackage{tabstackengine,scalerel}
\renewcommand\stackalignment{l}
\TABstackTextstyle{\bfseries}
\begin{document}
\[
\left[\tabbedCenterstack{+ stop\\+ consonant\\+ alveolar}\right]
\rightarrow [\tabbedCenterstack{r}]
\scalerel{/}{\Centerstack{\\\\}}
\left[\tabbedCenterstack{+ vowel\\+ stressed}\right]
\Centerstack{\\\\\makebox[2em]{\hrulefill}}
\left[\tabbedCenterstack{+ vowel\\$-$ stressed}\right]
\]
\end{document}