From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: plus in superscript. Date: Thu, 15 Sep 2011 09:43:57 +0200 Message-ID: <4E71ACBD.9030102@christianmoe.com> References: <18354.1316019331@alphaville.dokosmarshall.org> <424.1316071148@alphaville.dokosmarshall.org> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R46ak-0000ss-S9 for emacs-orgmode@gnu.org; Thu, 15 Sep 2011 03:42:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R46aj-0008Hw-FR for emacs-orgmode@gnu.org; Thu, 15 Sep 2011 03:42:38 -0400 Received: from mars.hitrost.net ([91.185.211.18]:22283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R46aj-0008Hb-6L for emacs-orgmode@gnu.org; Thu, 15 Sep 2011 03:42:37 -0400 In-Reply-To: <424.1316071148@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, Piter_ Hi, $...$ may sometimes get confused with currency signs, variable names and whatnot. Org-mode is sophisticated about it as long as you follow a few safeguards -- from the Info section 11.7.3: To avoid conflicts with currency specifications, single `$' characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the `$' characters with no whitespace in between, and if the closing `$' is followed by whitespace, punctuation or a dash. For the other delimiters, there is no such restriction, so when in doubt, use `\(...\)' as inline math delimiters. But note that MathJax, the preferred backend for math in Org's HTML exports, does not support $...$ by default. To configure it, see: http://www.mathjax.org/docs/1.1/tex.html#tex-and-latex-math-delimiters Yours, Christian On 9/15/11 9:19 AM, Nick Dokos wrote: > suvayu ali wrote: > >> Hi Nick, >> >> On Wed, Sep 14, 2011 at 6:55 PM, Nick Dokos wrote: >>> * This is a test: \(T^{+}\) >> >> Apart from what Christian said, do you have any comments about $..$ >> and \(..\) ? I hear conflicting arguments about which is preferred >> (e.g. $..$ is a TeX construct where as \(..\) is a LaTeX macro arguing >> in favour of $..$). Specially an opinion in the context of org -> >> latex export would be interesting to hear. >> > > As far as LaTeX is concerned, I believe that $...$ and \(...\) are > entirely equivalent (but you have to use \[...\], and not $$...$$ for > displayed material). That's from reading Lamport's book: sec 3.3 and > Appendix E (the "Miscellaneous" section); I have not checked the code. > > I prefer \(...\) and (iirc) sometimes that has worked when $...$ has > not, but I don't remember the context; afaik those (rare) situations > were deemed to be bugs in the exporter and have all been fixed. > > Nick > > >