aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-04-13LaTeX Reader: Test for `^^` character escapesNikolay Yakimov1-0/+10
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-1/+2
mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
2015-03-08LaTeX reader: allow non-empty colsep in tablesMathias Schenner1-0/+5
The `tabular` environment allows non-empty column separators with the "@{...}" syntax. Previously, pandoc would fail to parse tables if a non-empty colsep was present. With this commit, these separators are still ignored, but the table gets parsed. A test case is included.
2015-03-08LaTeX reader: allow valign argument in tablesMathias Schenner1-0/+3
The `tabular` environment takes an optional parameter for vertical alignment. Previously, pandoc would fail to parse tables if this parameter was present. With this commit, the parameter is still ignored, but the table gets parsed. A test case is included.
2015-03-08LaTeX reader: add some test cases for simple tablesMathias Schenner1-0/+31
2015-02-18Update testsMatthew Pickering1-1/+2
2013-12-19HLint: redundant parensHenry de Valence1-1/+1
Remove parens enclosing a single element.
2013-09-01Use registerHeader in RST and LaTeX readers.John MacFarlane1-5/+5
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
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-07-21LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane1-18/+18
This is added when needed in Text.Pandoc.Biblio anyway.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane1-8/+2
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
2013-03-09LaTeX reader: citation handling changes.John MacFarlane1-2/+8
Previously, a LaTeX citation would always be parsed as a Citation element, with the raw LaTeX in the [Inline] part. Now, the LaTeX citation is parsed as a Citation element only if `--biblio` was specified (i.e. only if there is a nonempty set of references in readerReferences). Otherwise it is parsed as raw LaTeX. This will make it possible to simplify some things in the markdown writer. It also makes the LaTeX reader behave more like the Markdown reader.
2012-10-28Removed citationSuppressParens.John MacFarlane1-1/+1
Makefile: Use citeproc-0.3.6 release.
2012-10-22LaTeX reader: Initialize citationSuppressParens field.John MacFarlane1-1/+2
2012-10-21Revert "LaTeX reader: Use new suppressParens option for footnote citations."John MacFarlane1-7/+6
This reverts commit 7499499b68934ae6f3418940328c7fc2bd9fcadd. Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
2012-10-15LaTeX reader: Use new suppressParens option for footnote citations.John MacFarlane1-6/+7
Also changed Biblio, Markdown reader, and LaTeX reader tests because of new citationSuppressParens field in Citation.
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane1-0/+169
2011-01-29Moved tests to src.John MacFarlane1-152/+0
2011-01-29Added biblatex citation tests to Tests.Readers.LaTeX.John MacFarlane1-2/+45
Removed old biblatex-citations.latex.
2011-01-29Added natbib citation tests to Tests.Readers.LaTeX.John MacFarlane1-0/+65
Removed old tests/natbib-citations.latex.
2011-01-22Removed deliberate error in LaTeX reader tests.John MacFarlane1-1/+1
2011-01-22Fixed -Wall error in imports.John MacFarlane1-1/+1
2011-01-22Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane1-0/+1
2011-01-22Improved test framework.John MacFarlane1-13/+18
Now there is a uniform interface for reader and writer tests. Also added a quasiquoter, for multiline strings.
2011-01-20Fixed the two test cases that were intentionally set to fail.John MacFarlane1-2/+2
2011-01-19Unit tests: On failure, print the input string.John MacFarlane1-2/+2
2011-01-18Added normalize in latex reader tests.John MacFarlane1-1/+2
2011-01-18Revamped tests with new =: and =?> operators + builder.John MacFarlane1-22/+23
Left in a couple failing tests for demonstration purposes.
2011-01-13Adjusted source to 80-column limit.John MacFarlane1-25/+26
2011-01-13Moved Tests.Shared -> Tests.Helpers.John MacFarlane1-1/+1
Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.
2011-01-12Reordered test files.Nathan Gass1-0/+35