From eb4d522a56de3455f9b31841a04adf64c8dafa90 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Fri, 10 Aug 2012 21:57:54 -0700 Subject: [PATCH] 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. --- README | 10 ++++++++++ src/Text/Pandoc/Options.hs | 2 ++ 2 files changed, 12 insertions(+) diff --git a/README b/README index e988b7b6f..4b27f3dde 100644 --- a/README +++ b/README @@ -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