aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-04-17Merge branch 'latex-tightlist' of https://github.com/jlduran/pandoc into ↵John MacFarlane1-1/+1
jlduran-latex-tightlist Conflicts: data/templates
2014-12-15Improved texorpdfstring patch #1148.John MacFarlane1-1/+1
* 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/+1
wilx-use-texorpdfstring Conflicts: src/Text/Pandoc/Writers/LaTeX.hs tests/Tests/Writers/LaTeX.hs
2014-09-09LaTeX writer: Test for protecting images in header.Jesse Rosenthal1-0/+3
2014-09-01LaTeX writer: Use a declaration for tight listsJose Luis Duran1-1/+1
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: Add tests for header-in-item.Jesse Rosenthal1-0/+7
2014-07-29LaTeX writer: use \(..\) instead of $..$ for inline math.John MacFarlane1-1/+1
Closes #1464.
2014-06-23LaTeX writer: Use `\textquotesingle` for `'` in inline code.John MacFarlane1-0/+2
Otherwise we get curly quotes in the PDF output. Closes #1364.
2014-06-20LaTeX writer: Fixed strikeout + highlighted code. Closes #1294.John MacFarlane1-1/+11
Previously strikeout highlighted code caused an error.
2014-02-13Update tests suite to expect \texorpdfstring.Vaclav Zeman1-1/+1
2013-10-21Fix definition lists with internal links in terms (closes #1032).John MacFarlane1-0/+5
This fix puts braces around a term that contains an internal link, to avoid problems with square brackets.
2013-08-22Write id for code block to label attr in latex when listing is usedFlorian Eitel1-0/+7
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-16LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane1-0/+6
Closes #940. Added test case.
2013-06-26Stop escaping `|` in LaTeX math.John MacFarlane1-1/+1
This caused problems with array environments. Closes #891.
2013-01-23Eliminated use of TH in test suite.John MacFarlane1-1/+1
2013-01-12Escape `|` as `\vert` in LaTeX math.John MacFarlane1-0/+4
This avoids a clash with highlighting-kate's macros, which redefine | as a short verbatim delimiter. Thanks to Björn Peemöller for raising this issue.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-1/+1
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane1-0/+35