Graphics, Figures & TablesCenter caption with format=hang

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fn123
Posts: 1
Joined: Thu Jan 03, 2019 11:58 am

Center caption with format=hang

Post by fn123 »

Hi,

I'd like to center the caption under a figure but keep the format of the caption as hang. The position of the caption should be centered with respect to the page but not the text itself. At the moment I can either center everything with the wrong format or have the caption stuck to the left side of the document with the right format. The reason I want this is that I have a multiline caption looking like this:

Figure 21: XYZ
------------>(a) Bla
------------>(b) Bla

(a) and (b) should be aligned and I dont know how I can achieve this otherwise. The best thing would be a functionality like the align package provides, where I can specify the position of the alignment of the text. I'd actually like it to look like this

Figure 21: XYZ with (a) Bla
----------------------->(b) Bla

but I doubt thats easily done.

Greetings

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

Post Reply