LyX ⇒ How to make a picture center
-
- Posts: 5
- Joined: Sun Aug 22, 2010 4:37 am
How to make a picture center
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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
How to make a picture center
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.
Re: How to make a picture center
-
- Posts: 5
- Joined: Sun Aug 22, 2010 4:37 am
Re: How to make a picture center
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".
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".
