我怎样才能在投影机中写出这个长方程式
\mathbb{E}^{x}[f(X_{\tau})]&=f(x)+\mathbb{E}^{x}\left[\int_{0}^{\tau}\left(\sum_{i}u_{i} (s,\omega)\frac{\partial
f}{\partial
x_{i}}(X_{s})+\frac{1}{2}\sum_{i,j}(v.v^{T})_{i,j}(s,\omega)\frac{\partial^{2}f}{\partial
x_{i}\partial x_{j}}(X_{s}) \right)\diff s \right]
guz 当我使用 align 时给出错误告诉我缺少 { 这是因为 \right) 或 \right]
\documentclass{beamer}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\diff}{\mathop{}\mathopen{}\mathrm{d}}
\begin{document}
\begin{frame}
\begin{align*}
\mathbb{E}^{x}[f(X_{\tau})]&=f(x)+\mathbb{E}^{x}\left[\int_{0}^{\tau}\left(\sum_{i}u_{i}(s,\omega)\frac{\partial
f}{\partial x_{i}}(X_{s})\\
&+\frac{1}{2}\sum_{i,j}(v.v^{T})_{i,j}(s,\omega)\frac{\partial^{2}f}{\partial
x_{i}\partial x_{j}}(X_{s}) \right)\diff s \right] \end{align*}
\end{frame}
\end{document}
答案1
匹配不成对的\left<( [ {>
and 的标准方法\right<) ] }>
是使用\right.
或\left.
这是一个完整的 MWE,它演示了这个想法
% arara: pdflatex
% !arara: indent: {overwrite: yes}
\documentclass{beamer}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\diff}{\mathop{}\mathopen{}\mathrm{d}}
\begin{document}
\begin{frame}
\begin{align*}
\mathbb{E}^{x}[f(X_{\tau})] & =f(x)+\mathbb{E}^{x}\left[\int_{0}^{\tau}\left(\sum_{i}u_{i}(s,\omega)\frac{\partial f}{\partial x_{i}}(X_{s})\right.\right. \\
& \left.\left.+\frac{1}{2}\sum_{i,j}(v.v^{T})_{i,j}(s,\omega)\frac{\partial^{2}f}{\partial x_{i}\partial x_{j}}(X_{s}) \right)\diff s \right]
\end{align*}
\end{frame}
\end{document}
有些人会建议您使用\bigg
,或者添加,vphantom
以确保测量准确。