|
From: | Scott Otterson |
Subject: | Re: [O] Multiple underscores crash org latex export; other exporters survive |
Date: | Mon, 5 Dec 2016 09:36:26 +0100 |
Hello,
Scott Randby <address@hidden> writes:
> There is an interesting issue here. I sometimes want to use ~ in a code
> snippet, so I can't use ~code snippet~. Yet,
Indeed, this was discussed in this ML. We need some escape character in
Org. A general escape character is a bit ambitious, and not necessarily
useful, but we could introduce one specifically for verbatim and code
markers, much like in macros and verbatim blocks, e.g.
~some\~code\=with special\\ characters~
There is a design decision involved: what character can be escaped? It
could be anything, or limit to "~" for code and "=" for verbatim
markers. For example macros limit escape-able characters to "," and "\".
This makes the contents easier to read, but the rule is inconsistent.
Thoughts?
> Org code: address@hiddendeleteThisAndItWorks@ It's because Org recognize LaTeX commands only if they are followed by
>
> Exported LaTeX: address@hidden(_{\text{variable}}_{\text{deleteThisAndItWorks}}\)@
>
> The exported LaTeX is not what we want. Instead,
>
> Org code: #+latex:address@hiddendeleteThisAndItWorks@
>
> Alternative: @@latex:address@hiddendeleteThisAndItWorks@@@
>
> Exported LaTeX: address@hiddendeleteThisAndItWorks@
>
> I've wondered why \verb isn't exported correctly without specifying it
> as literal LaTeX,
a blank character, the end of buffer, or "{}", which is not the case
with address@hidden@.
Regards,
--
Nicolas Goaziou
[Prev in Thread] | Current Thread | [Next in Thread] |