Re: [O] computing the size of a tikz to png image during export

2018-01-29 Thread Alan Schmitt
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 --

Re: [O] computing the size of a tikz to png image during export

2018-01-28 Thread Berry, Charles
> 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

Re: [O] computing the size of a tikz to png image during export

2018-01-28 Thread 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 > #+hea

Re: [O] computing the size of a tikz to png image during export

2018-01-25 Thread Alan Schmitt
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

Re: [O] computing the size of a tikz to png image during export

2018-01-24 Thread Eric S Fraga
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