Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-10-15 | LaTeX reader: make macroDef polymorphic and allow in inline context. | John MacFarlane | 1 | -10/+4 | |
Otherwise we can't parse something like ``` \lowercase{\def\x{Foo}} ``` I have actually seen tex like this in the wild. | |||||
2018-10-15 | LaTeX reader: improved parsing of `\def`, `\let`. | John MacFarlane | 1 | -11/+18 | |
We now correctly parse: ``` \def\bar{hello} \let\fooi\bar \def\fooii{\bar} \fooi +\fooii \def\bar{goodbye} \fooi +\fooii ``` | |||||
2018-10-15 | More refactoring of LaTeX reader code. | John MacFarlane | 1 | -1/+1 | |
2018-10-15 | LaTeX reader: improve parsing of `\def` argspec. | John MacFarlane | 1 | -4/+4 | |
2018-10-14 | LaTeX reader: skip `\PackageError` commands. | John MacFarlane | 1 | -0/+2 | |
See #4408. But this doesn't fix the issue. | |||||
2018-10-07 | LaTeX reader: fix bugs omitting raw tex. | John MacFarlane | 1 | -2/+7 | |
The default is `-raw_tex`, so no raw tex should result unless we explicitly say `+raw_tex`. Previously some raw commands did make it through. Closes #4527. | |||||
2018-10-01 | Moved isArgTok to Readers.LaTeX.Parsing. | John MacFarlane | 1 | -4/+0 | |
2018-10-01 | Moved babelLangToBCP, polyglossiaLangToBCP to new module... | John MacFarlane | 1 | -134/+2 | |
Text.Pandoc.Readers.LaTeX.Lang (unexported). | |||||
2018-09-30 | LaTeX reader: simplified accent code using unicode-transforms. | John MacFarlane | 1 | -322/+33 | |
New dependency on unicode-transforms package for normalization. | |||||
2018-09-29 | LaTeX reader: allow verbatim blocks ending with blank lines. | John MacFarlane | 1 | -1/+14 | |
Closes #4624. | |||||
2018-09-29 | LaTeX reader: support breq math environments: dmath, dgroup, darray. | John MacFarlane | 1 | -0/+6 | |
2018-09-28 | Added Text.Pandoc.Readers.LaTeX.Parsing (unexported). | John MacFarlane | 1 | -557/+3 | |
This collects some of the general-purpose code from the LaTeX reader, with the aim of making the module smaller. (We've been having out-of-memory issues compiling this module on CI.) | |||||
2018-09-25 | Add support for multiprenote and multipostnote arguments in LaTeX. (#4930) | Brian Leung | 1 | -1/+34 | |
* Add support for multiprenote and multipostnote arguments. The multiprenotes occur before the first prefix of a multicite, and the multipostnotes follow the last suffix. * Add test for multiprenote and multipostnote. | |||||
2018-09-09 | LaTeX reader: resolve `\ref` for figure numbers. | John MacFarlane | 1 | -12/+41 | |
2018-08-29 | LaTeX reader: fixed parsing of \texorpdfstring. | John MacFarlane | 1 | -1/+1 | |
We were returning the wrong argument as the content. | |||||
2018-08-21 | LaTeX reader: support blockcquote, foreignblockquote from csquotes. | John MacFarlane | 1 | -5/+19 | |
Also foreigncblockquote, hyphenblockquote, hyphencblockquote. Closes #4848. But note: currently foreignquote will be parsed as a regular Quoted inline (not using the quotes appropriate to the foreign language). | |||||
2018-08-21 | LaTeX reader: support enquote*, foreignquote, hypphenquote... | John MacFarlane | 1 | -6/+24 | |
from csquotes. See #4848. Still TBD: blockquote, blockcquote, foreignblockquote. | |||||
2018-08-18 | Fix compiler warning. | John MacFarlane | 1 | -1/+1 | |
2018-08-17 | LaTeX reader: Support more text-mode accents. | John MacFarlane | 1 | -1/+91 | |
Add support for `\|`, `\b`, `\G`, `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`, `\textcircled`. Also fall back to combining characters when composed characters are not available. Closes #4652. | |||||
2018-08-17 | LaTeX reader: use combining characters when needed for accents. | John MacFarlane | 1 | -1/+4 | |
For example, there is no unicode code point corresponding to \"{X}, so we use a combining accent. | |||||
2018-08-17 | Add support for latex mintinline (#4365) | Marc Schreiber | 1 | -0/+11 | |
2018-08-17 | LaTeX reader: fix siunitx unit commands... | John MacFarlane | 1 | -174/+182 | |
...they should only be recognized in siunitx contexts. For example, `\l` outside of an siunitx context should be l-slash, not l (for liter)! Closes #4842. | |||||
2018-08-16 | LaTeX reader: fix double `unnumbered` class. | John MacFarlane | 1 | -21/+20 | |
The `unnumbered` class was being included twice for starred sections. Closes #4838. | |||||
2018-08-14 | LaTeX reader: handle parameter patterns for `\def`. | John MacFarlane | 1 | -22/+45 | |
For example: `\def\foo#1[#2]{#1 and #2}`. Closes #4768. Also fixes #4771. API change: in Text.Pandoc.Readers.LaTeX.Types, new type ArgSpec added. Second parameter of Macro constructor is now `[ArgSpec]` instead of `Int`. | |||||
2018-08-12 | LaTeX reader: Allow `%` characters in URLs. | John MacFarlane | 1 | -13/+31 | |
This affects `\href` and `\url`. Closes #4832. | |||||
2018-07-19 | Fix for bug in parsing `\include` in markdown. | John MacFarlane | 1 | -1/+10 | |
Starting in 2.2.2, everything after an `\input` (or `\include`) in a markdown file would be parsed as raw LaTeX. This commit fixes the issue and adds a regression test. Closes #4781. | |||||
2018-07-19 | rawLaTeXBlock: never retokenize macroDef. | John MacFarlane | 1 | -1/+1 | |
2018-07-15 | Support abbreviated units for siunitx (#4773). | John MacFarlane | 1 | -0/+89 | |
2018-07-15 | LaTeX reader: be more forgiving in key/value option parsing. | John MacFarlane | 1 | -16/+39 | |
We now allow arbitrary LaTeX values. This helps with #4761. The `\maxwidth` is still not propagated to the latex destination, but at least we don't choke on parsing. | |||||
2018-06-25 | LaTeX reader: Treat `lilypond` as a verbatim environment. | John MacFarlane | 1 | -1/+2 | |
Closes #4725. | |||||
2018-06-25 | Fixed typo in LaTeX writer. | John MacFarlane | 1 | -1/+1 | |
2018-06-13 | LaTeX Reader: parse figure label into Image id (#4704) | Mauro Bieg | 1 | -14/+20 | |
closes #4700 | |||||
2018-06-12 | LaTeX reader: allow spaces around `\graphicspath` arguments. | John MacFarlane | 1 | -1/+2 | |
Closes #4698. | |||||
2018-06-01 | LaTeX reader: handle includes without surrounding blanklines. | John MacFarlane | 1 | -7/+9 | |
In addition, `\input` can now be used in an inline context, e.g. to provide part of a paragraph, as it can in LaTeX. Closes #4553. | |||||
2018-05-30 | LaTeX reader `rawLaTeXBlock`: handle macros that resolve to a... | John MacFarlane | 1 | -1/+17 | |
...`\begin` or `\end`. Fixes #4667. | |||||
2018-05-30 | LaTeX reader: tighten up reading of beamer overlay specifications. | John MacFarlane | 1 | -9/+20 | |
Ideally we'd turn these on only when reading beamer, but currently beamer is not distinguished from latex as an input format. This commit also activates parsing of overlay specifications after commands in general (e.g. `\item`), since they can occur in many contexts in beamer. Closes #4669. | |||||
2018-05-16 | LaTeX reader: parse more siunitx unit commands. | John MacFarlane | 1 | -1/+73 | |
Improves on earlier fix for #4296. | |||||
2018-05-15 | rawLaTeXBlock: don't expand macros in macro definitions! | John MacFarlane | 1 | -11/+11 | |
Closes #4653. Note that this only affected LaTeX in markdown. Added regression test. | |||||
2018-05-08 | LaTeX reader: handle `$` in `/text{..}` inside math. | John MacFarlane | 1 | -7/+22 | |
This fixes the main problem in #4576. There is still an issue about `\SI`, but that's a separate issue. | |||||
2018-04-25 | LaTeX reader: fixed previous commit. | John MacFarlane | 1 | -3/+3 | |
2018-04-25 | LaTeX reader: Improve handling of raw LaTeX (for markdown etc.). | John MacFarlane | 1 | -31/+32 | |
Previously there were some bugs in how macros were handled. Closes #4589, #4594. | |||||
2018-04-25 | LaTeX reader: support `\MakeUppercase`, `\MakeLowercase'. | John MacFarlane | 1 | -1/+17 | |
Also `\MakeTextUppercase`, `\MakeTextLowercase` from textcase and `\uppercase`, `\lowercase`. We don't mimic exactly the quirky semantic differences between these commands, but just uppercase/lowercase regular strings within them. We leave commands and code alone. Closes #4595. | |||||
2018-04-05 | LaTEX reader: properly resolve section numbers with \ref and chapters. | John MacFarlane | 1 | -1/+7 | |
Closes #4529. | |||||
2018-04-02 | LaTeX reader: parse sloppypar environment (#4517) | Marc Schreiber | 1 | -0/+1 | |
2018-03-18 | Use NoImplicitPrelude and explicitly import Prelude. | John MacFarlane | 1 | -0/+2 | |
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464. | |||||
2018-03-17 | Add support to parse unit string of \SI command (closes #4296). | Marc Schreiber | 1 | -1/+14 | |
2018-03-02 | LaTeX reader: Fix regression in package options including underscore. | John MacFarlane | 1 | -1/+1 | |
Closes #4424. | |||||
2018-02-26 | LaTeX reader: make --trace work. | John MacFarlane | 1 | -2/+6 | |
2018-02-17 | LaTeX reader: Fixed comments inside citations. Closes #4374. | John MacFarlane | 1 | -3/+3 | |
2018-01-19 | hlint code improvements. | John MacFarlane | 1 | -10/+10 | |