Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-03-07 | LaTeX reader: support hyperref command. | John MacFarlane | 1 | -4/+13 | |
Closes #7127. | |||||
2021-03-03 | Revert "Add T.P.Readers.LaTeX.Include." | John MacFarlane | 1 | -7/+50 | |
This reverts commit b569b0226d4bd5e0699077089d54fb03d4394b7d. Memory usage improvement in compilation wasn't very significant. | |||||
2021-03-03 | Add T.P.Readers.LaTeX.Include. | John MacFarlane | 1 | -50/+7 | |
2021-03-03 | Remove T.P.Readers.LaTeX.Accent. | John MacFarlane | 1 | -1/+1 | |
Incorporate accentCommands into T.P.Readers.LaTeX.Inline. | |||||
2021-03-03 | Move enquote commands to T.P.LaTeX.Lang. | John MacFarlane | 1 | -20/+2 | |
2021-03-03 | Moved more into T.P.Readers.LaTeX.Lang. | John MacFarlane | 1 | -78/+6 | |
2021-03-03 | Split out T.P.Readers.LaTeX.Inline. | John MacFarlane | 1 | -336/+138 | |
2021-03-01 | Make T.P.Readers.LaTeX.Types an unexported module. | John MacFarlane | 1 | -1/+1 | |
[API change] This is really an implementation detail that shouldn't be exposed in the public API. | |||||
2021-03-01 | Factor out T.P.Readers.LaTeX.Macro. | John MacFarlane | 1 | -139/+2 | |
2021-02-28 | Removed unnecessary pragmas. | John MacFarlane | 1 | -2/+0 | |
2021-02-28 | Change T.P.Readers.LaTeX.SIunitx to export a command map... | John MacFarlane | 1 | -9/+2 | |
instead of individual commands. | |||||
2021-02-28 | T.P.Readers.LaTeX: Don't export tokenize, untokenize. | John MacFarlane | 1 | -2/+0 | |
[API change] These were only exported for testing, which seems the wrong thing to do. They don't belong in the public API and are not really usable as they are, without access to the Tok type which is not exported. Removed the tokenize/untokenize roundtrip test. We put a quickcheck property in the comments which may be used when this code is touched (if it is). | |||||
2021-02-28 | Factor out T.P.Readers.LaTeX.Math. | John MacFarlane | 1 | -193/+8 | |
2021-02-28 | LaTeX reader: another small efficiency improvement. | John MacFarlane | 1 | -6/+12 | |
2021-02-28 | LaTeX reader efficiency improvements. | John MacFarlane | 1 | -31/+42 | |
In conjunction with other changes this makes the reader almost twice as fast on our benchmark as it was on Feb. 10. | |||||
2021-02-28 | Move setDefaultLanguage to T.P.Readers.LaTeX.Lang. | John MacFarlane | 1 | -14/+2 | |
2021-02-28 | LaTeX reader: remove two unnecessary parsers in inline. | John MacFarlane | 1 | -2/+0 | |
These are handled anyway by regularSymbol. | |||||
2021-02-28 | Factor out T.P.Readers.LaTeX.Citation. | John MacFarlane | 1 | -186/+16 | |
2021-02-27 | Factor out T.P.Readers.LaTeX.Table. | John MacFarlane | 1 | -363/+5 | |
2021-02-27 | Split off T.P.Readers.LaTeX.Accent. | John MacFarlane | 1 | -60/+8 | |
To help reduce memory demands compiling the main LaTeX reader. | |||||
2021-02-13 | LaTeX reader: remove unnecessary line | John MacFarlane | 1 | -1/+0 | |
2021-02-12 | Avoid an unnecessary withRaw. | John MacFarlane | 1 | -1/+4 | |
2021-02-12 | LaTeX reader improvements. | John MacFarlane | 1 | -4/+2 | |
* Rewrote `withRaw` so it doesn't rely on fragile assumptions about token positions (which break when macros are expanded). This requires the addition of `sEnableWithRaw` and `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw` to disable collecting of raw tokens in certain contexts. * Add `parseFromToks` to T.P.Readers.LaTeX.Parsing. * Fix parsing of single character tokens so it doesn't mess up the new raw token collecting. * These changes slightly increase allocations and have a small performance impact, but it's minor. Closes #7092. | |||||
2021-01-26 | Clean up BibTeX parsing. | John MacFarlane | 1 | -0/+18 | |
Previously there was a messy code path that gave strange results in some cases, not passing through raw tex but trying to extract a string content. This was an artefact of trying to handle some special bibtex-specific commands in the BibTeX reader. Now we just handle these in the LaTeX reader and simplify parsing in the BibTeX reader. This does mean that more raw tex will be passed through (and currently this is not sensitive to the `raw_tex` extension; this should be fixed). Closes #7049. | |||||
2021-01-08 | Update copyright notices for 2021 (#7012) | Albert Krewinkel | 1 | -1/+1 | |
2021-01-04 | LaTeX reader: handle filecontents environment. | John MacFarlane | 1 | -6/+26 | |
Closes #7003. | |||||
2021-01-02 | LaTeX reader: put contents of unknown environments in a Div... | John MacFarlane | 1 | -1/+1 | |
when `raw_tex` is not enabled. (When `raw_tex` is enabled, the whole environment is parsed as a raw block.) The class name is the name of the environment. Previously, we just included the contents without the surrounding Div, but having a record of the environment's boundaries and name can be useful. Closes #6997. | |||||
2020-12-05 | LaTeX reader: don't apply theorem default styling to a figure inside. | John MacFarlane | 1 | -0/+1 | |
If we put an image in italics, then when rendering to Markdown we no longer get an implicit figure. Closes #6925. | |||||
2020-11-29 | LaTeX reader: don't parse `\rule` with width 0 as horizontal rule. | John MacFarlane | 1 | -1/+11 | |
2020-11-26 | LaTeX reader: preserve center environment (#6852) | Igor Pashev | 1 | -1/+1 | |
The contents of the `center` environment are put in a `Div` with class `center`. | |||||
2020-11-21 | LaTeX reader: more robust parsing of bracketed options. | John MacFarlane | 1 | -3/+8 | |
Improves on 9a40976. Closes #6873. | |||||
2020-11-20 | Improve LaTeX option parsing... | John MacFarlane | 1 | -1/+3 | |
in cases where we run into trouble parsing inlines til the closing `]`, e.g. quotes, we return a plain string with the option contents. Previously we mistakenly included the brackets in this string. Closes #6869. | |||||
2020-11-16 | Move getNextNumber from Readers.LaTeX to Readers.LaTeX.Parsing. | John MacFarlane | 1 | -26/+0 | |
2020-11-05 | LaTeX reader: better handling of `\\` inside math in table cells. | John MacFarlane | 1 | -0/+2 | |
Previously this confused the table parser. Closes #6811. | |||||
2020-11-03 | Properly support optional cite argument for `\blockquote`. | John MacFarlane | 1 | -7/+8 | |
(LaTeX reader) Closes #6802. | |||||
2020-10-13 | LaTeX reader: support more acronym commands. | John MacFarlane | 1 | -0/+10 | |
`\acl`, `\aclp`, and capitalized versions of already supported commands. Closes #6746. | |||||
2020-10-10 | LaTeX reader: allow blank lines inside `\author`. | John MacFarlane | 1 | -6/+3 | |
2020-10-08 | LaTeX reader: Fix parsing of "show name" in newtheorem. | John MacFarlane | 1 | -5/+6 | |
Previously we were just treating it as a string and ignoring accents and formatting. See #6734. | |||||
2020-09-19 | Change deprecated Builder.isNull to null. | John MacFarlane | 1 | -1/+1 | |
2020-09-15 | LaTeX reader: fix improper empty cell filtering (#6689) | Christian Despres | 1 | -8/+82 | |
2020-09-13 | Fix hlint suggestions, update hlint.yaml (#6680) | Christian Despres | 1 | -32/+31 | |
* Fix hlint suggestions, update hlint.yaml Most suggestions were redundant brackets. Some required LambdaCase. The .hlint.yaml file had a small typo, and didn't ignore camelCase suggestions in certain modules. | |||||
2020-09-08 | Reader.LaTeX.hs: remove trailing whitespace | Albert Krewinkel | 1 | -7/+7 | |
2020-09-02 | Support numrange, numlist for siunitx. | John MacFarlane | 1 | -1/+3 | |
See #6658. | |||||
2020-09-02 | LaTeX reader: Support siunitx `\ang`. | John MacFarlane | 1 | -0/+1 | |
See #6658. | |||||
2020-09-02 | Skip opts for `\si`. | John MacFarlane | 1 | -1/+1 | |
2020-09-02 | LaTeX reader: support `\si` and improve other siunitx commands. | John MacFarlane | 1 | -0/+1 | |
2020-09-02 | LaTeX reader: support `\num` from siunitx. | John MacFarlane | 1 | -1/+2 | |
2020-09-02 | LaTeX reader: Factored out siunitx stuff into separate module. | John MacFarlane | 1 | -223/+3 | |
2020-08-15 | [Latex Reader] Fixing issues with \multirow and \multicolumn table cells (#6608) | Laurent P. René de Cotret | 1 | -28/+48 | |
* Added test to replicate (#6596) * Table cell reader not consuming spaces correctly (#6596) * Prevented wrong nesting of \multicolumn and \multirow table cells (#6603) * Parse empty table cells (#6603) * Support full prototype for multirow macro (#6603) Closes #6603 | |||||
2020-08-14 | Change SIRange to SIrange (#6617) | Emerson Harkin | 1 | -4/+4 | |