aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-10-13LaTeX writer: add `\protect` to `\hyperdef` in inline context.John MacFarlane1-1/+1
This way we don't get an error when this is used as a moveable argument. Closes #2136.
2015-10-11Percent-encode more special characters in URLs.John MacFarlane1-5/+5
HTML, LaTeX writers adjusted. The special characters are '<','>','|','"','{','}','[',']','^', '`'. Closes #1640, #2377.
2015-10-07Change variable to polyglossia-lang.name and .optionsmb211-20/+36
closes #2437
2015-09-26Merge pull request #2419 from mb21/bidiJohn MacFarlane1-4/+16
Support bidirectional text output with XeLaTeX, ConTeXt and HTML
2015-09-26Support bidirectional text output with XeLaTeX, ConTeXt and HTMLmb211-4/+16
closes #2191
2015-09-26Removed unneeded import.John MacFarlane1-1/+0
2015-09-25Correctly recognize book documentclass in metadata.John MacFarlane1-1/+1
Closes #2395.
2015-08-20`lang` variable is now in BCP47 formatmb211-8/+140
strings are converted for LaTeX and ConTeXt output, closes #1614
2015-08-07Updated readers, writers and README for link attributemb211-6/+6
2015-08-07Updated readers and writers for new image attribute parameter.John MacFarlane1-7/+28
(mb21)
2015-07-16Removed unneeded import.John MacFarlane1-2/+1
2015-07-16LaTeX writer: Fixed detection of 'chapters' from template.John MacFarlane1-3/+11
If a documentclass isn't specified in metadata, but the template has a hardwired bookish documentclass, act as if `--chapters` was used. This was the default in earlier versions, but it has been broken for a little while.
2015-05-27LaTeX/beamer: added `setotherlanguages` in polyglossia.John MacFarlane1-3/+7
This uses an `otherlang` variable that takes a list of languages. As requseted in #2174.
2015-05-27LaTeX writer: Make `mainlang` work when `lang` is in metadata.John MacFarlane1-2/+3
Closes #2174.
2015-05-13Beamer: mark slide as `[fragile]` if header has `fragile` class.John MacFarlane1-2/+3
Closes #2119.
2015-05-02LaTeX writer: Add a `\label` in `\hyperdef` for Div, Span.John MacFarlane1-2/+4
Otherwise links don't work.
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-2/+2
2015-04-17Merge branch 'latex-tightlist' of https://github.com/jlduran/pandoc into ↵John MacFarlane1-3/+3
jlduran-latex-tightlist Conflicts: data/templates
2015-02-25LaTeX writer: recognize book documentclass if set in metadata.John MacFarlane1-8/+10
This sets `--chapters` implicitly if the documentclass in metadata is a book documentclass. Previously this was done only if a book documentclass was set in a variable. Closes #1971.
2015-02-20LaTeX Writer: Don't use listings in headersMatthew Pickering1-3/+4
Fixes #1963
2015-02-04Append newline to the LineBreak of various writersTim Lin1-1/+1
This change improves output formatting of content with a large amount of force line breaks, such as line-blocks. The following writers are affected: * Dokuwiki * HTML * EPUB (via HTML) * LaTeX * MediaWiki * OpenDocument * Texinfo This commit resolves #1924
2015-02-01LaTeX writer: Don't escape $ in URL. Closes #1913.John MacFarlane1-1/+1
2015-01-05ghc 7.10.1 RC1 requires specifying the type of String literals ↵Mark Wright1-1/+1
https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
2014-12-15LaTeX writer: Handle consecutive linebreaks.John MacFarlane1-2/+10
Closes #1733.
2014-12-15LaTeX writer: better handling of display math in simple tables.John MacFarlane1-1/+7
We convert display math to inline math in simple tables, since LaTeX can't deal with display math in simple tables. Closes #1754.
2014-12-15Improved texorpdfstring patch #1148.John MacFarlane1-3/+6
* Make LaTeX reader recognize texorpdfstring. * Don't use texorpdfstring unless it's actually needed. * Fix tests.
2014-12-15Merge branch 'use-texorpdfstring' of https://github.com/wilx/pandoc into ↵John MacFarlane1-1/+4
wilx-use-texorpdfstring Conflicts: src/Text/Pandoc/Writers/LaTeX.hs tests/Tests/Writers/LaTeX.hs
2014-10-15Escape spaces. Fixes jgm/pandoc#1694.Bjorn Buckwalter1-1/+3
2014-09-09LaTeX writer: Protect graphics in headers.Jesse Rosenthal1-6/+15
Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed. This adds a state value and manually turns it on before every invocation of `sectionHeader` and manually turns it off after. Using a writer value and applying `local` would probably be cleaner, but this fits with the current style.
2014-09-01LaTeX writer: Avoid using reserved characters as \lstinline delimiters.John MacFarlane1-1/+3
Closes #1595.
2014-09-01LaTeX writer: Use a declaration for tight listsJose Luis Duran1-3/+3
Currently, pandoc has hard-coded the following in order to make tight lists in LaTeX: ```hs text "\\itemsep1pt\\parskip0pt\\parsep0pt" ``` Which is fine, but does not allow customizations. For example, the `memoir` class already has a `\tightlist` declaration for this purpose: ```tex \newcommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} ``` I'm proposing to use a similar solution: ```diff @@ In Writers/LaTeX.hs: -then text "\\itemsep1pt\\parskip0pt\\parsep0pt" +then text "\\tightlist" @@ In templates/default.latex: +\newcommand{\tightlist}{% + \setlength{\itemsep}{1pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}} ``` This allows us to customize the tightness to our needs. Backward Compatibility If a person is using a custom LaTeX template (not based upon the `memoir` class), the `\tightlist` declaration must be added.
2014-08-31LaTeX writer: Put `~` before header in item text.Jesse Rosenthal1-2/+12
Because of the built-in line skip, LaTeX can't handle a section header as the first element in a list item. (To be precise, it can't handle it if the list immediately follows a section header, but the instance is rare enough that we can afford to be a bit more general). This puts a non-breaking space before the header to solve this problem. We won't see this space, since the header skips a line before printing anyway. The output is ugly in LaTeX and this structure seems like it should probably be avoided. But it is valid HTML and native pandoc, so we should have some sort of typesettable representation in LaTeX.
2014-08-29Merge pull request #1574 from jlduran/latex-horizontal-ruleJohn MacFarlane1-1/+1
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29LaTeX writer: Add `\strut` to fix multiline tablesJose Luis Duran1-1/+2
See: http://tex.stackexchange.com/questions/34971
2014-08-28LaTeX writer: Make Horizontal Rules more flexibleJose Luis Duran1-1/+1
Currently, pandoc has hard-coded the following in order to make horizontal rules in LaTeX: ```hs "\\begin{center}\\rule{3in}{0.4pt}\\end{center}" ``` Which is fine, but does not allow customizations. It also does not take into consideration the current line width. I'm proposing this change: ```diff @@ In Writers/LaTeX.hs: -"\\begin{center}\\rule{3in}{0.4pt}\\end{center}" +"\\begin{center}\\rule{0.5\\linewidth}{\\linethickness}\\end{center}" ```
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