Graphics, Figures & TablesSubtitle for Figures and Tables

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zach
Posts: 10
Joined: Sun Jun 21, 2009 9:43 pm

Subtitle for Figures and Tables

Post by zach »

Is it possible to include a subtitle for a figure or table? Ideally, it would be centered and at a slightly smaller font than the main title. The problem is that I have a long table name that is more than one line. The output has the title left-aligned, which does not look quite right. I'd appreciate any help.

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

Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Subtitle for Figures and Tables

Post by Bozack »

You could look at the subfigure package: http://mirrors.dotsrc.org/ctan/obsolete ... figure.pdf

I think it's possible to use just a single subfigure environment inside your normal figure environment, and then you simply use the subfigure caption for your subtitle :)
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Subtitle for Figures and Tables

Post by localghost »

Bozack wrote:You could look at the subfigure package: http://mirrors.dotsrc.org/ctan/obsolete ... figure.pdf [...]
The subfigure package is outdated. Since the subfig package is not maintained any more, the subcaption package from caption is the preferable solution. For current versions please link package names directly to CTAN.


Best regards
Thorsten
zach
Posts: 10
Joined: Sun Jun 21, 2009 9:43 pm

Re: Subtitle for Figures and Tables

Post by zach »

localghost:

While I've not tried it yet, the subcaption package seems as though it might do what I need it to do. If it doesn't, I will be back...
Post Reply