注意:下面的文本是我在这个网站上找到的,但我的项目正在向我“大喊大叫”。告诉我有什么问题。
重要的事情是:
\underset
它接受两个参数,第一个参数放在第二个参数之下。\mathrm
使其median
直立显示,并将其与 m、e、d、i、a 和 n 的 6 个变量的乘法区分开来。\{
和\}
需要反斜杠,因为{
和}
是 LaTeX 基础语言的一部分。\cup
这对于联盟来说是一个更好的象征。
我的代码:
\documentclass[28pt]{article}
\usepackage{fancyhdr}
\usepackage[includeheadfoot,margin=1.0cm]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43
%\usepackage[table]{xcolor} color certain blocks in a table
%\usepackage[pass,showframe]{geometry} just to show the margins
\usepackage[makeroom]{cancel}
\usepackage{array} %BETWEEN TWO 2-DIGIT NUMBERS
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\thedate}{\today}
\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}
\newenvironment{theorem}[2][Theorem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{lemma}[2][Lemma]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{exercise}[2][Exercise]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\begin{document}
\begin{problem}{C.35}
\textit{Use the formula $T(m,n)=\underset{row n of Pascal's triangle}{\mathrm{\left(1,n,\binom{n}{2},\dotsc,1 \right)}} \cdot \underset{m^{th} powers with alternating signs}{\mathrm{n^{m},-(n-1)^{m},(n-2)^{m}}}$ to calculate T$(10,3)$ and T$(10,4)$.}
\begin{flushleft}
\end{flushleft}
\end{problem}
\end{document}
答案1
这里我使用堆栈作为底集,并以显示样式呈现方程式。
\documentclass[28pt]{article}
\usepackage{fancyhdr}
\usepackage[includeheadfoot,margin=1.0cm]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43
%\usepackage[table]{xcolor} color certain blocks in a table
%\usepackage[pass,showframe]{geometry} just to show the margins
\usepackage[makeroom]{cancel}
\usepackage{array} %BETWEEN TWO 2-DIGIT NUMBERS
\usepackage{stackengine}
\stackMath
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\thedate}{\today}
\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}
\newenvironment{theorem}[2][Theorem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{lemma}[2][Lemma]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{exercise}[2][Exercise]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\begin{document}
\begin{problem}{C.35}
\textit{Use the formula
\[
\renewcommand\stacktype{L}
\renewcommand\useanchorwidth{T}
T(m,n)=\stackunder[1.5\baselineskip]{\mathrm{\left(1,n,\binom{n}{2},\dotsc,1 \right)}}
{\stackunder{\textup{row $n$ of}}{\textup{ Pascal's triangle}}}
\cdot \stackunder[1.5\baselineskip]{\left(\mathrm{n^{m},-(n-1)^{m},(n-2)^{m}},\dots\right)}
{\stackunder{\textup{$m^{th}$ powers with}}{\textup{alternating signs}}}
\]
to calculate T$(10,3)$ and T$(10,4)$.}
\begin{flushleft}
\end{flushleft}
\end{problem}
\end{document}