pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Update LaTeX writer to align images

Open frasertweedale opened this issue 9 years ago • 4 comments

Update the LaTeX writer to align images that have an "align" attribute whose value is "left", "right" or "center". If the attribute is absent or has an unrecognised values, the image is left alone.

Also update the RST reader to read these horizonal alignment values from the image directive (the first encountered value applies). See http://docutils.sourceforge.net/docs/ref/rst/directives.html#image for details.

frasertweedale avatar Feb 18 '16 11:02 frasertweedale

+1

bluebirch avatar Oct 12 '16 12:10 bluebirch

Although I cannot speak for @jgm, I guess for this to be merged, it would have to be implemented in the most commonly used writers (i.e. HTML probably emitting a style="text-align: left") and documented in the README.

mb21 avatar Oct 16 '16 14:10 mb21

Then again, https://github.com/jgm/pandoc/commit/99b39ffc1726a86e6a6ad45ef6b81a28b46594ef meanwhile set a precedent to simply store alignment in the AST as simply a align-left or align-right class on the Image element...

mb21 avatar Apr 09 '18 16:04 mb21

Stumbled over this as a blocker in my work today. Anything I can do to help move it forward?

wallento avatar Oct 10 '20 21:10 wallento