aboutsummaryrefslogtreecommitdiff
path: root/src/markdown2pdf.hs
AgeCommit message (Collapse)AuthorFilesLines
2011-07-22Added `--luatex` option to markdown2pdf.John MacFarlane1-4/+7
This uses lualatex to create the PDF.
2011-07-22Deprecated `--xetex` option - it is no longer needed.John MacFarlane1-3/+6
Deprecated `writerXeTeX` and the `--xetex` option. The latex writer now produces a file that can be processed by latex, pdflatex, lualatex, or xelatex, so this option isn't needed. The option is still neded in markdown2pdf, however, which has been modified to take some options that aren't in pandoc.
2011-07-22markdown2pdf: Better error printing.John MacFarlane1-1/+3
This goes with the earlier change to -halt-on-error.
2011-07-22markdown2pdf: Don't crash if pdflatex's output is not UTF-8.John MacFarlane1-6/+45
This requires using a custom version of readProcessWithExitCode that uses utf8-string's conversions instead of the system ones. utf8-string's utf-8 conversion doesn't crash on invalid encoding.
2011-07-20markdown2pdf: Fix issue reading log with non-UTF8 characters.Paulo Tanimoto1-5/+6
Replaced 'UTF8.readFile logFile' with 'liftM toString $ BS.readFile logFile'
2011-07-20Changed markdown2pdf to halt-on-error.John MacFarlane1-1/+1
Before, we used -interaction=batchmode, which just ignored errors. This leads to bad results--users should know when something goes wrong.
2011-02-13markdown2pdf: Removed mistakenly included debugging lines.John MacFarlane1-2/+2
With the lines, markdown2pdf creates a temporary directory in the working directory. Original behavior now restored.
2011-02-13markdown2pdf: Fixed filename encoding issues.John MacFarlane1-7/+9
With help from Paulo Tanimoto. Resolves Issue #286.
2011-02-04markdown2pdf: Fixed bug with output file extensions.John MacFarlane1-1/+1
Previously 'markdown2pdf test.txt -o test.en.pdf' would produce 'test.pdf', not 'test.en.pdf'. Thanks to Paolo Tanimoto for the fix.
2011-01-28Support --listings in markdown2pdf (Etienne Millon).John MacFarlane1-1/+1
2010-12-02Added --data-dir to valid options for markdown2pdf.John MacFarlane1-1/+1
2010-12-02Tweaked command-line options allowed by markdown2pdf.John MacFarlane1-1/+1
2010-06-30Let markdown2pdf recognize citeproc options.John MacFarlane1-1/+2
2010-05-06Use new UTF8 module in Shared, ODT, and the executables.John MacFarlane1-15/+8
2010-01-05markdown2pdf: always do at least two runs.fiddlosopher1-3/+2
Reason: hyperref bookmarks require this. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1797 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-01-02markdown2pdf.hs: throw error if pandoc --dump-args does.fiddlosopher1-3/+3
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1781 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-01-02markdown2pdf.hs: When --toc, run latex an extra time.fiddlosopher1-2/+4
Previously --toc was broken. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1780 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Added needed imports from System.IO when we're using ghc >= 6.12.fiddlosopher1-1/+1
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1754 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Use System.IO.UTF8 only if ghc < 6.12.fiddlosopher1-0/+6
GHC >= 6.12 (base >= 4.2) uses iconv to convert to unicode Strings. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1748 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31markdown2pdf.hs: interpret ! in a log as an error line.fiddlosopher1-1/+1
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1739 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Added --xetex option to pandoc and markdown2pdf.fiddlosopher1-13/+17
If --xetex is specified, pandoc produces latex suitable for processing by xelatex, and markdown2pdf uses xelatex to create the PDF. Resolves Issue #185. This seems better than using latex packages to detect xetex, since not all latex installations will have these. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1737 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Added -V/--variable option to set custom template variables.fiddlosopher1-2/+3
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1685 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-07Changed markdown2pdf.hs so it prints error messages on last attempt.fiddlosopher1-2/+2
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1654 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-22Modified markdown2pdf so as not to create a backup file.fiddlosopher1-7/+2
Resolves Issue #166. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1624 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-11-21Use utf8-string IO in markdown2pdf.hs.fiddlosopher1-2/+4
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1622 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-08-22Fixed markdown2pdf.hs to accept --longopt=val options.fiddlosopher1-9/+14
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1607 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-06-25Fixed duplicate text bug in markdown2pdf.hs. (Paulo Tanimoto)fiddlosopher1-4/+6
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1582 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-05-01Added new Haskell version of markdown2pdf.fiddlosopher1-15/+16
Thanks to Paulo Tanimoto for the patch. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1573 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-05-01pandoc.hs: Make --strict compatible with --standalone, --toc.fiddlosopher1-0/+195
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1572 788f1e2b-df1e-0410-8736-df70ead52e1b