From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: export latex align to html? Date: Tue, 22 Apr 2014 18:37:23 +0100 Message-ID: <87eh0pw9ik.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcedW-0001os-Si for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 13:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcedQ-0004dt-JW for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 13:37:38 -0400 Received: from mail-am1lp0013.outbound.protection.outlook.com ([213.199.154.13]:26997 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcedQ-0004Zu-9r for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 13:37:32 -0400 In-Reply-To: (Neal Becker's message of "Tue, 22 Apr 2014 12:55:44 -0400") 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: Neal Becker Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain On Tuesday, 22 Apr 2014 at 12:55, Neal Becker wrote: > I have an align environment: > > #+begin_latex > \begin{align*} > \Lambda= & \max_{k,l}\left| > \sum_{i=0}^{M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\sum_{i=M}^{2M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\cdots\right| > \\ > \approx & \max_{k,l}\left| > \sum_{m}e^{j2\pi\Delta_{f}kmM}\sum_{i=mM}^{(m+1)M-1}r_{i+l}x_{i}^{*}\right| > \end{align*} > #+end_latex > > That exports fine to latex, but not html. Is there a way to do this? The attached works for me. You can have conditional code on the latex src block to generate raw latex when exporting to latex and an image when exporting to html. Check out http://thread.gmane.org/gmane.emacs.orgmode/74474/focus=74762 HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-1027-g4c0a29 --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename="x.org" * Intro I have an align environment: #+begin_src latex :file alignedequation.png :results raw \begin{align*} \Lambda= & \max_{k,l}\left| \sum_{i=0}^{M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\sum_{i=M}^{2M-1}r_{i+l}x_{i}^{*}e^{j2\pi\Delta_{f}ki}+\cdots\right| \\ \approx & \max_{k,l}\left| \sum_{m}e^{j2\pi\Delta_{f}kmM}\sum_{i=mM}^{(m+1)M-1}r_{i+l}x_{i}^{*}\right| \end{align*} #+end_src That exports fine to latex, but not html. Is there a way to do this? * settings # Local Variables: # org-export-allow-bind-keywords: t # org-format-latex-options: (:foreground "black" :background "white" :matchers '("begin") :scale 1.0 ) # org-latex-create-formula-image-program: imagemagick # End: --=-=-=--