aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-2/+2
2015-04-22LaTeX reader: recognize `\newpage` as a block command.John MacFarlane1-0/+1
2015-04-12LaTeX Reader: Code cleanupNikolay Yakimov1-92/+82
2015-03-31Latex Reader: Block commands code cleanupNikolay Yakimov1-3/+2
2015-03-30Latex Reader: Guard against para starting with inline macroNikolay Yakimov1-0/+1
2015-03-30LaTeX Reader: check for block-level newcommand aliases in blockCommandNikolay Yakimov1-3/+13
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-7/+4
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-14Properly gobble spaces after \\.John MacFarlane1-10/+12
Closes #2007.
2015-03-14LaTeX reader: allow block content in \title{}.John MacFarlane1-1/+3
Closes #2001.
2015-03-08LaTeX reader: allow non-empty colsep in tablesMathias Schenner1-1/+1
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-1/+1
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-07LaTeX reader: ignore options in `\lstinline`.John MacFarlane1-1/+1
Rather than raising a parse error. Closes #1997.
2015-02-18Change return type of LaTeX readerMatthew Pickering1-7/+4
2015-01-22LaTeX reader: don't limit includes to .tex extension.John MacFarlane1-2/+8
Previously `\input` and `\include` would only work if the included files had the extension `.tex`. This change relaxes that restriction, though if the extension is not `.tex`, it must be given explicitly in the `\input` or `\include`. Closes #1882.
2015-01-05ghc 7.10.1 RC1 requires specifying the type of String literals ↵Mark Wright1-2/+2
https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
2015-01-01LaTeX reader: handle `tabular*` environment.John MacFarlane1-3/+5
This change allows pandoc not to choke on the table-width parameter of `tabular*`. Note that the table width is not actually parsed or taken into account, but this should give tolerable results in many cases. Closes #1850.
2014-12-16LaTeX reader: parse math environments as inline when possible.John MacFarlane1-15/+42
Closes #1821.
2014-12-15LaTeX reader: parse label after caption into a span...John MacFarlane1-4/+11
instead of inserting an additional paragraph of bracketed text. Closes #1747.
2014-12-15Merge branch 'patch-1' of https://github.com/Wikiwide/pandoc into ↵John MacFarlane1-0/+2
Wikiwide-patch-1 Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
2014-12-15LaTeX reader: better handling of `\noindent` and `\greektext`.John MacFarlane1-1/+3
Closes #1783.
2014-12-15Improved texorpdfstring patch #1148.John MacFarlane1-0/+1
* Make LaTeX reader recognize texorpdfstring. * Don't use texorpdfstring unless it's actually needed. * Fix tests.
2014-11-25LaTeX reader: support `\smartcite` and `\Smartcite` from biblatex.John MacFarlane1-0/+2
See jgm/pandoc-citeproc#26.
2014-10-03cref, sepWikiwide1-0/+2
Adding inlineCommands
2014-07-22Exported runParserT and StreamMatthew Pickering1-2/+1
2014-07-11Removed (>>~) functionMatthew Pickering1-1/+1
This function is equivalent to the more general (<*) which is defined in Control.Applicative. This change makes pandoc code easier to understand for those not familar with the codebase.
2014-06-17LaTeX reader: Correctly handle table rows with too few cells.John MacFarlane1-3/+7
LaTeX seems to treat them as if they have empty cells at the end. Closes #241.
2014-06-16LaTeX reader: handle leading/trailing spaces in emph better.John MacFarlane1-17/+17
`\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]` so that we don't get things like `* hi *` in markdown output. Also applies to textbf and some other constructions. Closes #1146. (`--normalize` isn't touched by this, but normalization should not generally be necessary with the changes to the readers.)
2014-06-16LaTeX reader: don't assume preamble doesn't contain environments.John MacFarlane1-1/+1
Closes #1338.
2014-06-12allow (and discard) optional argument for \captionJames Aspnes1-1/+1
2014-06-03LaTeX reader: Handle comments at the end of tables.John MacFarlane1-0/+1
This resolves the issue illustrated in http://stackoverflow.com/questions/24009489/comments-in-latex-break-pandoc-table.
2014-05-20Org reader: support for inline LaTeXAlbert Krewinkel1-0/+1
Inline LaTeX is now accepted and parsed by the org-mode reader. Both, math symbols (like \tau) and LaTeX commands (like \cite{Coffee}), can be used without any further escaping.
2014-05-12LaTeX reader: Support `\addbibresource`.John MacFarlane1-0/+2
2014-05-11LaTeX reader: set `bibliography` in metadata from `\bibliography` cmd.John MacFarlane1-1/+6
2014-05-10LaTeX reader: Don't error on "%foo" with no newline.John MacFarlane1-1/+1
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2014-05-03LaTeX reader: Fixed regression introduced with last commit.John MacFarlane1-10/+10
Tests now pass again.
2014-05-03LaTeX reader: Better error messages with include files.John MacFarlane1-55/+117
Closes #1274. Rewrote handleIncludes. We now report the actual source file and position where the error occurs, even if it is included. We do this by inserting special commands, `\PandocStartInclude` and `\PandocEndInclude`, that encode this information in the preprocessing phase. Also generalized the types of a couple functions from `Text.Pandoc.Parsing`.
2014-04-26LaTeX reader: Made `\nocite` work.John MacFarlane1-3/+6
This adds nocite citations to a metadata field, `nocite`. These will appear in the bibliography but not in the text (unless you use a `$nocite$` variable in your template, of course).
2014-04-06LaTeX reader: handle @{} and p{length} in tabular.John MacFarlane1-2/+3
The length is not actually recorded, but at least we get a table. Closes #1180.
2014-03-25LaTeX reader: Better handling of figure and table with caption.John MacFarlane1-11/+34
We now look for a \caption inside the environment; if one is found, it is attached to the graphic or tabular found there. Closes #1204.
2014-03-25Revert "LaTeX reader: Added LPState."John MacFarlane1-18/+0
This reverts commit 82ddec698e782fef83dcd1b1fba79cd3b698c717.
2014-03-25LaTeX reader: Added LPState.John MacFarlane1-0/+18
Plan is to use this instead of ParserState in LP.
2014-03-25LaTeX reader: Better handling of "table" environment.John MacFarlane1-0/+1
Positioning options no longer rendered verbatim. Partially addresses #1204.
2013-12-19HLint: use `elem` and `notElem`Henry de Valence1-3/+2
Replaces long conditional chains with calls to `elem` and `notElem`.
2013-12-17LaTeX reader: Support babel-style quoting: `` "`..."' ``.John MacFarlane1-0/+2
2013-12-13LaTeX reader: add support for Verb macroJeff Arnold1-0/+1
2013-12-06HTML reader: Parse LaTeX math if appropriate options are set.John MacFarlane1-1/+2
* Moved inlineMath, displayMath from Markdown reader to Parsing. * Export them from Parsing. (API change.) * Generalize their types.
2013-11-18LaTeX reader: Parse contents of curly quotes or matched `"` as quotes.John MacFarlane1-7/+17
2013-11-17LaTeX reader: Support `\textnormal` as span with class "nodecor".John MacFarlane1-0/+1
This is needed for pandoc-citeproc.
2013-10-21LaTeX reader: Improved citation parsing.John MacFarlane1-6/+13
This fixes a run-time error that occured with `\citet{}` (empty list of keys). It also ensures that empty keys don't get produced.