LyXCentering Floating Graphic

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
zwilcox
Posts: 2
Joined: Sat Dec 15, 2012 4:53 am

Centering Floating Graphic

Post by zwilcox »

So I've added my float and added a graphic to said float. I can get the graphic to be centered. I can't get the Figure number beneath the figure to center. I was just wondering how to get the figure number beneath to be center.

I've searched google and searched the forum but havent found out how.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Centering Floating Graphic

Post by scottkosty »

zwilcox wrote:So I've added my float and added a graphic to said float. I can get the graphic to be centered. I can't get the Figure number beneath the figure to center. I was just wondering how to get the figure number beneath to be center.

I've searched google and searched the forum but havent found out how.
Check out the captions package. The manual is here:
ftp://ctan.tug.org/ctan/macros/latex2e/ ... on-eng.pdf

Search for "centering".

You will probably have to go to Document > Settings > LaTeX preamble and put something like (untested):
\usepackage[justification=centering]{captions}

Scott
zwilcox
Posts: 2
Joined: Sat Dec 15, 2012 4:53 am

Re: Centering Floating Graphic

Post by zwilcox »

Thanks :D
Post Reply