aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/PDF.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-04-12Fixed warning.John MacFarlane1-1/+1
2015-04-12Text.Pandoc.PDF: more comprehensible errors on image conversion.John MacFarlane1-3/+3
Closes #2067. EPS can't be supported without shelling out to something like ImageMagick, but at least we can avoid mysterious error messages. We now get: pandoc: Unable to convert `circle.eps' for use with pdflatex. ! Package pdftex.def Error: File `circle-eps-converted-to.pdf' not found. which seems more straightforward.
2015-03-04Fix issue #969, #1779 by providing --latex-engine-optSumit Sahrawat1-7/+9
2015-01-11don't log Try xelatex if xelatex already in use, closes #1832mb211-2/+3
2014-12-26Added `--verbose` flag for debugging output in PDF production.John MacFarlane1-9/+26
Closes #1840. Closes #1653.
2014-08-30PDF: Catch errors in conversion of images and display message.John MacFarlane1-8/+14
See #1582.
2014-08-13PDF Writer: Attempts to convert images to pdf renderable formatsMatthew Pickering1-3/+29
Now depends on the JuicyPixels library. Will attempt to convert an image (gif, tiff, bmp) to png when converting to pdf.
2014-07-30PDF, Docx, EPUB, and ODT writers now automatically use MediaBag.John MacFarlane1-7/+7
The MediaBag is thread through from the reader, with no need to extract to files.
2014-07-30Moved withTempDir from PDF to Shared, export from Shared.John MacFarlane1-10/+1
API change.
2014-05-28PDF writer: Fixed treatment of data uris for images.John MacFarlane1-2/+2
Closes #1062.
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2014-04-05Text.Pandoc.PDF: Ensure that temp directories deleted on Windows.John MacFarlane1-1/+4
The PDF is now read as a strict bytestring, ensuring that process ownership will be terminated, so the temp directory can be deleted. Closes #1192.
2014-03-19PDF: Changes to error reporting, to handle non-UTF8 error output.John MacFarlane1-3/+2
2014-03-10PDF: Use / as path separators in latex input onlyTim Lin1-12/+15
Fixes compile error on Windows for 5040f3e Reverted back to canonical file separators </> in all places except for arguments to the LaTeX builder and in TEXINPUTS See #1151. Note: Temporary directories still fail to be removed in Windows due to call of ByteString.Lazy.readFile creating process ownership of the compiled pdf file.
2014-03-10PDF: Use / as path separators in tempdir on Windows.John MacFarlane1-3/+11
This is needed for texlive. Note that the / is used only in the body of withTempDir, so when the directory is deleted, the original separators will be used. See #1151.
2014-03-09PDF: Use / as path separators even on Windows.John MacFarlane1-2/+3
This seems to be necessary for texlive. Closes #1151 (again!).
2014-02-23PDF: Use ; for TEXINPUTS separator on Windows.John MacFarlane1-1/+6
Closes #1151, I hope. Testing needed.
2013-12-19HLint: use fromMaybeHenry de Valence1-1/+2
Replace uses of `maybe x id` with `fromMaybe x`.
2013-10-17PDF: Minor code cleanup.John MacFarlane1-2/+2
2013-08-11PDF: Add suggestion to use --latex-engine=xelatex on encoding error.John MacFarlane1-2/+8
2013-08-11Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane1-3/+3
Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942.
2013-08-10Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane1-2/+2
They are significantly faster.
2013-08-08Use pipeProcess in Text.Pandoc.PDF.John MacFarlane1-36/+3
2013-07-20PDF generation improvements.John MacFarlane1-5/+45
* `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`. (API change.) * `makePDF` walks the pandoc AST and checks for the existence of images in the local directory. If they are not found, it attempts to find them, either in the directory containing the first source file, or at an absolute URL, or at a URL relative to the base URL of the first command line argument. * Closes #917.
2013-07-18Text.Pandoc.PDF: put temporary output directory in TEXINPUTS.John MacFarlane1-4/+12
This will help later when we try to download external resources. We can put them in the temp directory. See #917.
2013-04-26PDF: On Windows, create temdir in working directory.John MacFarlane1-2/+10
Reason: the path to the system temp directory may contain tildes, which causes problems in LaTeX when the username is more than eight characters. Closes #777.
2012-03-19PDF: Run latex at least two times.John MacFarlane1-2/+2
This ensures that the PDFs will have hyperlinked bookmarks (PDF table of contents that can be displayed in the sidebar).
2012-02-19PDF: run latex 3 times if --toc specified.John MacFarlane1-1/+1
Closes #424.
2012-02-07PDF: Only run latex twice if \tableofcontents is present.John MacFarlane1-1/+4
Note: This will pick up on \tableofcontents even if it's in a verbatim environment. But the worst that can happen is that the document takes a bit longer to build.
2012-02-06Text.Pandoc.PDF: Simplified tex2pdf.John MacFarlane1-26/+16
We no longer try to parse the log file to determine whether latex needs to be rerun. Instead, we run latex twice -- which should be enough for table of contents and hyperrefs. Closes #402.
2012-01-21pandoc: Better error checking.John MacFarlane1-5/+5
2012-01-20PDF: Use string instead of special TeXProgram type.John MacFarlane1-16/+6
2012-01-20PDF: Better error message.John MacFarlane1-3/+7
2012-01-20PDF: Export TeXProgram type.John MacFarlane1-1/+1
2012-01-20PDF: Removed TeXError type, just return a bytestring.John MacFarlane1-18/+7
2012-01-20Fixed -Wall errors in PDF module.John MacFarlane1-20/+13
2012-01-20Added Text.Pandoc.PDF - converts latex to PDF.John MacFarlane1-0/+167