aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Docx.hs
AgeCommit message (Collapse)AuthorFilesLines
2012-08-17Docx line breaks: Use w:cr in w:r instead of w:br.John MacFarlane1-5/+6
This seems to fix a problem viewing pandoc-generated docx files in LibreOffice.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-0/+1
2012-07-24Changed signatures of writeODT, writeDocx, writeEPUB.John MacFarlane1-4/+3
These now take WriterOptions and Pandoc only. The extra parameters for epub stylesheet, epub fonts, reference Docx, and reference ODT have been removed, since these things are now in WriterOptions. Note: breaking API change!
2012-06-01Simplified bullet characters so they work with Word 2007.John MacFarlane1-7/+7
Closes #520.
2012-04-21Docx writer: Fixed error message when style file can't be parsed.John MacFarlane1-1/+2
2012-04-07Docx writer: Fixed multi-paragraph list items.John MacFarlane1-1/+4
Previously they each got a list marker. Closes #457.
2012-02-14Add TableNormal style to tables.John MacFarlane1-2/+3
Needs testing with Word.
2012-02-11Fix _rels/.rels if it has been screwed up by Word.John MacFarlane1-1/+10
Closes #414. Previously, if you edited the reference.docx with Word, then created a new docx using the edited reference.docx, Word would complain about the file being corrupt. The problem seems to be that Word changes _rels/.rels, changing the Type of the Relationship to docProps/core.xml from "http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties" to "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties". As far as I can see, this is a bug in Word, since the latter is not valid. (See http://idippedut.dk/post/2010/04/22/Correct-according-to-spec-or-implementation.aspx.) This change simply does a global replace on _rels/.rels that reverts the change Word makes. And now producing docx files with Word-modified reference.docx seems to work.
2012-01-28Remove dependency on old-time.John MacFarlane1-2/+2
2012-01-28Put date in YYYY-MM-DD format if possible for HTML, docx metadata.John MacFarlane1-3/+4
Added normalizeDate to Text.Pandoc.Shared.
2012-01-20Docx: Put display math on separate line.John MacFarlane1-5/+9
2012-01-20Docx writer: Fixed styles in footnotes.John MacFarlane1-0/+6
Previously a footnote in a list item would be a list item, etc.!
2012-01-20Docx: Adjusted list spacing for less cramped number markers.John MacFarlane1-1/+1
2012-01-20Docx writer: Start bullet lists with solid bullet.John MacFarlane1-6/+7
2012-01-20Docx writer: Don't indent first level of lists.John MacFarlane1-2/+2
2012-01-20Docx writer: Fixed bug with numbered lists.John MacFarlane1-24/+37
Numbered lists were being numbered continuously, instead of having new lists start again with 1.
2012-01-19Minor comment fixes.John MacFarlane1-2/+0
2012-01-19Check for existence before opening image file.John MacFarlane1-49/+57
Print warning if file doesn't exist.
2012-01-19Added Docx writer.John MacFarlane1-0/+626
* New module `Text.Pandoc.Docx`. * New output format `docx`. * Added reference.docx. * New option `--reference-docx`. The writer includes support for highlighted code blocks and math (which is converted from TeX to OMML using texmath's new OMML module).