On Wed, 7 Jul 2010 10:06:15 +0200, Rainer M Krug <[email protected]> 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
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode