On 2018-01-28 16:37, Fabrice Popineau writes:
> I jump on this example to ask: does this by-backend trick still work with
> Org 9.1.6?
It works here. I did not provide the definition, here it is:
(defmacro by-backend (&rest body)
`(cl-case org-export-current-backend ,@body))
Best,
Alan
--
> On Jan 28, 2018, at 7:37 AM, Fabrice Popineau
> wrote:
>
> I jump on this example to ask: does this by-backend trick still work with Org
> 9.1.6?
Probably not. Nowadays, you should reference `org-export-current-backend ', not
`backend'.
,[ C-h v org-export-current-backend RET ]
| or
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
> #+hea
On 2018-01-25 06:46, Eric S Fraga writes:
> On Wednesday, 24 Jan 2018 at 08:54, Alan Schmitt wrote:
>> If I understand how it works in the png case, a standalone latex file is
>> first generated, then it is compiled to pdf and converted to png using
>> imagemagick. Instead of specifying the geome
On Wednesday, 24 Jan 2018 at 08:54, Alan Schmitt wrote:
> If I understand how it works in the png case, a standalone latex file is
> first generated, then it is compiled to pdf and converted to png using
> imagemagick. Instead of specifying the geometry of the image (width of
> 800 pixels above), I