Hi,
In lyx, I have inserted a picture by calling menu "insert -> graphics". By default, the picture aligns left. I wonder how to make it aligning center. Thanks.
LyX ⇒ How to make a picture center
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to make a picture center
Hi,
in LaTeX you can use the \centering command inside the figure environment, before including the figure. I have no idea how that can be done in LyX, however, since I've never used it.
in LaTeX you can use the \centering command inside the figure environment, before including the figure. I have no idea how that can be done in LyX, however, since I've never used it.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: How to make a picture center
"Insert > Graphics" will put a picture inside the document as a non-float. To center it all you need to do is to change paragraph properties for the line the picture is in. Place the cursor before or after the picture > right click > Paragraph Settings... (or from menu: Edit > Paragraph Settings...), then set "Alignment" to "Center".
-
- Posts: 5
- Joined: Sun Aug 22, 2010 4:37 am
Re: How to make a picture center
Thank you very much.
How to make a picture center
Correct me if I wrong, but I read somewhere that using paragraph settings, as you suggested, tantamounts to using a center environment, thus introducing additional (and, in most cases, undesired) vertical space. On the other hand, the \centering command that I recommended doesn't produce the additional spacing; there should be some way to achieve this effect using LyX.meho_r wrote:"Insert > Graphics" will put a picture inside the document as a non-float. To center it all you need to do is to change paragraph properties for the line the picture is in. Place the cursor before or after the picture > right click > Paragraph Settings... (or from menu: Edit > Paragraph Settings...), then set "Alignment" to "Center".
1,1,2,3,5,8,13,21,34,55,89,144,233,...
How to make a picture center
Yes, you are right, it is using center environment and using \centering command is a better solution. However, for that one must enter the command as a LaTeX code and pay attention to limit the command to the picture only and... that's LyXgmedina wrote:Correct me if I wrong, but I read somewhere that using paragraph settings, as you suggested, tantamounts to using a center environment, thus introducing additional (and, in most cases, undesired) vertical space. On the other hand, the \centering command that I recommended doesn't produce the additional spacing; there should be some way to achieve this effect using LyX.meho_r wrote:"Insert > Graphics" will put a picture inside the document as a non-float. To center it all you need to do is to change paragraph properties for the line the picture is in. Place the cursor before or after the picture > right click > Paragraph Settings... (or from menu: Edit > Paragraph Settings...), then set "Alignment" to "Center".
