- Float
- Subfigure (width 0.45\textwidth)
- Horizontal fill
- Subfigure (width 0.45\textwidth)
The lower float has two images and those are horizontally aligned as I expected.
https://tex.stackexchange.com/questions ... -in-memoir says "The listings has full width so that will never work. You may need to wrap the listings in a minipage to control the width" but LyX is already wrapping it in a minipage (exported):
Code: Select all
\begin{figure}
\begin{minipage}[t]{0.45\textwidth}%
\begin{lstlisting}
... code here...
\end{lstlisting}
%
\end{minipage}\hfill{}%
\begin{minipage}[t]{0.45\textwidth}%
\includegraphics{../img/02-02-pd-phasor}%
\end{minipage}
Unfortunately, in this document, I expect to have many pairs of code listings alongside images; lack of a solution would be a deal-breaker. So, how to fix this?
hjh