emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Embedding images in Org Mode for HTML export
@ 2016-02-16 19:22 Lawrence Bottorff
  2016-02-17  8:54 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Lawrence Bottorff @ 2016-02-16 19:22 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

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 <http://147pm.info/omtest1.html>). But they're cramped and have a
strange gray background. How can I not clip and get the png transparent
working?

LB

[-- Attachment #2: Type: text/html, Size: 1073 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Embedding images in Org Mode for HTML export
  2016-02-16 19:22 Embedding images in Org Mode for HTML export Lawrence Bottorff
@ 2016-02-17  8:54 ` Eric S Fraga
  2016-02-18 13:17   ` Lawrence Bottorff
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2016-02-17  8:54 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Embedding images in Org Mode for HTML export
  2016-02-17  8:54 ` Eric S Fraga
@ 2016-02-18 13:17   ` Lawrence Bottorff
  0 siblings, 0 replies; 3+ messages in thread
From: Lawrence Bottorff @ 2016-02-18 13:17 UTC (permalink / raw)
  To: Lawrence Bottorff, emacs-orgmode Mailinglist, e.fraga

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

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 <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
>
>  :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
>

[-- Attachment #2: Type: text/html, Size: 1459 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-18 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 19:22 Embedding images in Org Mode for HTML export Lawrence Bottorff
2016-02-17  8:54 ` Eric S Fraga
2016-02-18 13:17   ` Lawrence Bottorff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).