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!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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.