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

Use correct style types for footnotes in Word #901

Closed
chriskrycho opened this issue Jul 6, 2013 · 4 comments
Closed

Use correct style types for footnotes in Word #901

chriskrycho opened this issue Jul 6, 2013 · 4 comments

Comments

@chriskrycho
Copy link

Word supports (at least for 2010+) "footnote text" and "footnote reference" (and also "endnote text" and "endnote reference") as specific styles available to the user. When exporting to .docx, then, it would be great if footnotes could be generated in the correct style rather than as "normal." This would allow quick style sheets that style footnotes to work properly (e.g. Turabian has very specific guidelines, for which I have a custom quick style set for working on papers). I can supply a .docx that uses it if that's helpful.

@jgm
Copy link
Owner

jgm commented Jul 13, 2013

Pandoc does use the styles "FootnoteRef" and "FootnoteText." The names here may be different from the standard Word styles, but they can still be customized as you see fit. I think there was a reason I didn't use the standard styles, but I can't now recall it.

Is the issue that you want to be able to customize these, or just that you'd rather pandoc use the standard style names?

@chriskrycho
Copy link
Author

I'd rather that pandoc just use the standard style names, but there is a good reason not to, that makes sense. More problematic is that I'm seeing the 'Normal' style being applied rather than the FootnoteText style you mention. (I could easily tweak my template to account for that, so it's no big deal.)

@jgm
Copy link
Owner

jgm commented Jul 13, 2013

Here is the bug report that caused me to change the style name.
#414
Maybe there is a way to work around this, I don't know. It is difficult to anticipate the ways in which Word will reorganize a docx when saving it.

I confirmed, though, that "Normal" is being used instead of "Footnote Text", which I had thought would be used (from the code, anyway). So something is not working as I'd hoped.

@chriskrycho
Copy link
Author

I saw that same issue (and offered some feedback as I'm still seeing the document corrupt warning from Word, which is very odd). It's certainly not a make-or-break issue for me; more a minor annoyance. I suppose it's also possible the behavior in Word 2011 is different from how it was in 2008—which version are you testing against?

jgm added a commit that referenced this issue Dec 27, 2013
Otherwise Word ignores the style, even when specified in the pPr element.

I believe this should help with issue #901.  You should now get
'FootnoteText' as the style of the footnote.  You'll have to adjust
the style yourself; it's currently just the same as Normal.
@jgm jgm closed this as completed Jan 1, 2014
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