From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Embedding images in Org Mode for HTML export Date: Tue, 16 Feb 2016 19:22:27 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fbce0d4600b052be80dfa Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVlCg-0004RE-1V for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 14:22:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVlCe-0004st-UW for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 14:22:29 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:34796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVlCe-0004so-Lx for emacs-orgmode@gnu.org; Tue, 16 Feb 2016 14:22:28 -0500 Received: by mail-lf0-x22e.google.com with SMTP id j78so113408679lfb.1 for ; Tue, 16 Feb 2016 11:22:28 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist --001a113fbce0d4600b052be80dfa Content-Type: text/plain; charset=UTF-8 I've got this code: #+begin_src latex :packages '(("" "tikz")) :exports results :results output raw :file fsa.png \usetikzlibrary{backgrounds} \begin{tikzpicture} \draw (0,0) grid (10,5); \draw (0,0) node[below left] {$A$}; \draw (10,5) node[above right] {$B$}; \fill (0,0) circle (2pt); \fill (10,5) circle (2pt); \end{tikzpicture} #+end_src #+begin_src latex :packages '(("" "qtree")) :exports results :results output raw :file tree1.png \Tree [.sum [.squares [.prime-numbers initial seven ] ] ] #+end_src running in an org file, and it gives me embedded images in an html file. (See this ). But they're cramped and have a strange gray background. How can I not clip and get the png transparent working? LB --001a113fbce0d4600b052be80dfa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've got this code:

#+begi= n_src latex :packages '(("" "tikz")) :exports resul= ts :results output raw :file fsa.png
\usetikzlibrary{backgrounds}=
\begin{tikzpicture}
=C2=A0 \draw (0,0) grid (10,5);
=C2=A0 \draw (0,0) node[below left] {$A$};
=C2=A0 \draw (= 10,5) node[above right] {$B$};
=C2=A0 \fill (0,0) circle (2pt);
=C2=A0 \fill (10,5) circle (2pt);
\end{tikzpicture}
#+end_src

#+begin_src latex :packages '(= ("" "qtree")) :exports results :results output raw :fil= e tree1.png
=C2=A0\Tree [.sum [.squares [.prime-numbers initial s= even ] ] ]
#+end_src

running in an= org file, and it gives me embedded images in an html file. (See this). But they're cramped and hav= e a strange gray background. How can I not clip and get the png transparent= working?

LB
--001a113fbce0d4600b052be80dfa-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Embedding images in Org Mode for HTML export Date: Wed, 17 Feb 2016 08:54:13 +0000 Message-ID: <87fuwrwwcq.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVxsO-0002CP-Ix for emacs-orgmode@gnu.org; Wed, 17 Feb 2016 03:54:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVxsK-000421-I9 for emacs-orgmode@gnu.org; Wed, 17 Feb 2016 03:54:24 -0500 Received: from mail-am1on0130.outbound.protection.outlook.com ([157.56.112.130]:60576 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVxsK-00041c-9D for emacs-orgmode@gnu.org; Wed, 17 Feb 2016 03:54:20 -0500 In-Reply-To: (Lawrence Bottorff's message of "Tue, 16 Feb 2016 19:22:27 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Bottorff Cc: emacs-orgmode Mailinglist On Tuesday, 16 Feb 2016 at 19:22, Lawrence Bottorff wrote: > I've got this code: [...] > running in an org file, and it gives me embedded images in an html > file. (See this). But they're cramped and have a strange gray > background. How can I not clip and get the png transparent working? I added these options to the src block :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 800 and the first src block works for me: images are proper size and the background is transparent. I could not test the second as I don't have qtree. The process might depend on what your system uses to generate the images from LaTeX. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-601-gff9890 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Embedding images in Org Mode for HTML export Date: Thu, 18 Feb 2016 13:17:27 +0000 Message-ID: References: <87fuwrwwcq.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a83901f7062052c0b30cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWOSZ-00062O-C8 for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 08:17:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWOSX-0006hs-Ss for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 08:17:31 -0500 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:36172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWOSX-0006gU-Gh for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 08:17:29 -0500 Received: by mail-lb0-x22f.google.com with SMTP id x1so28051023lbj.3 for ; Thu, 18 Feb 2016 05:17:27 -0800 (PST) In-Reply-To: <87fuwrwwcq.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Bottorff , emacs-orgmode Mailinglist , e.fraga@ucl.ac.uk --047d7b3a83901f7062052c0b30cb Content-Type: text/plain; charset=UTF-8 That seemed to work -- sometimes. But it's probably best to simply produce each graphic separately, then embed as a png in the org file. On Wed, Feb 17, 2016 at 8:54 AM, Eric S Fraga wrote: > On Tuesday, 16 Feb 2016 at 19:22, Lawrence Bottorff wrote: > > I've got this code: > > [...] > > > running in an org file, and it gives me embedded images in an html > > file. (See this). But they're cramped and have a strange gray > > background. How can I not clip and get the png transparent working? > > I added these options to the src block > > :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 800 > > and the first src block works for me: images are proper size and the > background is transparent. I could not test the second as I don't have > qtree. > > The process might depend on what your system uses to generate the images > from LaTeX. > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-601-gff9890 > --047d7b3a83901f7062052c0b30cb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That seemed to work -- sometimes. But it's probably be= st to simply produce each graphic separately, then embed as a png in the or= g file.

On W= ed, Feb 17, 2016 at 8:54 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
On Tuesday, 16 = Feb 2016 at 19:22, Lawrence Bottorff wrote:
> I've got this code:

[...]

> running in an org file, and it gives me embedded images in an html
> file. (See this). But they're cramped and have a strange gray
> background. How can I not clip and get the png transparent working?
I added these options to the src block

=C2=A0:imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 80= 0

and the first src block works for me: images are proper size and the
background is transparent.=C2=A0 I could not test the second as I don't= have
qtree.

The process might depend on what your system uses to generate the images from LaTeX.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-601-gff9890=

--047d7b3a83901f7062052c0b30cb--