emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Neal Becker <ndbecker2@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: export latex align to html?
Date: Tue, 22 Apr 2014 18:37:23 +0100	[thread overview]
Message-ID: <87eh0pw9ik.fsf@ucl.ac.uk> (raw)
In-Reply-To: <lj66ug$e9t$1@ger.gmane.org> (Neal Becker's message of "Tue, 22 Apr 2014 12:55:44 -0400")

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: x.org --]
[-- Type: text/x-org, Size: 692 bytes --]

* 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:

      parent reply	other threads:[~2014-04-22 17:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 16:55 export latex align to html? Neal Becker
2014-04-22 17:15 ` Nick Dokos
2014-04-22 17:37 ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eh0pw9ik.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndbecker2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).