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

Add image caption support for ODT #570

Closed
wants to merge 1 commit into from
Closed

Add image caption support for ODT #570

wants to merge 1 commit into from

Conversation

ArloL
Copy link
Contributor

@ArloL ArloL commented Jul 16, 2012

I looked at how OpenOffice.org 3.4.0 renders image captions and tried to implement it for pandoc.

Please do check for code style issues or possible problems as I am still very new to Haskell.

Currently the numbers are all set to 1 when opening the output file but "Tools -> Update -> Update All" updates all of the numbers properly.

@jgm
Copy link
Owner

jgm commented Jul 16, 2012

Thanks. I've added a comment on your commit.

+++ Arlo O'Keeffe [Jul 16 12 14:02 ]:

I looked at how OpenOffice.org 3.4.0 renders image captions and tried to implement it for pandoc.

Please do check for code style issues or possible problems as I am still very new to Haskell.

Currently the numbers are all set to 1 when opening the output file but "Tools -> Update -> Update All" updates all of the numbers properly.

You can merge this Pull Request by running:

git pull https://github.com/ArloL/pandoc odt-caption

Or you can view, comment on it, or merge it online at:

#570

-- Commit Summary --

  • Add image caption support for ODT

-- File Changes --

M reference.odt (0)
M src/Text/Pandoc/Writers/OpenDocument.hs (26)

-- Patch Links --

https://github.com/jgm/pandoc/pull/570.patch
https://github.com/jgm/pandoc/pull/570.diff


Reply to this email directly or view it on GitHub:
#570

@jondo
Copy link

jondo commented Feb 8, 2013

Ping?

@andrewheiss
Copy link

Any updates here, @jgm ? I have a slight dilemma because of this…

Because there's no way to use a template for docx files (according to jgm/pandoc-templates#20), I convert to odt and then soffice (bundled with LibreOffice) to convert to docx. But I can't get image captions that way.

Alternatively, I can go straight from Markdown to docx, but then I can't use a custom template.

Thanks!

@jkr
Copy link
Collaborator

jkr commented Sep 11, 2014

@andrewheiss : Out of curiosity, what do you want from a template that isn't available in a reference docx file?

@jondo
Copy link

jondo commented Sep 11, 2014

@jkr: This is off-topic and should be posted in issue jgm/pandoc-templates#20.

@andrewheiss
Copy link

Response to @jkr at jgm/pandoc-templates#20 (comment)

@ghost
Copy link

ghost commented Oct 3, 2015

I'm very interested in having proper (i.e. using frames, autonumbering) captions for figures in .odt.
I think the implementation in this pull request might be slightly overcomplicated (see #2401 for an xml snippet) but I think it is much better to use the native method for captioning than the manually added captions odt currently receives from pandoc.

@jgm
Copy link
Owner

jgm commented Oct 6, 2018

Figure numbers have been dealt with now in commit ecd4d5b.
We don't have proper frames yet, though.

@ArloL
Copy link
Contributor Author

ArloL commented Jan 10, 2020

I will close this PR since it's been 7 years and the code can't be used anymore :)

@ArloL ArloL closed this Jan 10, 2020
@ArloL ArloL deleted the odt-caption branch January 10, 2020 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants