From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Rainer M Krug <r.m.krug@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Export of latex source to html
Date: Wed, 07 Jul 2010 11:59:09 +0100 [thread overview]
Message-ID: <87aaq38sn6.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <AANLkTimHtQXjf4f7rI8NIkW9NAnMW2d_HDqfxNuljsWD@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]
On Wed, 7 Jul 2010 10:06:15 +0200, Rainer M Krug <r.m.krug@gmail.com> wrote:
>
> [1 <multipart/alternative (7bit)>]
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> 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
[-- Attachment #2: Type: text/plain, Size: 75 bytes --]
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2010-07-07 10:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 8:06 Export of latex source to html Rainer M Krug
2010-07-07 10:59 ` Eric S Fraga [this message]
2010-07-07 11:17 ` Eric S Fraga
2010-07-08 6:22 ` Rainer M Krug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aaq38sn6.wl%ucecesf@ucl.ac.uk \
--to=ucecesf@ucl.ac.uk \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=r.m.krug@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).