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

Reply via email to