From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex export with \begin{equation} Date: Thu, 13 Sep 2018 14:47:37 -0400 Message-ID: <87o9d1grp2.fsf@alphaville.usersys.redhat.com> References: <87muslpm5t.fsf@gmail.com> <87zhwlfrqs.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0WfT-0003nj-V3 for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 14:48:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0WfJ-0008O9-E0 for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 14:48:39 -0400 Received: from [195.159.176.226] (port=49726 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g0WfH-0007yM-6m for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 14:48:31 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1g0WcP-0005Pg-B5 for emacs-orgmode@gnu.org; Thu, 13 Sep 2018 20:45:33 +0200 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" To: emacs-orgmode@gnu.org Dominik Schrempf writes: > so I found the reason. Both Org versions behave the same, sorry for the > confusion. The original equation that does not get exported correctly contained > angles: > > \begin{equation} > = \frac{\sum_i w_i k_{eff}(i)}{\sum_i w_i}. > \end{equation} > > This equation is correctly rendered when using a .tex file and native LaTeX. > If the angles are removed, the Org Mode HTML export works: > > \begin{equation} > k_{eff} = \frac{\sum_i w_i k_{eff}(i)}{\sum_i w_i}. > \end{equation} > > Does anybody know why? Is this expected behavior? Can this be changed? > Maybe this explains it: "...Also, since the mathematics is initially given as text on the page, you need to be careful that your mathematics doesn’t look like HTML tags to the browser (which parses the page before MathJax gets to see it). In particular, that means that you have to be careful about things like less-than and greater-than signs (< and >), and ampersands (&), which have special meaning to the browsers. For example, ... when $x