我该如何使这个语句符合默认边距?
\documentclass[12pt, a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{bm}
\usepackage{nccmath}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs}
\begin{document}
\[
\binom{9}{2}p^2(1-p)^7 \binom{7}{3}({(1-(1-p)^2})^3({(1-p)^2})^4 \binom{4}{1}({(1-(1-p)^3})^1({(1-p)^3})^3 \binom{3}{0}p^0(1-p)^3
\]
\end{document}
谢谢。
答案1
这是一种可能性,结合multline*
和来自的中等大小二项式系数nccmath
。我还删除了一些虚假的左括号。
无关amsmath
:加载的时候不用加载mathtools
。
\documentclass[12pt, a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.3pt}
\usepackage{bm}
\usepackage{nccmath}
\usepackage{graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs}
\begin{document}
\vspace*{4ex}
\begin{multline*}
\mbinom{9}{2}p^2(1-p)^7 \mbinom{7}{3}\bigl(1-(1-p)^2\bigr)^3\bigl((1-p)^2\bigr)^4 \mbinom{4}{1} \cdot {}\\[-0.5ex]
\cdot\bigl(1-(1-p)^3\bigr)^1\bigl((1-p)^3\bigr)^3 \mbinom{3}{0}p^0(1-p)^3
\end{multline*}
\end{document}
答案2
替换 (1-p)=q
\documentclass[12pt, a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{bm}
\usepackage{nccmath}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs}
\begin{document}
\[
\binom{9}{2}p^2q^7 \binom{7}{3}({(1-(q)^2})^3({(q)^2})^4 \binom{4}{1}({(1-
(q)^3})^1({(q)^3})^3 \binom{3}{0}p^0(q)^3
\]
\end{document}