LyX ⇒ Boxed equations in Lyx
Boxed equations in Lyx
I need to put some equations into a box (one box per equation, or in some cases one box surrounding two equations located on the same line). Can anyone explain how can I do that? I suppose I should add some LateX code, but how exactly?
Thanks a lot in advance!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Boxed equations in Lyx
Re: Boxed equations in Lyx
Thanks!!!
Re: Boxed equations in Lyx
Boxed equations in Lyx
Here is the code of the equation without frame:
Code: Select all
\begin{alignat}{1}
\Delta\delta g_{T} & =\frac{1}{l_{m}}\left[\delta\mathbf{g}\cdot\mathbf{nn}\cdot\Delta\mathbf{m}+\delta\mathbf{m}\cdot\mathbf{nn}\cdot\Delta\mathbf{g}-\xi\delta\mathbf{m}\cdot\mathbf{nn}\cdot\Delta\mathbf{m}+\right.\nonumber \\
& \left.-\frac{g_{N}}{l_{m}}\left(\delta\mathbf{m}\cdot\mathbf{tn}\cdot\Delta\mathbf{m}+\delta\mathbf{m}\cdot\mathbf{nt}\cdot\Delta\mathbf{m}\right)\right]\label{app-ddgt}\end{alignat}
Boxed equations in Lyx
Code: Select all
\begin{equation}\label{app-ddgt}
\boxed{
\begin{aligned}
\Delta\delta g_{T}
=\frac{1}{l_{m}}\Bigl[&\delta\mathbf{g}\cdot\mathbf{nn}\cdot\Delta\mathbf{m}
+\delta\mathbf{m}\cdot\mathbf{nn}\cdot\Delta\mathbf{g}
-\xi\delta\mathbf{m}\cdot\mathbf{nn}\cdot\Delta\mathbf{m} \\
& -\frac{g_{N}}{l_{m}}\bigl(\delta\mathbf{m}\cdot\mathbf{tn}\cdot\Delta\mathbf{m}
+\delta\mathbf{m}\cdot\mathbf{nt}\cdot\Delta\mathbf{m}\bigr)\Bigr]
\end{aligned}
}
\end{equation}
Code: Select all
\begin{equation}\label{app-ddgt}
\boxed{
\begin{aligned}
\Delta\delta g_{T}
=\frac{1}{l_{m}}\Bigl[&\delta\mathbf{g}\cdot\mathbf{nn}\cdot\Delta\mathbf{m}
+\delta\mathbf{m}\cdot\mathbf{nn}\cdot\Delta\mathbf{g} \\
& -\xi\delta\mathbf{m}\cdot\mathbf{nn}\cdot\Delta\mathbf{m}
-\frac{g_{N}}{l_{m}}\bigl(\delta\mathbf{m}\cdot\mathbf{tn}\cdot\Delta\mathbf{m}
+\delta\mathbf{m}\cdot\mathbf{nt}\cdot\Delta\mathbf{m}\bigr)\Bigr]
\end{aligned}
}
\end{equation}
Code: Select all
\addtolength{\fboxsep}{5pt}
LyX is quite helpful, but, when things become more complex, a good understanding of the underlying principles, commands and environments is required. It would be good for you to read some manuals about LaTeX and, in particular, about math mode.