From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: how to insert fraction & integration Date: Thu, 27 Sep 2012 22:44:44 -0400 Message-ID: <3637.1348800284@alphaville> References: <87d3175by0.fsf@bzg.ath.cx> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THQZR-0003gE-PH for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 22:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THQZQ-0008WJ-C8 for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 22:44:53 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:26268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THQZQ-0008Vx-7m for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 22:44:52 -0400 In-Reply-To: Message from Bastien of "Fri, 28 Sep 2012 00:37:59 +0200." <87d3175by0.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org, Supriya Sawant Bastien wrote: > Hi Supriya, > > Supriya Sawant writes: > > > how to insert fraction & integration in emacs .org file > > > > eg. test.org > > > > \frac{1}{2} > > \sqrt{x^2-1} > > > > when I export it into html using org-export-as-html it gives > > > > test.html > > > > \frac{1}{2} > > \sqrt{x^2-1} > > > > I am new to org-mode. > > can anyone tell me whether I am inserted equation in right way?? > > Use the LaTeX syntax directly: $...$ to inline them and $$...$$ to > center them in the page. This works both in LaTeX and HTML. > > #+TITLE: Test > > $\frac{1}{2}$ and $\sqrt{x^2-1}$ > > or > > $$\frac{1}{2}$$ > > $$\sqrt{x^2-1}$$ > This may work for org, but $$...$$ in particular does not work for LaTeX. I would recommend that you don't use these delimiters: use \( ... \) for inlines and \[...\] for displays. $$...$$ is plain TeX, not LaTeX, and according to Lamport (p. 233), "... does not work properly." See also http://www.tex.ac.uk/cgi-bin/texfaq2html?label=dolldoll Nick