I am trying to place a text box next to an equation like this:
I have tried defining two columns of different width with the vwcol
environment, and then putting the text inside a framed
environment. This is the result:
However, there are two things that I would like to fix:
- the
framed
box spans to the right margin of the document - the equation and the text box are misaligned
How can I fix this items?
Also, I would like to know if using two columns is the right approach, or if there are better/more elegant approaches.
This is my minimal code:
\documentclass{article}
\usepackage[
a4paper,
top=2truecm,
bottom=2truecm,
left=2truecm,
right=2truecm
]{geometry}
\usepackage{amsmath}
\usepackage{vwcol}
\usepackage{framed}
\begin{document}
\begin{vwcol}[widths={0.65,0.35},sep=0.5cm,rule=0pt,indent=0em]
\begin{equation*}
\begin{bmatrix}
\Delta\dot{\alpha}(t) \\
\Delta\dot{q}(t) \\
\Delta\dot{\theta}(t) \\
\Delta\dot{h}(t) \\
\end{bmatrix}
=
\begin{bmatrix}
-1.397 & 1 & 0 & 0 \\
-5.47 & -3.27 & 0 & 0 \\
0 & 1 & 0 & 0 \\
-400 & 0 & 400 & 0 \\
\end{bmatrix}
\begin{bmatrix}
\Delta\alpha(t) \\
\Delta q(t) \\
\Delta\theta(t) \\
\Delta h(t) \\
\end{bmatrix}
+
\begin{bmatrix}
-0.124 \\
-13.2 \\
0 \\
0 \\
\end{bmatrix}
\Delta\delta_{e}(t)
\end{equation*}
\begin{framed}
US units are used here, so the angles/angular velocities will be in [rad] or [rad/s], and h in [ft].
\end{framed}
\end{vwcol}
\end{document}