我正在写一篇双栏格式的论文。我有一个如下的数学表达式
$G(s)= \frac{8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 + 22088s^2 + 185660s + 4020}{s^8+66s^7+546s^6+4436s^5+22349s^4+63484s^3 +143124s^2+104684s+4020}$
此表达式越过第一列进入第二列。如果可能的话,我应该怎么做才能将分子和分母的一部分对齐到下一行。这不包含在 begin{equation} 和 end{equation} 中,我也不希望它包含在其中。这是一个简单的数学表达式,我想要像此链接中的图片中显示的那样 1]1
答案1
您可以使用splitfrac
命令mathtools
,该命令可以将分子或分母分成两行:
\documentclass[twocolumn]{book}
\usepackage[utf8]{inputenc}
\usepackage{fourier, heuristica}
\usepackage{mathtools}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
\noindent$G(s)= \frac{\splitfrac{8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 }{+ 22088s^2 + 185660s + 4020}}{\splitfrac{\rule{0pt}{1.9ex}\mathstrut s^8+66s^7+546s^6+4436s^5+22349s^4+63484s^3}{ +143124s^2+104684s+4020}}$
\lipsum[3-6]
\end{document}
答案2
无法将分数分割到各个行,无论是自动的还是手动的。
这里有三个建议,但第一个对于读者来说相当晦涩难懂;展示这样的大公式要好得多。
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath} % for \mfrac
\begin{document}
Some text some text some text some text some text some text
some text some text some text some text some text some text
$G(s)= (8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 + 22088s^2 + 185660s + 4020)%
(s^8+66s^7+546s^6+4436s^5+22349s^4+63484s^3 +143124s^2+104684s+4020)^{-1}$
some text some text some text some text some text some text
some text some text some text some text some text some text
\[
G(s)=
\tfrac{8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 + 22088s^2 + 185660s + 4020}
{s^8+66s^7+546s^6+4436s^5+22349s^4+63484s^3 +143124s^2+104684s+4020}
\]
some text some text some text some text some text some text
some text some text some text some text some text some text
\[
G(s)=
\mfrac{8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 + 22088s^2 + 185660s + 4020}
{s^8+66s^7+546s^6+4436s^5+22349s^4+63484s^3 +143124s^2+104684s+4020}
\]
some text some text some text some text some text some text
some text some text some text some text some text some text
\end{document}
第一种方法对于两列来说可能很有用(尽管难以阅读):
\documentclass[twocolumn]{article}
\usepackage{amsmath}
\begin{document}
Some text some text some text some text some text some text
some text some text some text some text some text some text
$G(s)= (8s^7 + 414s^6 + 5682s^5 + 34380s^4 + 12564s^3 + 22088s^2 + 185660s + 4020)%
(s^8+66s^7+546s^6+4436s^5+22349s^4+63484s^3 +143124s^2+104684s+4020)^{-1}$
some text some text some text some text some text some text
some text some text some text some text some text some text
\end{document}