From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Export of latex source to html Date: Wed, 07 Jul 2010 11:59:09 +0100 Message-ID: <87aaq38sn6.wl%ucecesf@ucl.ac.uk> References: Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Jul__7_11:59:09_2010-1" Return-path: Received: from [140.186.70.92] (port=43605 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWSLZ-0000D0-1Z for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 06:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWSLX-0002WW-Bi for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 06:59:20 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:49369) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWSLX-0002Vv-71 for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 06:59:19 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode --Multipart_Wed_Jul__7_11:59:09_2010-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Wed_Jul__7_11:59:09_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Wed_Jul__7_11:59:09_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Wed_Jul__7_11:59:09_2010-1--