Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image alignment in more readers and writers #4542

Open
pyssling opened this issue Apr 9, 2018 · 1 comment
Open

Image alignment in more readers and writers #4542

pyssling opened this issue Apr 9, 2018 · 1 comment

Comments

@pyssling
Copy link
Contributor

pyssling commented Apr 9, 2018

I'm using pandoc 2.1.3 to generate ODT from docbook. My docbook has image alignment and width constraints. I believe the width constraints are carried over, but the alignment is definitely not.

The docbook xml looks like this:

<title>Three nodes in quorum with full connectivity</title> diag 82abce45400eb7db76c52e09f45d1975

The content.xml inside the ODT looks like this:

<text:p text:style-name="FigureWithCaption"><draw:frame draw:name="img1" svg:width="174.75pt" svg:height="129.0pt"><draw:i
mage xlink:href="Pictures/0.svg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame></text:p>
<text:p text:style-name="FigureCaption">Three nodes in quorum with full connectivity</text:p>

All alignment is missing, both from the figure and the caption and also the caption appears outside the figure. I'm not sure what the consequence of this is, but I believe the elements are not really associated then.

Any help/fixes much appreciated, my haskell is really rusty I'm afraid.

@mb21
Copy link
Collaborator

mb21 commented Apr 9, 2018

99b39ff (for the RST reader) stores alignment in the AST simply as a align-left or align-right class on the Image element... so other readers and writers should probably eventually be changed accordingly...

@mb21 mb21 changed the title Docbook to ODT image alignment & caption Image alignment in more readers and writers May 6, 2018
link2xt pushed a commit that referenced this issue May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants