From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: computing the size of a tikz to png image during export Date: Sun, 28 Jan 2018 16:37:34 +0100 Message-ID: References: Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147b912c3ccf40563d7e95a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efp24-0000yN-1w for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 10:38:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efp20-0006uO-NB for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 10:38:12 -0500 Received: from smtp2.supelec.fr ([160.228.120.31]:36784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efp20-0006pK-Ci for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 10:38:08 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id D8D0580C94 for ; Sun, 28 Jan 2018 16:37:55 +0100 (CET) Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9x3DmXmvn4a5 for ; Sun, 28 Jan 2018 16:37:55 +0100 (CET) Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com [209.85.220.175]) by smtp2.supelec.fr (Postfix) with ESMTPSA id 4F69780C92 for ; Sun, 28 Jan 2018 16:37:55 +0100 (CET) Received: by mail-qk0-f175.google.com with SMTP id t134so2674014qke.5 for ; Sun, 28 Jan 2018 07:37:55 -0800 (PST) In-Reply-To: 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" To: Alan Schmitt Cc: emacs-orgmode --001a1147b912c3ccf40563d7e95a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2018-01-24 8:54 GMT+01:00 Alan Schmitt : > Hello, > > I use this great trick to have both a pdf and html export of tikz > images: > > #+header: :file (by-backend (latex "tp6-tree.tikz") (t "tp6-tree.png")) > #+header: :imagemagick yes :iminoptions -density 600 :imoutoptions > -geometry 800 > #+header: :results file raw > #+header: :fit yes > #+header: :headers '("\\usepackage{tikz}") > #+begin_src latex > \begin{tikzpicture} > =E2=80=A6 > \end{tikzpicture} > #+end_src > > I jump on this example to ask: does this by-backend trick still work with Org 9.1.6? Because I used it too and for some reason it fails to evaluate the by-backend form now. What am I overlooking ? Thanks, Fabrice --001a1147b912c3ccf40563d7e95a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2018-01-24 8:54 GMT+01:00 Alan Schmitt <alan.schmitt@poly= technique.org>:
Hello,

I use this great trick to have both a pdf and html export of tikz
images:

#+header: :file (by-backend (latex "tp6-tree.tikz") (t "tp6-= tree.png"))
#+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometr= y 800
#+header: :results file raw
#+header: :fit yes
#+header: :headers '("\\usepackage{tikz}")
#+begin_src latex
\begin{tikzpicture}
=E2=80=A6
\end{tikzpicture}
#+end_src


I jump on this example to ask: does th= is by-backend trick still work with Org 9.1.6?
Because I used it = too and for some reason it fails to evaluate the by-backend form now.
=
What am I overlooking ?

Thanks,
Fabrice

--001a1147b912c3ccf40563d7e95a--