我想在单词底部写索引
Word(min a element b)
我想将“min a element b”精确地放在“Word”的底部,我不知道该怎么做,我会尝试Word$_{min a element b}$,但它不能满足我的意图。任何帮助表示感谢
答案1
如果它是一个具体的词并且amsmath
可以使用,解决方案很简单:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\def\Word{\operatorname{Word}\limits}
\[
\Word_{\textrm{min a element b}}\limits
\]
or $\Word_{\textrm{min a element b}}\limits$
\end{document}
答案2
这是另一种选择。
\documentclass[11pt]{article}
\usepackage[usestackEOL]{stackengine}
\begin{document}
This is a \stackunder[1pt]{Word}{\scriptsize min a element b} in text.
And in math wit a deep underset:
\[
y = A + \stackunder[5pt]{Word}{\scriptsize min a element b}
\]
and in math using width of base word (ignoring underset width):
\[\def\useanchorwidth{T}
y = A + \stackunder{Word}{\scriptsize underset}
\]
Then there is this, a left-aligned, multi-line understack:
\[
\stackunder{Word}{\scriptsize\Longstack[l]{Four score\\ and seven\\ years ago}} = mx + b
\]
\end{document}