I have this doubt
Using lyx inside a floating I been putting the images, everything was good but then I realized something: some images are aligned in the center and others not. I don't understand because I have put the latex code \centering
beside every image but it seems that this doesn't work for all the images.
Do you know what could be the problem and what can I do?
Thanks a lot.
\centering
won't help in that case, they'll just poke out on the right anyway. The boring way of fixing it is to insert some negative horizontal space by for example writing\hspace*{-1cm}
in an ERT just before the image. Another way is to use\makebox
as in this answer (also with ERTs.\documentclass{...}
to\end{document}
.\frame{\includegraphics{.......}}
the frame will put a visible box around the image so you can see how big latex thinks it is, it may be wider than the page (in which case use [width=\textwidth] to scale it down) or it may have white space inside the frame in which case the specified bounding box for the figure is incorrect..lyx
file itself or the exported LaTeX source. (A.lyx
file is just plain text, so if you open it in a text editor you can just copy everything.)