aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
AgeCommit message (Collapse)AuthorFilesLines
2013-08-16LaTeX reader: parse label after section command and set id.John MacFarlane1-2/+4
Closes #951.
2013-08-16LaTeX reader missing \oe and \OE charactersScott Morrison1-0/+2
2013-08-16adding support for breve accents via \u{} while reading LaTeXScott Morrison1-0/+16
2013-08-10Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane1-2/+2
They are significantly faster.
2013-08-10Adjustments for new Format newtype.John MacFarlane1-1/+1
2013-07-25LaTeX reader: Support `\v{}` for hacek.John MacFarlane1-0/+37
Closes #926.
2013-07-21LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane1-7/+3
This is added when needed in Text.Pandoc.Biblio anyway.
2013-06-27LaTeX reader: Support alltt environment.John MacFarlane1-2/+12
Closes #892.
2013-06-24Use new flexible metadata type.John MacFarlane1-27/+22
* Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
2013-05-12LaTeX reader: Skip positional options after `\begin{figure}`.John MacFarlane1-0/+1
2013-05-09Treat `\textsl` as emphasized text in LaTeX reader.John MacFarlane1-0/+1
Closes #850.
2013-03-31LaTeX reader: Support `\textasciitilde`, `\textasciicircum`.John MacFarlane1-0/+2
Closes #810.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane1-8/+3
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
2013-03-09LaTeX reader: citation handling changes.John MacFarlane1-3/+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.
2013-03-06Support :number-lines: in RST code output.John MacFarlane1-2/+1
2013-03-06LaTeX reader: Better support for Verbatim and minted environments.John MacFarlane1-3/+18
Closes #763.
2013-03-05LaTeX reader: Handle language attribute for lstlistings.John MacFarlane1-2/+5
Convert it to a highlighting-kate language name.
2013-03-04LaTeX reader: Read optional attributes in lstlisting environment.John MacFarlane1-1/+22
We convert these to pandoc standard names, e.g. "numberLines" for "numbers=left", "startFrom=100" from "firstnumber=100". Still need to add code to convert the language names.
2013-03-01LaTeX reader: Add "fig:" as title for images with captions.John MacFarlane1-4/+8
This is needed for them to be rendered as figures. Closes #766.
2013-02-26LaTeX reader: Handle \caption for images in figures.John MacFarlane1-3/+6
Closes #766.
2013-02-20LaTeX reader: Don't emit empty paragraph.John MacFarlane1-2/+2
See #761.
2013-02-20LaTeX reader: Parse `\section*`, etc. as unnumbered sections.John MacFarlane1-11/+19
2013-02-11LaTeX reader: Parse `\hrule` as HorizontalRule.John MacFarlane1-0/+1
Closes #746.
2013-02-06Implement `--default-image-extension` for LaTeX reader.John MacFarlane1-2/+10
2013-01-28Fixed latex macro parsing.John MacFarlane1-1/+1
Now latex macro definitions are preserved when output is latex, and applied when it is another format, as originally intended. Partially addresses #730. \providecommand is still not supported. For this we need changes to texmath.
2013-01-20Fixed bug with escaped % in LaTeX reader.John MacFarlane1-0/+2
Also added tests. Closes #710.
2013-01-06Don't put the text of an autolink in Code font.John MacFarlane1-1/+1
2012-12-12LaTeX reader: Make command macros work everywhere, including non-math.John MacFarlane1-6/+10
Environment macros still not supported.
2012-11-05LaTeX reader: skip comments in handleIncludes.John MacFarlane1-0/+2
2012-11-01LaTeX reader: Avoid include loops.John MacFarlane1-8/+17
2012-11-01Revert "LaTeX reader: Added code to handleIncludes to avoid inf loops."John MacFarlane1-14/+8
This reverts commit da87837318cf035be407136b39c5ec6a0009adb4. Reason: The code was overzealous and would rule out some things we want to be able to do, like include the same file multiple times.
2012-11-01LaTeX reader: Added code to handleIncludes to avoid inf loops.John MacFarlane1-8/+14
e.g. when one file includes another which includes it.
2012-11-01LaTeX reader: Improved handling of included files.John MacFarlane1-11/+24
* `\input` now works, as well as `\include`. * TEXINPUTS is used. * We now look recursively into included files for more included files.
2012-10-28Removed citationSuppressParens.John MacFarlane1-1/+0
Makefile: Use citeproc-0.3.6 release.
2012-10-22LaTeX reader: Initialize citationSuppressParens field.John MacFarlane1-0/+1
2012-10-21Revert "LaTeX reader: Use new suppressParens option for footnote citations."John MacFarlane1-56/+55
This reverts commit 7499499b68934ae6f3418940328c7fc2bd9fcadd. Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
2012-10-15LaTeX reader: Basic \enquote support.John MacFarlane1-0/+9
2012-10-15LaTeX reader: Use new suppressParens option for footnote citations.John MacFarlane1-55/+56
Also changed Biblio, Markdown reader, and LaTeX reader tests because of new citationSuppressParens field in Citation.
2012-10-14LaTeX reader: Use normal citations, not author-in-text, for fn cites.John MacFarlane1-4/+4
Eventually it would be nice to use a "suppress outer parens" variant, if citeproc-hs provides one.
2012-10-13Moved bibliography processing into readers.John MacFarlane1-1/+5
Previously this was done in src/pandoc.hs, which made it difficult for library users. * Removed readerCitations in ReaderOptions. * Added readerReferences and readerCitationStyle to ReaderOptions. * Moved use of processBiblio from main program to the markdown and LaTeX readers.
2012-10-11LaTeX reader: Made rawLaTeXInline more flexible.John MacFarlane1-4/+2
Now it will also try to parse block commands. This is usually what we want, given how rawLaTeXInline is used in the markdown and textile readers. If a block-level LaTeX command is used in the middle of a paragraph (e.g. `\subtitle` inside a title), we can treat it as raw inline LaTeX.
2012-10-11LaTeX reader: Make `\noindent` inline rather than block.John MacFarlane1-2/+1
2012-10-10LaTeX reader: Better support for citation commands.John MacFarlane1-7/+11
* Make `\cite` etc. an AuthorInText. * Make `\footcite` etc. into citations in notes.
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane1-3/+0
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-09-22LaTeX reader: Added a 'try' in rawLaTeXBlock.John MacFarlane1-1/+1
This allows the markdown reader to treat '\begin' (not followed by an argument) as a raw string rather than erroring out when it doesn't find a '{'. Closes #622.
2012-09-09LaTeX reader: Better error messages for environments.John MacFarlane1-1/+3
Now it should tell you that it was looking for \end{env}, instead of giving "unknown parse error."
2012-09-09LaTeX reader: guard against "begin"/"end" in blockCommand.John MacFarlane1-0/+1
2012-09-09LaTeX reader: Guard against "begin", "end" in inlineCommand.John MacFarlane1-2/+1
Removed these from list of inline commands.
2012-09-06LaTeX reader: Support obeylines environment.John MacFarlane1-0/+3
Closes #604.
2012-09-06LaTeX reader: Use curly quotes for bare straight quotes.John MacFarlane1-13/+9