我用美商:
\documentclass{amcs}
\begin{document}
\[ \frac {SySM_Accuracy - Ens_Accuracy} \sqrt{ \frac {SySM_Accuracy * (1-SySM_Accuracy) } {number of testing rec } + \frac {Ens_Accuracy * (1-Ens_Accuracy) } {number of testing rec } } }\]
\end{document}
以下是超出段落列的结果。我该如何将其与模板匹配?
答案1
您无法将这个庞然大物放入狭窄的柱子中。使用符号表示次级分数。
\documentclass{amcs}
\usepackage{amsmath}
\usepackage{lipsum} % just for the example
\newcommand{\tvar}[2]{%
\mathrm{#1}_{\mathrm{#2}}%
}
\begin{document}
\title{Title}
\author[ad1][]{First name LAST NAME}
\correspondingauthor{Fifth AUTHOR}
\address[ad1]{Institute of xxx xxx xxx xxx\\ University of xxx xxx,
Address xxx xxx xx xxx xxx\\ e-mail: \url{xxx xx xxx}}
\maketitle
\lipsum*[1-3]
\[
\frac
{\tvar{SySM}{Accuracy} - \tvar{Ens}{Accuracy}}
{\sqrt{F(\tvar{SySM}{Accuracy})+F(\tvar{Ens}{Accuracy})}}
\]
where
\[
F(x)=\frac{x(1-x)}{\textup{number of testing rec}}
\]
\lipsum
\end{document}
答案2
通过包的帮助mathools
您可以获得:
\documentclass[twocolumn]{article}
\usepackage{mathtools}
\usepackage{lipsum}
\begin{document}
\[
\frac{\mathrm{SySM}_{\mathrm{Accuracy}} - \mathrm{Ens}_{\mathrm{Accuracy}}}
{\sqrt{\splitdfrac{\frac{\mathrm{SySM}_{\mathrm{Accuracy}} * (1-\mathrm{SySM}_{\mathrm{Accuracy}})}
{\text{number of testing rec}} + }
{\frac{\mathrm{Ens}_{\mathrm{Accuracy}}* (1-\mathrm{Ens}_{\mathrm{Accuracy}})}
{\text{number of testing rec}} }
}
}
\]
\lipsum
\end{document}
然而,如果您遵循 David Carlisle 在上述评论中的指示,您将获得更好的结果。