For John Wiegley: John, please do not yet apply the attached patch...
Hi Christian, I am trying to get back to this issue. I am attaching a patch, please apply it to your setup and then try #+OPTIONS: ^:t TeX:t LaTeX:verbatimif that works, can I then ask you to update http://orgmode.org/worg/org-tutorials/org-jsmath.php ?
Thanks! - Carsten
jsmath.patch
Description: Binary data
On Jun 18, 2010, at 12:58 PM, Christian Moe wrote:
Hi, Carsten, Thanks for taking a look.Your example should be output exactly the same as it is currently with the =LaTeX:nil= option, i. e. verbatim:<p> \begin{equation} a=b \end{equation} </p>- and this minimal example could be interpreted by jsMath without any changes in Org-mode export, since it happens to contain no sub/ superscripts or entities.What I'd like is for \begin{equation} \e=mc^2 \end{equation} to be output equally verbatim as <p> \begin{equation} e=mc^2 \end{equation} </p>*even when =^:t= is on*, so I could freely write e.g. m^2 in the text and get it superscripted, but not get<p> \begin{equation} e=mc<sup>2</sup> \end{equation} </p>In other words, to have my cake and eat it, too. I hope it's clearer now.Yours, Christian Carsten Dominik wrote: > Hi Christian, > > how should, in this case, a literal LaTeX environment like > > \begin{equation} > a=b > \end{equation} > > be handled? > > - Carsten > > On Jun 17, 2010, at 9:23 AM, Christian Moe wrote: > >> Hi, >>>> To display LaTeX math in Org html export with lovely jsMath, it must be>> exported verbatim with >> >> #+OPTIONS: ^:nil TeX:nil >>>> so one cannot use lazy superscripts/subscripts or Org entities in the>> rest of the text. >>>> Is there a simple way to turn these options on, but protect LaTeX where>> it appears *inside math delimiters* so it's exported verbatim? I.e. >> inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ? >> >> I ask because I'm keeping a note file with much text and only a few >> equations, but with frequent reference to e.g. CO_2 and m^2. It's >> possible to always write $CO_2$ and $m^2$, but less readable, and>> irksome when you've got used to an easier way. An inline formula can >> be protected by surrounding it with verbatim markup, =$...$=, but then>> it's only good for jsMath, not for LaTeX export. >> >> Yours, >> Christian >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > > > -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com Carsten Dominik wrote:Hi Christian, how should, in this case, a literal LaTeX environment like \begin{equation} a=b \end{equation} be handled? - Carsten On Jun 17, 2010, at 9:23 AM, Christian Moe wrote:Hi,To display LaTeX math in Org html export with lovely jsMath, it must beexported verbatim with #+OPTIONS: ^:nil TeX:nilso one cannot use lazy superscripts/subscripts or Org entities in the rest of the text.Is there a simple way to turn these options on, but protect LaTeX whereit appears *inside math delimiters* so it's exported verbatim? I.e. inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ?I ask because I'm keeping a note file with much text and only a few equations, but with frequent reference to e.g. CO_2 and m^2. It's possible to always write $CO_2$ and $m^2$, but less readable, and irksome when you've got used to an easier way. An inline formula can be protected by surrounding it with verbatim markup, = $...$=, but then it's only good for jsMath, not for LaTeX export.Yours, Christian _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode- Carsten-- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com
- Carsten
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode