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

Footnote bug in docx writer #637

Closed
markk opened this issue Oct 5, 2012 · 7 comments
Closed

Footnote bug in docx writer #637

markk opened this issue Oct 5, 2012 · 7 comments

Comments

@markk
Copy link

markk commented Oct 5, 2012

This code:

Here is a footnote reference,[^1] and not another.

[^1]: Here is the footnote.

works for most output formats except docx, which outputs:

Here is a footnote reference,¹

_____________
1 and not another.

Version: pandoc-1.9.4.1-1.fc17.x86_64

@jgm
Copy link
Owner

jgm commented Oct 5, 2012

I can't reproduce the problem. It works fine for me with 1.9.4.2,
both on Debian and Mac OSX. (Nor can I see any change from 1.9.4.1
to 1.9.4.2 that look relevant.)

What command are you using to produce the docx? Can you attach
or link to an input file (rather than putting the input inline)?
What program are you using to view the docx file?

+++ markk [Oct 05 12 00:52 ]:

This code:
Here is a footnote reference,1 and not another.

works for most output formats except docx, which outputs:
Here is a footnote reference,�


1 and not another.

Version: pandoc-1.9.4.1-1.fc17.x86_64

--
Reply to this email directly or [1]view it on GitHub.
[J6T91GIPIyhU-8ti4GCGP7AlC2fiocPKodp06RQqyLz5wp4kh7DqGm1QtvA6Jdjm.gif]

References

  1. Footnote bug in docx writer #637

Footnotes

  1. Here is the footnote.

@markk
Copy link
Author

markk commented Oct 6, 2012

Sure. Input and output at following link. Command used:

pandoc -f markdown -o test.docx test.mkd

https://www.dropbox.com/s/hlxf7lwkk8jc7bi/test.zip

And I'm using LibreOffice to view the result (libreoffice-writer-3.5.6.2-5.fc17.x86_64).

@jgm
Copy link
Owner

jgm commented Oct 6, 2012

Okay, it works fine for me with pandoc 1.9.4.2 on OSX.
What program are you using to view the docx file? Word,
or something like OpenOffice? It might be a conversion
issue in the latter case.

+++ markk [Oct 06 12 11:35 ]:

Sure. Input and output at following link. Command used:
pandoc -f markdown -o test.docx test.mkd

[1]https://www.dropbox.com/s/hlxf7lwkk8jc7bi/test.zip

--
Reply to this email directly or [2]view it on GitHub.
[J6T91GIPIyhU-8ti4GCGP7AlC2fiocPKodp06RQqyLz5wp4kh7DqGm1QtvA6Jdjm.gif]

References

  1. https://www.dropbox.com/s/hlxf7lwkk8jc7bi/test.zip
  2. Footnote bug in docx writer #637 (comment)

@markk
Copy link
Author

markk commented Oct 8, 2012

You mean my test.docx file looks right when opened in Word? It might be a LibreOffice bug then...

@jgm
Copy link
Owner

jgm commented Oct 8, 2012

+++ markk [Oct 08 12 02:59 ]:

You mean my test.docx file looks right when opened in Word?

Correct.

It might be a LibreOffice bug then...

Yes, that's what I suspect. Actually, I've had reports that the way we
do footnotes causes problems in conversion using Apple Pages, too. I
think that our way (which puts the footnotes in the document.xml
file) is valid by the spec, but it is a bit nonstandard, as Word
itself seems to use a separate file for notes.

The best solution might be shifting the way pandoc represents
footnotes in the docx, even though I suspect the current approach
is valid.

@jgm
Copy link
Owner

jgm commented Oct 8, 2012

See also #595.

+++ markk [Oct 08 12 02:59 ]:

You mean my test.docx file looks right when opened in Word? It might be
a LibreOffice bug then...

--
Reply to this email directly or [1]view it on GitHub.
[J6T91GIPIyhU-8ti4GCGP7AlC2fiocPKodp06RQqyLz5wp4kh7DqGm1QtvA6Jdjm.gif]

References

  1. Footnote bug in docx writer #637 (comment)

@markk
Copy link
Author

markk commented Oct 8, 2012

Gotcha. Yes, I've just opened the same file in Word on Windows and it's correct. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants