From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: BUG report [Was: computing the size of a tikz to png image during export] Date: Sun, 28 Jan 2018 20:00:02 +0100 Message-ID: Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c124a40dd7a980563dabdea" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efsBq-0007m3-RI for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 14:00:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efsBm-0003eB-SU for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 14:00:30 -0500 Received: from smtp2.supelec.fr ([160.228.120.31]:42092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efsBm-0003dY-C3 for emacs-orgmode@gnu.org; Sun, 28 Jan 2018 14:00:26 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id 6E97580CD6 for ; Sun, 28 Jan 2018 20:00:24 +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 NAJJHu-jS3NZ for ; Sun, 28 Jan 2018 20:00:23 +0100 (CET) Received: from mail-qt0-f178.google.com (mail-qt0-f178.google.com [209.85.216.178]) by smtp2.supelec.fr (Postfix) with ESMTPSA id B8CE880CD4 for ; Sun, 28 Jan 2018 20:00:23 +0100 (CET) Received: by mail-qt0-f178.google.com with SMTP id x27so10122384qtm.12 for ; Sun, 28 Jan 2018 11:00:23 -0800 (PST) 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 --94eb2c124a40dd7a980563dabdea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well, I think there is a problem with the current master since commit 38be85124551083d269. The problem is that the by-backend trick which were tolerated before does not work anymore. Tested between Org 9.1.6 as in current emacs-26.0.91 release versus current Org master. More over, ignoring the no-eval parameter in org-babel-parse-header-arguments restores the previous behavior. Regards, Fabrice 2018-01-28 16:37 GMT+01:00 Fabrice Popineau : > > > 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 > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --94eb2c124a40dd7a980563dabdea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Well, I think there is a problem with the current= master
since commit 38be85124551083d269.

The problem is that the by-backend trick which were tolerated before
does not work anymore.

Tested between Org 9.= 1.6 as in current emacs-26.0.91 release versus current Org master.

More over, ignoring the no-eval parameter in=C2=A0org-babe= l-parse-header-arguments
restores the previous behavior.

Regards,

Fabrice





2018-01-28 16:37 GMT+01:00 Fabrice Popineau= <fabrice.popineau@supelec.fr>:


2018-01-24 8:= 54 GMT+01:00 Alan Schmitt <alan.schmitt@polytechnique.or= g>:
Hell= o,

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 this by-backend trick still work with Org 9.1.6?
Because I u= sed it too and for some reason it fails to evaluate the by-backend form now= .
What am I overlooking ?

Thanks,
<= div>
Fabrice




--
Fabrice Popineau
-----------------------------
SUPELEC
D=C3=A9partement Informatique
3, rue Jol= iot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 1= 69851950
Standard : +33 (0) 169851212
-----------------= -------------

--94eb2c124a40dd7a980563dabdea--