diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-08-10 21:57:54 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-08-10 21:57:54 -0700 |
commit | eb4d522a56de3455f9b31841a04adf64c8dafa90 (patch) | |
tree | f2923e649918f12190144d29d13c73825c7c3863 | |
parent | 417cde38af7a77e79f12c9f78b678aec50701af2 (diff) | |
download | pandoc-eb4d522a56de3455f9b31841a04adf64c8dafa90.tar.gz |
Options and documentation for backslash tex math options.
Ext_tex_math_single_backslash and Ext_tex_math_double_backslash.
Still need to code in reader.
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | src/Text/Pandoc/Options.hs | 2 |
2 files changed, 12 insertions, 0 deletions
@@ -2196,6 +2196,16 @@ example, `markdown+hard_line_breaks` is markdown with hard line breaks. Causes all newlines within a paragraph to be interpreted as hard line breaks instead of spaces. +**Extension: `tex_math_single_backslash`**\ +Causes anything between `\(` and `\)` to be interpreted as inline +TeX math, and anything between `\[` and `\]` to be interpreted +as display TeX math. Note: a drawback of this extension is that +it precludes escaping `(` and `[`. + +**Extension: `tex_math_double_backslash`**\ +Causes anything between `\\(` and `\\)` to be interpreted as inline +TeX math, and anything between `\\[` and `\\]` to be interpreted +as display TeX math. Producing slide shows with Pandoc ================================= diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index 9c6d55f25..f7f07a939 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -58,6 +58,8 @@ data Extension = Ext_footnotes | Ext_citations | Ext_raw_tex | Ext_tex_math_dollars + | Ext_tex_math_single_backslash + | Ext_tex_math_double_backslash | Ext_latex_macros | Ext_delimited_code_blocks | Ext_inline_code_attributes |