From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Export of latex source to html Date: Wed, 7 Jul 2010 10:06:15 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e6dee7c5d545e0048ac7a4fb Return-path: Received: from [140.186.70.92] (port=42800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWPe7-0007uc-3n for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 04:06:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWPe5-0005UP-PN for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 04:06:18 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:64400) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWPe5-0005UL-F9 for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 04:06:17 -0400 Received: by wwi14 with SMTP id 14so5904090wwi.30 for ; Wed, 07 Jul 2010 01:06:16 -0700 (PDT) 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: emacs-orgmode --0016e6dee7c5d545e0048ac7a4fb Content-Type: multipart/alternative; boundary=0016e6dee7c5d545da048ac7a4f9 --0016e6dee7c5d545da048ac7a4f9 Content-Type: text/plain; charset=ISO-8859-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. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: Rainer@krugs.de Skype: RMkrug Google: R.M.Krug@gmail.com --0016e6dee7c5d545da048ac7a4f9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

I created the attached latex.org based on the example with pgf/tikz and it exports fine i= nto 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 include= d 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 i= t? :width and :height do not seem to have any impact.

Cheers,
Rainer


--
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biolo= gy
Natural Sciences Building
Office Suite 2039
Stellenbosch UniversityMain Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:= =A0 =A0 =A0 =A0 =A0 +27 - (0)83 9479 042
Fax: =A0 =A0 =A0 =A0 =A0 =A0+2= 7 - (0)86 516 2782
Fax: =A0 =A0 =A0 =A0 =A0 =A0+49 - (0)321 2125 2244
email: =A0 =A0 =A0 = =A0 =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0 =A0 =A0RMkrug
Google: =A0 =A0 =A0 =A0 R.M.Krug@gmail.com=

--0016e6dee7c5d545da048ac7a4f9-- --0016e6dee7c5d545e0048ac7a4fb Content-Type: application/octet-stream; name="latex.org" Content-Disposition: attachment; filename="latex.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gbbvf10t0 IytUSVRMRTogICAgIGxhdGV4Lm9yZwojK0FVVEhPUjogICAgUmFpbmVyIE0gS3J1ZwojK0VNQUlM OiAgICAgcmtydWdAZWNvbG1vZAojK0RBVEU6ICAgICAgMjAxMC0wNy0wNyBXZWQKIytERVNDUklQ VElPTjogCiMrS0VZV09SRFM6IAojK0xBT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sKICAgIFxub2RlIFthc3RhdGVdICgyKSBhdCAoMSwwKSB7 Mn07CiAgICBcbm9kZSBbcnN0YXRlXSAoMykgYXQgKDIsMCkgezN9OwogICAgXHBhdGggKDEpIGVk Z2UgW2JlbmQgbGVmdF0gbm9kZSB7Yn0gKDIpCiAgICAgICAgICAoMikgZWRnZSBub2RlIHtifSAo MykKICAgICAgICAgICgyKSBlZGdlIFtiZW5kIGxlZnRdIG5vZGUge2F9ICgxKQogICAgICAgICAg KDMpIGVkZ2UgW2xvb3AgYWJvdmVdIG5vZGUgeyhhLCBiKX0gKDMpOwogIFxlbmR7dGlrenBpY3R1 cmV9CiMrZW5kX3NyYwo= --0016e6dee7c5d545e0048ac7a4fb 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 --0016e6dee7c5d545e0048ac7a4fb-- 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-- 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 12:17:45 +0100 Message-ID: <87630r8rs6.wl%ucecesf@ucl.ac.uk> References: <87aaq38sn6.wl%ucecesf@ucl.ac.uk> 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_12:17:45_2010-1" Return-path: Received: from [140.186.70.92] (port=49617 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWSdY-0003sX-4p for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 07:17:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWSdW-0006fd-UA for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 07:17:56 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:47747) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWSdW-0006f3-MW for emacs-orgmode@gnu.org; Wed, 07 Jul 2010 07:17:54 -0400 In-Reply-To: <87aaq38sn6.wl%ucecesf@ucl.ac.uk> 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 , emacs-orgmode --Multipart_Wed_Jul__7_12:17:45_2010-1 Content-Type: text/plain; charset=US-ASCII Following up on my own message, one thing to consider is that generating the figure in latex creates a PDF that takes up the whole page but the figure is only a small part of this page. In latex, if I wanted the PDF to include only the tikz figure, I would do the following: --8<---------------cut here---------------start------------->8--- \documentclass{article} [...] \usepackage[active,tightpage]{preview} \setlength\PreviewBorder{5pt}% \begin{document} % Define block styles \begin{preview} [... the tikz commands ...] \end{preview} \end{document} --8<---------------cut here---------------end--------------->8--- It may be worthwhile providing this type of option to babel-latex? --Multipart_Wed_Jul__7_12:17:45_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_12:17:45_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_12:17:45_2010-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Export of latex source to html Date: Thu, 8 Jul 2010 08:22:19 +0200 Message-ID: References: <87aaq38sn6.wl%ucecesf@ucl.ac.uk> <87630r8rs6.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2134447298==" Return-path: Received: from [140.186.70.92] (port=38225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWkV5-000640-BH for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 02:22:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWkV3-0004Oj-MW for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 02:22:23 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:53525) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWkV3-0004OI-HL for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 02:22:21 -0400 Received: by wyj26 with SMTP id 26so320816wyj.0 for ; Wed, 07 Jul 2010 23:22:20 -0700 (PDT) In-Reply-To: <87630r8rs6.wl%ucecesf@ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode --===============2134447298== Content-Type: multipart/alternative; boundary=0016e65b54e4029364048ada4fab --0016e65b54e4029364048ada4fab Content-Type: text/plain; charset=ISO-8859-1 Hi Eric Thanks for your comments. I will look into both of them. Cheers, Rainer On Wed, Jul 7, 2010 at 1:17 PM, Eric S Fraga wrote: > Following up on my own message, one thing to consider is that > generating the figure in latex creates a PDF that takes up the whole > page but the figure is only a small part of this page. In latex, if I > wanted the PDF to include only the tikz figure, I would do the > following: > > --8<---------------cut here---------------start------------->8--- > \documentclass{article} > > [...] > > \usepackage[active,tightpage]{preview} > \setlength\PreviewBorder{5pt}% > > \begin{document} > % Define block styles > \begin{preview} > > [... the tikz commands ...] > > \end{preview} > \end{document} > --8<---------------cut here---------------end--------------->8--- > > It may be worthwhile providing this type of option to babel-latex? > > -- > Eric S Fraga > GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D > > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: Rainer@krugs.de Skype: RMkrug Google: R.M.Krug@gmail.com --0016e65b54e4029364048ada4fab Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eric

Thanks for your comments.

I will look into both of th= em.

Cheers,

Rainer


On W= ed, Jul 7, 2010 at 1:17 PM, Eric S Fraga <ucecesf@ucl.ac.uk> wrote:
Following up on m= y own message, one thing to consider is that
generating the figure in latex creates a PDF that takes up the whole
page but the figure is only a small part of this page. =A0In latex, if I wanted the PDF to include only the tikz figure, I would do the
following:

--8<---------------cut here---------------start------------->8---
\documentclass{article}

[...]

\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{5pt}%

\begin{document}
=A0% Define block styles
=A0\begin{preview}

[... the tikz commands ...]

=A0\end{preview}
\end{document}
--8<---------------cut here---------------end---------= ------>8---

It may be worthwhile providing this type of option to babel-latex?
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 =A0570D C891 93D8 FFFC F67D




--
NEW GERMAN FAX NUMB= ER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conserva= tion Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for I= nvasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch UniversityMain Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:= =A0 =A0 =A0 =A0 =A0 +27 - (0)83 9479 042
Fax: =A0 =A0 =A0 =A0 =A0 =A0+2= 7 - (0)86 516 2782
Fax: =A0 =A0 =A0 =A0 =A0 =A0+49 - (0)321 2125 2244
email: =A0 =A0 =A0 = =A0 =A0Rainer@krugs.de

Skype:= =A0 =A0 =A0 =A0 =A0RMkrug
Google: =A0 =A0 =A0 =A0 R.M.Krug@gmail.com

--0016e65b54e4029364048ada4fab-- --===============2134447298== 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 --===============2134447298==--