From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: how to handle svg files when exporting orgmode to html and pdf? Date: Mon, 28 Oct 2013 16:02:39 -0400 Message-ID: <874n8117vk.fsf@gmail.com> References: <87ppu4mrvq.fsf@gmail.com> <874nb0f00a.fsf@gmail.com> <87txizew3h.fsf@gmail.com> <87r4e3euje.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vat1O-0004G2-HI for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 16:02:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vat1M-0002Y2-WE for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 16:02:42 -0400 Received: from mail-qe0-x232.google.com ([2607:f8b0:400d:c02::232]:43493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vat1M-0002Xx-SI for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 16:02:40 -0400 Received: by mail-qe0-f50.google.com with SMTP id 1so4337993qee.37 for ; Mon, 28 Oct 2013 13:02:40 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Cook, Malcolm" , 'Malcolm Cook' , "'emacs-orgmode@gnu.org'" , 'Nick Dokos' , 'Suvayu Ali' , 'Eric Schulte' , 'Vincent Beffara' , "'Thomas S. Dye'" , "'philten@cern.ch'" , 'Charles Berry' Hi Malcom, 2013ko urriak 28an, "Cook, Malcolm"-ek idatzi zuen: >=20 > Thomas, Suvayu, Aaron, Nick, Eric, Carsten, Phil, et al, >=20 > Hi again! >=20 > Can I re-open this thread to discuss two new issues I now experience with= emacs 24.3.1 and orgmode version 8.2.1 in the handling of svg =3D> tex =3D= > pdf ? >=20 > Here goes: >=20 > 1) If the plot has text in it which contains a percent character (%), > then we fail due to https://bugs.launchpad.net/inkscape/+bug/857231 It sounds from as though inkscape makes a deliberate effort to support LaTeX markup in their pdf+latex output. So it=E2=80=99s not surprising that % is a problem. It=E2=80=99s unfortunate from the perspective of having a single SVG file t= hat works in both HTML and LaTeX, but I don=E2=80=99t know if that is an argume= nt that will cut ice with them. I don=E2=80=99t know what org can/should do to patch around inkscape=E2=80=99s design decisions. Certainly the svg LaTeX package could be patched to use inkscape=E2=80=99s = pdf export, instead of the pdf+latex one. This would lose the nice fonts that running the text through latex nets you, but get rid of the % annoyances. >=20 > 2) If the :file is in a sub-directory (for example, `:file > fig/mtcars.svg`), even though both ./fig/mtcars.pdf_tex and > ./fig/mtcars.pdf are created, the reference to the .pdf in the > .pdf_tex is not interpreted relative to the subdirectory, but rather > to the parent, and so the .pdf is not found. Have you looked at the \graphicspath macro from the graphics package? . You may be able to get things to work by adding \graphicspath{{fig/}} (note the double braces) to your document. \setsvg{svgpath=3Dfig/} from the svg package may also/additionally be needed. Aaron PS Maybe org should be generating the \includesvg command relative to the graphicspath or svgpath =E2=80=93 I=E2=80=99m not sure. But let us kno= w if setting those variables works at all, and if so we can think about adding support to org. --=20 Aaron Ecay