emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: tikz for multiple targets
Date: Thu, 11 Jul 2013 10:38:15 +0200	[thread overview]
Message-ID: <87a9ltxzig.fsf@gmx.us> (raw)
In-Reply-To: 878v1d7his.fsf@gmail.com

Eric Schulte <schulte.eric@gmail.com> writes:


> Building from this example, the attached patch to ob-latex.el combined
> with the attached org-mode file should export the latex (tikz) code as
> an inline SVG image to HTML and as embedded tikz to latex.
>
> If this works generally I can commit the patch to ob-latex.el.

Looks good to me, although it would make ox-html depend on ox-latex
which may or may not be desirable. . .  For instance math stuff is
handled internally by ox-html, it seems (correct me if I'm wrong).
While TikZ clearly is a LaTeX feature, producing SVGs are more of a
way of support this type of figures in html output, although it
depends on TeX binaries.

File links to tikz files [[file:pix.pgf]] (e.g. produced with R or
matplotlib) won't be understood with this patch.  It should
automatically convert the picture to an svg figure, I think.  Perhaps
support for file links can be added later.

—Rasmus

-- 
In theory, practice and theory are the same. In practice they are not

  reply	other threads:[~2013-07-11  8:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09 22:34 tikz for multiple targets Eric S Fraga
2013-07-10  9:50 ` Rasmus
2013-07-10  9:54   ` Rasmus
2013-07-10 10:16     ` Fabrice Popineau
2013-07-10 10:56   ` Eric S Fraga
2013-07-10 20:44     ` Andreas Leha
2013-07-11  6:11       ` Eric Schulte
2013-07-11  8:38         ` Rasmus [this message]
2013-07-11 16:01           ` Eric Schulte
2013-07-11 10:50         ` Andreas Leha
2013-07-11 16:07           ` Eric Schulte
2013-07-11 18:56             ` Andreas Leha
2013-07-11 19:03               ` Eric Schulte
2013-07-11 23:15                 ` Andreas Leha
2013-07-11 22:33             ` Eric S Fraga
2013-07-12  0:20               ` Eric Schulte
2013-07-15 13:11                 ` Eric S Fraga
2013-07-16 11:31                 ` Eric S Fraga
2013-07-16 12:26                   ` Andreas Leha
2013-07-16 15:18                     ` Eric S Fraga
2013-07-11  7:21       ` Eric S Fraga
2013-07-11 15:58         ` Eric Schulte

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=87a9ltxzig.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).