jgm / pandoc

Universal markup converter
https://pandoc.org
Other
33.97k stars 3.34k forks source link

OpenDocument Style for Bibliography #3459

Open jackweinbender opened 7 years ago

jackweinbender commented 7 years ago

Apologies if this is a citeproc issue---I think it's for pandoc proper, though.

When I do a .md > .docx conversion, my bibliography gets its own "Bibliography" style in the .docx file, which I can style with reference.docx. However, the .odt output styles the bibliography as a simple sequence of ps. Could we get a special "Bibliography" style for OpenDocument format?

I've been looking through source code, but my Haskell skillz just aren't up to the task at the moment.

jgm commented 7 years ago

What would be needed is special treatment of a Div element in the OpenDocument writer. Currently we just recurse inside it and process its contents. We'd also need a special style in data/odt/styles.xml

jackweinbender commented 7 years ago

Ok. I found where this is all happening—and on analogy to the docx writer, I may be able to get this to work. I'll see if I can get a PR going sometime soon.

josineto commented 6 years ago

Hello, any improvements here?