John MacFarlane
c54c3d50b0
LaTeX reader: Skip everything after \end{document}.
2012-02-05 08:46:04 -08:00
John MacFarlane
79f1594470
Added \vspace and \hspace to latex ignored block commands.
2012-02-04 23:19:09 -08:00
John MacFarlane
be8bddcaf3
Improvements to LaTeX reader:
...
* Handle \ps
* Ignore ignorable commands in a uniform way.
* Handle \P
* handleIncludes skips \verb commands.
2012-02-04 22:28:16 -08:00
John MacFarlane
4257b9aff5
Handle \address and \signature in letter environment. Closes #393 .
2012-02-04 20:02:00 -08:00
John MacFarlane
800d5cdb07
LaTeX reader: support macron accents \=o.
2012-02-04 19:36:05 -08:00
John MacFarlane
80505bc490
LaTeX reader: support \. dot accent.
2012-02-04 19:31:01 -08:00
John MacFarlane
0ec953793d
handleIncludes: read file as UTF8, allow multiples separated by commas.
...
e.g. \usepackage{a,b}
2012-02-04 15:56:55 -08:00
John MacFarlane
93dad75a48
Don't print warnings for not-found packages, includes.
2012-02-04 13:31:21 -08:00
John MacFarlane
3f87c43640
Revert "LaTeX reader: Use kpsewhich to find paths for handleIncludes."
...
This reverts commit 1f90c6d7e0
.
2012-02-04 13:20:36 -08:00
John MacFarlane
1f90c6d7e0
LaTeX reader: Use kpsewhich to find paths for handleIncludes.
...
Fall back without an error if kpsewhich is not available.
2012-02-04 13:10:48 -08:00
John MacFarlane
253a9e32aa
Have handleIncludes look for local .sty files from \usepackage.
2012-02-04 13:01:00 -08:00
John MacFarlane
1e772aa59c
LaTeX reader: small bug fixes.
2012-02-04 12:51:27 -08:00
John MacFarlane
e58d5bf087
Minor formatting change
2012-02-04 12:27:37 -08:00
John MacFarlane
47eb69a7e1
LaTeX reader: Factored out rawEnv
2012-02-04 12:27:24 -08:00
John MacFarlane
ade08f6330
Small improvements in latex table parser.
2012-02-04 11:50:06 -08:00
John MacFarlane
75485c2f11
Complete rewrite of LaTeX reader.
...
* The new reader is more robust, accurate, and extensible.
It is still quite incomplete, but it should be easier
now to add features.
* Text.Pandoc.Parsing: Added withRaw combinator.
* Markdown reader: do escapedChar before raw latex inline.
Otherwise we capture commands like \{.
* Fixed latex citation tests for new citeproc.
* Handle \include{} commands in latex.
This is done in pandoc.hs, not the (pure) latex reader.
But the reader exports the needed function, handleIncludes.
* Moved err and warn from pandoc.hs to Shared.
* Fixed tests - raw tex should sometimes have trailing space.
* Updated lhs-test for highlighting-kate changes.
2012-02-04 09:56:43 -08:00
John MacFarlane
17e70940a0
LaTeX reader: Require non-letter after certain commands.
...
Previously "\opening" was rendered as "\248pening".
The "\o" should not be parsed as a control sequence.
Partially addresses #393 .
2012-01-29 22:27:37 -08:00
John MacFarlane
1ce7c38bc4
LaTeX reader: Handle \@.
2012-01-26 11:52:25 -08:00
John MacFarlane
a579e2c892
Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.
2011-12-27 15:45:34 -08:00
John MacFarlane
8838f473a8
LaTeX reader: Return Str instead of Apostrophe.
2011-12-27 11:19:23 -08:00
John MacFarlane
d34f85613a
Changes to fit new charsInBalanced.
2011-12-05 20:55:23 -08:00
John MacFarlane
7b971517b0
Parsing: Changed type of escaped to return Char
2011-12-05 20:22:27 -08:00
John MacFarlane
bf4f8ffe55
LaTeX reader: Don't crash on commands like \itemsep
.
...
Closes #314 .
2011-11-12 13:20:29 -08:00
John MacFarlane
da57775171
LaTeX reader: Ignore empty groups {}, { }.
...
Closes #322 .
2011-11-12 13:03:11 -08:00
John MacFarlane
fe14bf9447
LaTeX reader: Handle \subtitle command.
...
If there's a subtitle, it is added to the title,
separated by a colon and linebreak. Closes #280 .
2011-07-21 13:33:51 -07:00
John MacFarlane
6c029621ed
LaTeX reader & writer: Use \and to separate authors.
...
Closes #279 .
2011-07-21 10:09:51 -07:00
John MacFarlane
c83b578f58
LaTeX reader: Gobble option & space after linebreak \\[10pt].
2011-07-10 19:07:40 -07:00
John MacFarlane
9e71dc3f48
Support \dots and well as \ldots in LaTeX reader.
2011-06-22 20:06:29 -07:00
John MacFarlane
71ca44db6e
LaTeX reader: Fixed bug with whitespace at beginning of file.
...
Previously a file beginning " hi" would cause a parse error.
Also cleaned up comment parsing.
2011-01-30 08:21:48 -08:00
John MacFarlane
f8dca6ccbc
Add support for attributes in inline Code.
...
Additional related changes:
* URLs in Code in autolinks now use class "url".
* Require highlighting-kate 0.2.8.2, which omits the final <br/> tag,
essential for inline code.
2011-01-26 20:44:25 -08:00
John MacFarlane
80f5a89a0b
LaTeX reader: Fixed an incomplete pattern match.
2011-01-26 17:23:56 -08:00
John MacFarlane
bd43c0f4c9
Bumped version to 1.8; depend on pandoc-types 1.8.
...
The old TeX, HtmlInline and RawHtml elements have been removed
and replaced by generic RawInline and RawBlock elements.
All modules updated to use the new raw elements.
2011-01-26 17:22:53 -08:00
John MacFarlane
d891b2c29d
LaTeX reader: Support simple tables.
2011-01-07 10:15:48 -08:00
John MacFarlane
303ce8a9e5
LaTeX reader: allow spaces btw \\begin or \\end and {.
2011-01-06 09:34:24 -08:00
John MacFarlane
81ea1a59b4
LaTeX reader: Removed unnecessary 'spaces'.
2011-01-06 09:24:56 -08:00
John MacFarlane
b63a7f7c48
LaTeX reader: Apply macros to non-math; handle ensuremath.
2011-01-05 16:55:26 -08:00
John MacFarlane
18e7a7a495
LaTeX reader: Don't handle \label and \ref specially.
...
Put labels in {} instead of ().
2011-01-05 15:24:20 -08:00
John MacFarlane
1415b6831e
LaTeX reader: Support \L \l accents.
2011-01-05 14:57:06 -08:00
John MacFarlane
e126ab9efc
LaTeX reader: Parse inside arguments when ignoring commands.
2011-01-05 12:25:47 -08:00
John MacFarlane
c3071ff6e9
LaTeX reader: Don't handle \index separately.
...
Instead, just put it in list of commands to ignore.
2011-01-05 12:05:04 -08:00
John MacFarlane
b26247a4a8
LaTeX reader: Added "index" to ignorable commands.
2011-01-05 11:56:37 -08:00
John MacFarlane
cf6cd15c27
LaTeX reader: skip space before option or argument.
2011-01-05 11:54:40 -08:00
John MacFarlane
d033fc9d3e
LaTeX reader: Skip \index commands.
2011-01-05 10:11:24 -08:00
John MacFarlane
c949530815
LaTeX reader: Removed \group (we want to parse inside {}).
2011-01-05 10:06:51 -08:00
John MacFarlane
3dab6c574c
LaTeX reader: Better handling of preamble, inc. parsing macros.
2011-01-05 09:04:03 -08:00
John MacFarlane
85bfd26b78
LaTeX reader: Parse bracketed {parts} as raw TeX.
2011-01-04 22:20:35 -08:00
John MacFarlane
dac2e9156f
LaTeX reader: parse macros and apply to math.
2011-01-04 19:18:20 -08:00
John MacFarlane
b05e739c6d
LaTeX reader: Allow ignored comments after \end{document}.
2010-12-30 22:05:19 -08:00
Puneeth Chaganti
e4dedad1c0
Added support for listings package code blocks and inline code.
2010-12-30 14:37:51 -08:00
John MacFarlane
fe1152985c
Shared: Made splitBy take a test instead of an element.
2010-12-21 08:41:24 -08:00