pandoc-latex-template icon indicating copy to clipboard operation
pandoc-latex-template copied to clipboard

How can I align center the captions of images and tables?

Open Yuanzidan081 opened this issue 1 year ago • 1 comments

I tried to use this template to export a markdown document to pdf. All the images and tables are aligned center, but their captions are aligned left.

cm

I checked many blogs to find a approach, but it seems that they didn't work.

docx-writer: Center Images and Tables Centering and resizing figures in PDF export with pandoc How do I center images?

Maybe I needn't make change in my markdown-document, but in this template eisvogel.latex? Any ideas or suggestions?

Yuanzidan081 avatar Apr 01 '23 13:04 Yuanzidan081

caption-justification (defaults to raggedright)
justification setting for captions (uses the justification parameter of the [caption](https://ctan.org/pkg/caption?lang=en) package)

pandoc -V caption-justification:centering

tex: https://github.com/Wandmalfarbe/pandoc-latex-template/blob/8c48a175e2f5274858f6ea9fd3e56d8a60dd5c66/eisvogel.tex#L623C1-L623C1

shmilee avatar Sep 28 '23 06:09 shmilee