Commit graph

2821 commits

Author SHA1 Message Date
John MacFarlane
0fd0dc2344 Slides: New approach, using hierarchicalize.
This will work better with the HTML slideshows.
2012-01-23 23:02:18 -08:00
John MacFarlane
228c76bb89 Slides: Better error message. 2012-01-23 21:05:43 -08:00
John MacFarlane
05cf164edf LaTeX beamer: Only add [fragile] to slide if it contains verbatim.
Closes #385.
2012-01-23 21:03:10 -08:00
John MacFarlane
97af576729 Use Slides in LaTeX writer for beamer. 2012-01-23 13:25:55 -08:00
John MacFarlane
a8046ea969 Got slide creation working. 2012-01-22 23:53:19 -08:00
John MacFarlane
09882364ce Added to Slides. 2012-01-22 21:31:10 -08:00
John MacFarlane
64de5194b7 Added Text.Pandoc.Slides. 2012-01-22 19:58:45 -08:00
John MacFarlane
29086d4a96 Slight edits to a couple error messages. 2012-01-21 15:13:12 -08:00
John MacFarlane
e57fb8d59d README: More information on what is needed to produce PDFs. 2012-01-21 14:59:25 -08:00
John MacFarlane
e721c7428e Removed beamer output format; added --beamer option. 2012-01-21 14:49:26 -08:00
John MacFarlane
2703162424 README tweak on equivalent to markdown2pdf. 2012-01-21 14:24:02 -08:00
John MacFarlane
e6e4311ddd pandoc: Better error checking. 2012-01-21 14:18:36 -08:00
John MacFarlane
194bdadc57 Improved deprecation warnings for --html5, --offline. 2012-01-21 09:55:37 -08:00
John MacFarlane
09b7ae4073 pandoc: Removed deprecated --xetex option. 2012-01-21 09:54:11 -08:00
John MacFarlane
a75a0762af pandoc: Check for latex program earlier. 2012-01-21 09:34:47 -08:00
John MacFarlane
58f9b3bc38 pandoc: Added optLaTeXProgram. 2012-01-21 00:50:21 -08:00
John MacFarlane
275a5af61b Removed obsolete flag info in INSTALL. 2012-01-20 22:13:19 -08:00
John MacFarlane
4d98815edd Refactored error reporting in pandoc.hs. 2012-01-20 22:12:03 -08:00
John MacFarlane
d7b67f48cd PDF: Use string instead of special TeXProgram type. 2012-01-20 21:36:04 -08:00
John MacFarlane
1d615908c2 Removed markdown2pdf and documentation. 2012-01-20 21:22:51 -08:00
John MacFarlane
b4a6c02343 PDF: Better error message. 2012-01-20 19:52:56 -08:00
John MacFarlane
ce3653e39d pandoc: Output to pdf now works. 2012-01-20 19:39:18 -08:00
John MacFarlane
f519f0a1ad PDF: Export TeXProgram type. 2012-01-20 19:13:47 -08:00
John MacFarlane
c9c78344b1 PDF: Removed TeXError type, just return a bytestring. 2012-01-20 19:11:35 -08:00
John MacFarlane
50e16e6855 Fixed -Wall errors in PDF module. 2012-01-20 19:04:08 -08:00
John MacFarlane
9d1118ac1f Added Text.Pandoc.PDF - converts latex to PDF. 2012-01-20 18:57:16 -08:00
John MacFarlane
6c75843422 Docx: Put display math on separate line. 2012-01-20 14:05:14 -08:00
John MacFarlane
e3fd1cd108 Docx writer: Fixed styles in footnotes.
Previously a footnote in a list item would be a list item, etc.!
2012-01-20 13:32:56 -08:00
John MacFarlane
fbbff22f06 Docx: Adjusted list spacing for less cramped number markers. 2012-01-20 13:17:40 -08:00
John MacFarlane
525881ee52 Docx writer: Start bullet lists with solid bullet. 2012-01-20 13:07:14 -08:00
John MacFarlane
2a84e748a9 Docx writer: Don't indent first level of lists. 2012-01-20 13:03:47 -08:00
John MacFarlane
1a8594f907 Docx writer: Fixed bug with numbered lists.
Numbered lists were being numbered continuously, instead
of having new lists start again with 1.
2012-01-20 13:00:28 -08:00
John MacFarlane
dafd2e555f Templates: Removed vestigial remnant of openxml template.
Closes #381 (I think).
2012-01-19 23:45:39 -08:00
John MacFarlane
75a2b2fda1 Documented docx reader in README. 2012-01-19 23:26:45 -08:00
John MacFarlane
12c96fe499 Minor comment fixes. 2012-01-19 23:20:32 -08:00
John MacFarlane
325228cbfe Check for existence before opening image file.
Print warning if file doesn't exist.
2012-01-19 23:19:28 -08:00
John MacFarlane
ba81cda7f1 Added Docx writer.
* 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).
2012-01-19 12:10:49 -08:00
John MacFarlane
9ce3e2bf85 ImageSize: Fixed implementation of sizeInPoints. 2012-01-15 16:01:46 -08:00
John MacFarlane
b4e2d69cda Fixed whitespace bug in comments. 2012-01-15 15:43:52 -08:00
John MacFarlane
691b7bdc66 ImageSize: extract dpi information from PNG and JPEG.
* ImageSize record now includes dpiX, dpiY, pxX, pxY.
* New functions sizeInPixels and sizeInPoints.
2012-01-15 15:40:26 -08:00
John MacFarlane
28a043fe44 ODT writer now sizes images appropriately.
OpenDocument writer:  a title like "123x467" is interpreted
as size in *points*.

ODT writer:  while adding images to the archive, computes their
sizes and inserts a title attribute with the size before
calling opendocument writer.

Size is computed as follows:

size in points = size in pixels * 96 / 72
2012-01-14 12:38:14 -08:00
John MacFarlane
0d1740ea08 Export ImageType(..) from ImageSize. 2012-01-14 11:46:41 -08:00
John MacFarlane
51365b3b36 Added Text.Pandoc.ImageSize.
This is intened for use in docx and odt writers, so the size
of image boxes can be calculated.
2012-01-14 11:42:35 -08:00
John MacFarlane
0299ae6c29 OpenDocument writer: treat image title of form "dddxddd" as size in px.
Later we'll modify the ODT writer to insert such titles, so image
sizes will be correct in the ODT.
2012-01-14 11:39:20 -08:00
John MacFarlane
d0582b912b SelfContained: Use getMimeType from Text.Pandoc.MIME. 2012-01-14 10:27:29 -08:00
John MacFarlane
09fe08b452 Added 'layout-cache' to getMimeType.
This ensures that the META-INF/manifest.xml for ODT files will
have everything it needs.  Fixes a bug using modified ODT
files as `--reference-odt`.
2012-01-14 10:18:37 -08:00
John MacFarlane
ceb8357b41 EPUB writer: Allow raw HTML. 2012-01-13 23:54:37 -08:00
John MacFarlane
83bb1de3f5 Improved citation tests. 2012-01-13 00:02:38 -08:00
John MacFarlane
a3988d89c8 Added "title" to list of docbook block-level tags. 2012-01-12 21:13:52 -08:00
John MacFarlane
4daf471920 Split html template into html, html5 templates. 2012-01-11 12:53:43 -08:00