大きな数式が占めるスペースを削減する

大きな数式が占めるスペースを削減する

ファイル内に大きな数式がいくつかあり、多くのスペースを占有しています。サイズを縮小する方法について教えてください。\declaremathsizes の使用をすでに試しましたが、数式のフォント サイズが縮小されるだけで、占有するスペースは縮小されません。例を次に示します。

\documentclass[12pt,twocolumn,headings=normal]{article}
\usepackage{fullpage}
\usepackage{amsmath}
%\DeclareMathSizes{12}{1}{1}{1}
\begin{document}
this is the problem equation..
\begin{equation}
P^{bb}_{g}(n,p)=\begin{cases}
0, & \text{if $n=0$}.\\
0, & \text{if $n=1$}.\\
p*P^{bb}_{g}(n-1,p)+\\
(1-p)^2+p*(1-p) \\
*P^{bb}_{g}(n-2,p) , & \text{if $n \geq 2$}.\nonumber
\end{cases}
\end{equation}

i have many like this and it eats lot of space.

\end{document}

答え1

考えられる解決策の1つ。

ここに画像の説明を入力してください

コード

\documentclass[12pt,twocolumn,headings=normal]{article}
\usepackage{fullpage}
\usepackage{amsmath}
%\DeclareMathSizes{12}{1}{1}{1}
\begin{document}

\begin{equation*}
P^{bb}_{g}(n,p)=\begin{cases}
0, & \text{if $n=0~\&~1$}.\\
p*P^{bb}_{g}(n-1,p) +(1-p)^2 &\\ 
{}+p*(1-p) *P^{bb}_{g}(n-2,p) , & \text{if $n \geq 2$}.
\end{cases}
\end{equation*}

\end{document}

答え2

ここに画像の説明を入力してください

\documentclass[12pt,twocolumn,headings=normal]{article}
\usepackage{fullpage}
\usepackage{amsmath}
%\DeclareMathSizes{12}{1}{1}{1}
\begin{document}
this is the problem equation..

If $n \geq 2$ then
\begin{multline*}
P^{bb}_{g}(n,p)=*P^{bb}_{g}(n-1,p)+{}\\
(1-p)^2+p*(1-p) 
*P^{bb}_{g}(n-2,p)
\end{multline*}
Otherwise $P^{bb}_{g}(n,p)=0$

i have many like this and it eats lot of space.



\end{document}

関連情報