summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
Commit message (Collapse)AuthorAge
* LaTeX reader: don't eat excess whitespace after macros.John MacFarlane2015-10-09
| | | | Really close #2446.
* LaTeX reader: don't eat whitespace after macro with only opt arg.John MacFarlane2015-10-09
| | | | Closes #2446.
* LaTeX reader: support longtable.John MacFarlane2015-09-23
| | | | Closes #2411.
* LaTeX reader: Implement \Cite.John MacFarlane2015-08-08
| | | | See #2335.
* LaTeX reader: support abstract environment.John MacFarlane2015-07-23
| | | | The abstract populates an "abstract" metadata field.
* LaTeX reader: properly handle booktabs lines.John MacFarlane2015-07-21
| | | | | | | Lines aren't part of the pandoc table model, but we can just ignore them. Closes #2307.
* LaTeX reader: Allow `_` and `^` as regular inline text.John MacFarlane2015-06-29
| | | | | | | | Normally these will cause an error in LaTeX, but there are contexts (e.g. `alltt` environments) where they are okay. Now that we aren't treating them as super/subscript outside of math mode, it seems okay to parse them as regular text.
* LaTeX reader: don't parse `_`,`^` as super/sub outside math mode.John MacFarlane2015-06-29
|
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* LaTeX reader: recognize `\newpage` as a block command.John MacFarlane2015-04-22
|
* LaTeX Reader: Code cleanupNikolay Yakimov2015-04-12
|
* Latex Reader: Block commands code cleanupNikolay Yakimov2015-03-31
|
* Latex Reader: Guard against para starting with inline macroNikolay Yakimov2015-03-30
|
* LaTeX Reader: check for block-level newcommand aliases in blockCommandNikolay Yakimov2015-03-30
|
* Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane2015-03-28
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Change return type of LaTeX readerMatthew Pickering2015-02-18
| |
* | Properly gobble spaces after \\.John MacFarlane2015-03-14
| | | | | | | | Closes #2007.
* | LaTeX reader: allow block content in \title{}.John MacFarlane2015-03-14
| | | | | | | | Closes #2001.
* | LaTeX reader: allow non-empty colsep in tablesMathias Schenner2015-03-08
| | | | | | | | | | | | | | | | 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.
* | LaTeX reader: allow valign argument in tablesMathias Schenner2015-03-08
| | | | | | | | | | | | | | | | 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.
* | LaTeX reader: ignore options in `\lstinline`.John MacFarlane2015-03-07
|/ | | | Rather than raising a parse error. Closes #1997.
* LaTeX reader: don't limit includes to .tex extension.John MacFarlane2015-01-22
| | | | | | | | | 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.
* ghc 7.10.1 RC1 requires specifying the type of String literals ↵Mark Wright2015-01-05
| | | | https://ghc.haskell.org/trac/ghc/wiki/Migration/7.10#GHCsaysNoinstanceforFoldable...arisingfromtheuseof...
* LaTeX reader: handle `tabular*` environment.John MacFarlane2015-01-01
| | | | | | | | | 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.
* LaTeX reader: parse math environments as inline when possible.John MacFarlane2014-12-16
| | | | Closes #1821.
* LaTeX reader: parse label after caption into a span...John MacFarlane2014-12-15
| | | | | instead of inserting an additional paragraph of bracketed text. Closes #1747.
* Merge branch 'patch-1' of https://github.com/Wikiwide/pandoc into ↵John MacFarlane2014-12-15
|\ | | | | | | | | | | | | Wikiwide-patch-1 Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
| * cref, sepWikiwide2014-10-03
| | | | | | Adding inlineCommands
* | LaTeX reader: better handling of `\noindent` and `\greektext`.John MacFarlane2014-12-15
| | | | | | | | Closes #1783.
* | Improved texorpdfstring patch #1148.John MacFarlane2014-12-15
| | | | | | | | | | | | * Make LaTeX reader recognize texorpdfstring. * Don't use texorpdfstring unless it's actually needed. * Fix tests.
* | LaTeX reader: support `\smartcite` and `\Smartcite` from biblatex.John MacFarlane2014-11-25
|/ | | | See jgm/pandoc-citeproc#26.
* Exported runParserT and StreamMatthew Pickering2014-07-22
|
* Removed (>>~) functionMatthew Pickering2014-07-11
| | | | | | 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.
* LaTeX reader: Correctly handle table rows with too few cells.John MacFarlane2014-06-17
| | | | | LaTeX seems to treat them as if they have empty cells at the end. Closes #241.
* LaTeX reader: handle leading/trailing spaces in emph better.John MacFarlane2014-06-16
| | | | | | | | | | | `\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.)
* LaTeX reader: don't assume preamble doesn't contain environments.John MacFarlane2014-06-16
| | | | Closes #1338.
* allow (and discard) optional argument for \captionJames Aspnes2014-06-12
|
* LaTeX reader: Handle comments at the end of tables.John MacFarlane2014-06-03
| | | | | This resolves the issue illustrated in http://stackoverflow.com/questions/24009489/comments-in-latex-break-pandoc-table.
* Org reader: support for inline LaTeXAlbert Krewinkel2014-05-20
| | | | | | 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.
* LaTeX reader: Support `\addbibresource`.John MacFarlane2014-05-12
|
* LaTeX reader: set `bibliography` in metadata from `\bibliography` cmd.John MacFarlane2014-05-11
|
* LaTeX reader: Don't error on "%foo" with no newline.John MacFarlane2014-05-10
|
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* LaTeX reader: Fixed regression introduced with last commit.John MacFarlane2014-05-03
| | | | Tests now pass again.
* LaTeX reader: Better error messages with include files.John MacFarlane2014-05-03
| | | | | | | | | | | | | | 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`.
* LaTeX reader: Made `\nocite` work.John MacFarlane2014-04-26
| | | | | | | 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).
* LaTeX reader: handle @{} and p{length} in tabular.John MacFarlane2014-04-06
| | | | | | The length is not actually recorded, but at least we get a table. Closes #1180.
* LaTeX reader: Better handling of figure and table with caption.John MacFarlane2014-03-25
| | | | | | | 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.
* Revert "LaTeX reader: Added LPState."John MacFarlane2014-03-25
| | | | This reverts commit 82ddec698e782fef83dcd1b1fba79cd3b698c717.
* LaTeX reader: Added LPState.John MacFarlane2014-03-25
| | | | Plan is to use this instead of ParserState in LP.