我想\dot{\mathcal{N}}_0+ik\mathcal{N}_1=-\dot{\Phi}
在下面里面放一个框eqnarray
。我用过\boxed{}
,但没有用。
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[makeroom]{cancel}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{graphicx,color,epsf}
\begin{document}
\begin{eqnarray}\nonumber
\int_{-1}^{1}\frac{d\mu}{2}P_0(\mu)\dot{\mathcal{N}}+ik\int_{-1}^{1}\frac{d\mu}{2}\underset{P_1}{\underbrace{P_0(\mu)\mu}}\,\mathcal{N}&=&-\int_{-1}^{1}\frac{d\mu}{2}P_0(\mu)\dot{\Phi}-ik\overset{\displaystyle =0}{\cancel{\int_{-1}^{1}\frac{d\mu}{2}P_0(\mu)\mu\Psi}}\\
\nonumber
\dot{\mathcal{N}}_0+ik\mathcal{N}_1&=&-\dot{\Phi}
\end{eqnarray}
\end{document}
答案1
不要使用eqnarray
。使用align
和 然后mathtools
代替amsmath
。现在您有了\Aboxed
宏。 \boxed
不能跨 来使用&
。
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage[makeroom]{cancel}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{graphicx,color,epsf}
\begin{document}
\begin{align}\nonumber
\int_{-1}^{1}\frac{d\mu}{2}P_0(\mu)\dot{\mathcal{N}}+ik\int_{-1}^{1}\frac{d\mu}{2}\underset{P_1}
{\underbrace{P_0(\mu)\mu}}\,\mathcal{N}&=-\int_{-1}^{1}\frac{d\mu}{2}P_0(\mu)\dot{\Phi}
-ik\overset{\displaystyle =0}{\cancel{\int_{-1}^{1}\frac{d\mu}{2}P_0(\mu)\mu\Psi}}\\
\nonumber
\Aboxed{\dot{\mathcal{N}}_0+ik\mathcal{N}_1&=-\dot{\Phi}}
\end{align}
\end{document}