On Wed, 7 Jul 2010 10:06:15 +0200, Rainer M Krug wrote: > > [1 ] > [1.1 ] > 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