aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2014-08-28LaTeX writer: Fix tablesJose Luis Duran1-4/+11
- [x] Fix a bug introduced in 66378062b622b0815a1a2ddce5d557e3ad13330c, which causes the table caption to repeat across all pages - [x] Address the issues discussed [here](https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J) regarding the extra vertical space. - [ ] NOTE: This will cause multiline table cells to appear unpadded. See http://tex.stackexchange.com/questions/34971 - [x] Use [`\tabularnewline`](http://tex.stackexchange.com/questions/78796) instead of `\\`.
2014-08-12Merge pull request #1527 from mpickering/juicypixelsJohn MacFarlane1-2/+2
Attempts to convert gif, tiff and bmp to png in pdf writer
2014-08-13LaTeX Writer: Added missing closing braces to hyperdef commandsMatthew Pickering1-2/+2
2014-08-12Beamer: Use \footnote<.->{..} for notes.John MacFarlane1-1/+6
This ensures that the footnotes will not appear before the overlays in which their corresponding note markers appear. Closes #1525.
2014-08-11LaTeX writer: Don't produce `\label{}` for Div or Span.John MacFarlane1-8/+7
Just `\hyperdef`. A slight amendment to #1519.
2014-08-11TeX Writer: Write hyperdef and label for identifiers on Div blocksMatthew Pickering1-2/+7
2014-08-04Add PatternGuards pragmas.Artyom Kazak1-1/+2
2014-08-04Use `stripPrefix` where appropriate.Artyom Kazak1-3/+3
2014-07-29LaTeX writer: use \(..\) instead of $..$ for inline math.John MacFarlane1-1/+1
Closes #1464.
2014-07-15LaTeX writer: Use \nolinkurl in email autolinks.John MacFarlane1-2/+9
This allows them to be styled using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
2014-07-10LaTeX writer: Put table captions above tables.John MacFarlane1-3/+2
The standard seems to be captions above tables. (See http://tex.stackexchange.com/questions/3243/why-should-a-table-caption-be-placed-above-the-table)
2014-06-23LaTeX writer: Use `\textquotesingle` for `'` in inline code.John MacFarlane1-0/+1
Otherwise we get curly quotes in the PDF output. Closes #1364.
2014-06-20LaTeX writer: Correctly handle figures in notes.John MacFarlane1-5/+7
Notes can't contain figures in LaTeX, so we fake it to avoid an error. Closes #1053.
2014-06-20LaTeX writer: Fixed strikeout + highlighted code. Closes #1294.John MacFarlane1-1/+10
Previously strikeout highlighted code caused an error.
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2014-05-04LaTeX writer: Fixed inconsistencies with reference escaping.John MacFarlane1-64/+67
- toLabel is now monadic, and it does the needed string escaping. - Closes #1130.
2014-04-25LaTeX writer: Mark span contents with label if span has an IDAlbert Krewinkel1-7/+11
Prepend `\label{span-id}` to span contents iff `span-id` is defined.
2014-04-06LaTeX writer: Workaround for level 4-5 headers in quotes.John MacFarlane1-2/+14
These previously produced invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment. This adds an `mbox{}` in these contexts to work around the problem. See http://tex.stackexchange.com/a/169833/22451. Closes #1221.
2014-04-04LaTeX writer: handle line breaks in simple table cells.John MacFarlane1-1/+20
Closes #1217.
2014-03-31Make --toc-depth work well with books in latex/pdf output.John MacFarlane1-2/+2
Closes #1210.
2014-02-10src/Text/Pandoc/Writers/LaTeX.hs: Use \texorpdfstring for sectionVaclav Zeman1-1/+4
captions.
2014-02-09Merge remote-tracking branch 'origin/master' into en-dash-ligature-avoidance.Vaclav Zeman1-30/+69
2014-02-08Use \/ to avoid en-dash ligature instead of -{}-.Vaclav Zeman1-1/+1
This is to fix LuaLaTeX output. The -{}- sequence does not avoid the ligature with LuaLaTeX but \/ does.
2013-12-19HLint: use fromMaybeHenry de Valence1-1/+2
Replace uses of `maybe x id` with `fromMaybe x`.
2013-12-19HLint: use /=Henry de Valence1-1/+1
2013-12-19HLint: Use allHenry de Valence1-4/+4
Replace `and . map` with `all`.
2013-12-17LaTeX writer: Better treatment of footnotes in tables.John MacFarlane1-6/+29
Notes now appear in the regular sequence, rather than in the table cell. (This was a regression in 1.10.)
2013-12-17LaTeX writer: Factored out function for table cell creation.John MacFarlane1-13/+17
2013-12-04Add booktabs package for LaTeX tablesJose Luis Duran1-5/+5
[ci skip]
2013-11-23LaTeX writer: Handle csl flipflopping spans (csl-no-emph, etc.)John MacFarlane1-1/+10
2013-11-16LaTeX writer: Properly escape pdftitle, pdfauthor.John MacFarlane1-2/+4
Closes #1059.
2013-10-21Fix definition lists with internal links in terms (closes #1032).John MacFarlane1-1/+8
This fix puts braces around a term that contains an internal link, to avoid problems with square brackets.
2013-10-17LaTeX writer: Specially escape non-ascii characters in labels.John MacFarlane1-6/+14
Otherwise we can get compile errors and other bugs when compiled with pdflatex. Closes #1007. Thanks to begemotv2718 for the fix.
2013-10-17LaTeX writer: Add link anchors for code blocks with identifiers.John MacFarlane1-5/+11
Closes #1025.
2013-10-16Use isURI instead of isAbsoluteURI.John MacFarlane1-2/+2
It allows fragments identifiers.
2013-10-13Treat div with class "notes" as speaker notes in slide formats.John MacFarlane1-1/+6
Currently beamer goes to `\note{}`, revealjs to `<aside class="notes">`, and the notes are simply suppressed in other formats. Closes #925.
2013-09-19LaTeX writer: Don't print biblio if --natbib or --biblatex option used.John MacFarlane1-10/+17
2013-08-25Merge pull request #961 from nougad/add_latex_listings_labelJohn MacFarlane1-2/+6
Write id for code block to label attr in latex when listing is used
2013-08-24Removed dependency on citeproc-hs.John MacFarlane1-6/+2
Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
2013-08-22Write id for code block to label attr in latex when listing is usedFlorian Eitel1-2/+6
The code: ~~~{#test} asdf ~~~ gets compiled to html: <pre id="test"> asdf </pre> So it is possible to link to the identifier `test` But this doesn't happen on latex When using the listings package (`--listings`) it is possible to set the identifier using the `label=test` property: \begin{lstlisting}[label=id] hi \end{lstlisting} And this is exactly what this patch is doing. Modified LaTeX Reader/Writer and added tests for this.
2013-08-19Scale LaTeX tables so they don't exceed columnwidth.John MacFarlane1-1/+5
2013-08-16LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane1-6/+7
Closes #940. Added test case.
2013-08-10Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane1-2/+1
They are significantly faster.
2013-08-10Use query instead of queryWith.John MacFarlane1-3/+4
2013-08-10Adjustments for new Format newtype.John MacFarlane1-5/+8
2013-08-08Preliminary support for new Div and Span elements in writers.John MacFarlane1-0/+2
Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
2013-07-26Beamer: add allowframebreaks to slide if set in header classes.John MacFarlane1-8/+11
It's recommended that your bibliography slide have this attribute: # References {.allowframebreaks} This causes multiple slides to be created if necessary, depending on the length of the bibliography.
2013-07-25LaTeX writer: Change `\` to `/` in paths.John MacFarlane1-2/+4
`/` works even on Windows in LaTeX. `\` will cause major problems if unescaped.
2013-07-04LaTeX writer: Don't use ligatures in escaping inline code.John MacFarlane1-9/+15
2013-07-01Created Text.Pandoc.Writers.Shared, improved metaToJSON.John MacFarlane1-2/+2
* Text.Pandoc.Writers.Shared contains shared functions used only in writers. * metaToJSON now takes a WriterOptions parameter, and will return an empty object if standalone is not specified.