From d21e5b572433f39111282805435e6337f0e1b4c0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 20 May 2019 10:20:38 -0400 Subject: 0.7.2 latex (for pdf) (initial stub) --- org/default_regex.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'org/default_regex.org') diff --git a/org/default_regex.org b/org/default_regex.org index e8b6b3f..2958027 100644 --- a/org/default_regex.org +++ b/org/default_regex.org @@ -415,6 +415,24 @@ static xhtml_greater_than = ctRegex!(`[>]`, "m"); / static xhtml_line_break = ctRegex!(` [\\]{2}`, "m"); //
#+END_SRC +*** latex special characters + +#+name: sp_ch_xhtml_rgx +#+BEGIN_SRC d +static latex_special_char_shortlist = ctRegex!(`([%$_#&\\])`); +static latex_special_char_curlybraces = ctRegex!(`([{}])`); +static latex_special_char = ctRegex!(`([%${}_#&\\])`); +static latex_special_char_for_escape = ctRegex!(`([%${}_#\\])`); +static latex_special_char_for_escape_and_braces = ctRegex!(`([&])`); +static latex_special_char_for_escape_url = ctRegex!(`([%])`); +static latex_special_char_escaped = ctRegex!(`\\([%${}_#\\])`); +static latex_special_char_escaped_braced = ctRegex!(`[{]\\([&])[}]`); +static latex_identify_inline_link = ctRegex!(`┥.+?┝┤\S+?├`, "mg"); +static latex_clean_internal_link = ctRegex!(`^(?:#|¤\S+?#)`, "m"); +static latex_identify_inline_fontface = ctRegex!(`\\([_#$]┨.+?┣)\\([_#$])`, "mg"); +static latex_clean_bookindex_linebreak = ctRegex!(`\s*\\\\\\\\\s*`, "m"); +#+END_SRC + * 2. ctRegex defaults shared by meta & output (generic) ** misc generic -- cgit v1.2.3