Bastien <b...@altern.org> wrote: > Hi Supriya, > > Supriya Sawant <sp.sawan...@gmail.com> 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