[O] Embedding images in Org Mode for HTML export

2016-02-16 Thread Lawrence Bottorff
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


Re: [O] Embedding images in Org Mode for HTML export

2016-02-17 Thread Eric S Fraga
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



Re: [O] Embedding images in Org Mode for HTML export

2016-02-18 Thread Lawrence Bottorff
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
>