So I just finished writing my homework in Lyx and I was about to print it after exporting to PDF, but I noticed that some of the centered equations were too long and their most-right part is exceeding the right margin of the PDF page.
I saw that I can use AMSmath to solve it but for that it seems like I need to manually copy all of the equations to AMSmath boxes.
Is there any way to solve it with a quick PDF-export preprocess? edit some setting?
This is one of the long equations (gaussian elimination):
\L{
\[
\left(\begin{matrix}0 & 0 & 0\\
2 & 0 & 2\\
8 & 0 & 2\\
18 & 0 & 2
\end{matrix}\right)\to\left(\begin{matrix}0 & 0 & 0\\
1 & 0 & 1\\
4 & 0 & 1\\
9 & 0 & 1
\end{matrix}\right)\to\left(\begin{matrix}0 & 0 & 0\\
1 & 0 & 1\\
4 & 0 & 1\\
5 & 0 & 0
\end{matrix}\right)\to\left(\begin{matrix}0 & 0 & 0\\
1 & 0 & 1\\
4 & 0 & 1\\
1 & 0 & 0
\end{matrix}\right)\to\left(\begin{matrix}0 & 0 & 0\\
1 & 0 & 1\\
0 & 0 & 1\\
1 & 0 & 0
\end{matrix}\right)\to\left(\begin{matrix}0 & 0 & 0\\
0 & 0 & 1\\
0 & 0 & 1\\
1 & 0 & 0
\end{matrix}\right)\to\left(\begin{matrix}0 & 0 & 0\\
0 & 0 & 0\\
0 & 0 & 1\\
1 & 0 & 0
\end{matrix}\right)\to\left(\begin{matrix}1 & 0 & 0\\
0 & 0 & 1\\
0 & 0 & 0\\
0 & 0 & 0
\end{matrix}\right)
\]
}
and as you can see in the PDF it's being cut right before the end: thanks...
\usepackage{showframe}
?