Latex tips and tricks

Boxed equation

Define a new command as follows:

\newcommand{\boxedeqn}[1]{%
  \[\fbox{%
      \addtolength{\linewidth}{-2\fboxsep}%
      \addtolength{\linewidth}{-2\fboxrule}%
      \begin{minipage}{\linewidth}%
      \begin{equation}#1\end{equation}%
      \end{minipage}%
    }\]%
}

Here is an example of its use:

\boxedeqn{
  X_1(j\omega) =
    \int\limits^{+\infty}_{-\infty} x_1(t) e^{-j\omega t} dt
}

If you dont want to box the equation number, use \boxed{…}

 
comp/latex.txt · Last modified: 2007/01/28 20:49 by pc     Back to top
Get Firefox! Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
This site will render correctly in Mozilla/Firefox.