[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Export of latex source to html
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] Export of latex source to html |
Date: |
Wed, 07 Jul 2010 11:59:09 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
On Wed, 7 Jul 2010 10:06:15 +0200, Rainer M Krug <address@hidden> wrote:
>
> [1 <multipart/alternative (7bit)>]
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> Hi
>
> I created the attached latex.org based on the example with pgf/tikz and it
> exports fine into a pdf. But export to html causes the problem, that I get
> only a link to the created graph. If I change :file to :file fsa.png, an
> image is included but it is a) very small and b) nearly completely black.
>
> I guess, it has to do with the size of the png - but how can I change it?
> :width and :height do not seem to have any impact.
Rainer,
one approach could be to allow latex to create the PDF and the convert
(using the shell, say) the PDF to a PNG and include that:
--8<---------------cut here---------------start------------->8---
#+begin_src latex :file fsa.pdf :packages '(("" "tikz"))
[...]
#+end_src
#+begin_src sh
convert -density 300 fsa.pdf fsa.png
#+end_src
#+attr_html: width=50%
[[file:./fsa.png]]
--8<---------------cut here---------------end--------------->8---
This works. However, my babel knowledge is not up to speed so I don't
know how to tell it to not output anything in the HTML document for
the two babel snippets (latex and sh). If you know how, let me know!
HTH,
eric
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D