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.


\centeringwon'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\makeboxas in this answer (also with ERTs. – Torbjørn T. Sep 05 '13 at 20:37\documentclass{...}to\end{document}. – Fran Sep 05 '13 at 20:40\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. – David Carlisle Sep 05 '13 at 20:48.lyxfile itself or the exported LaTeX source. (A.lyxfile is just plain text, so if you open it in a text editor you can just copy everything.) – Torbjørn T. Sep 06 '13 at 18:18