From mboxrd@z Thu Jan 1 00:00:00 1970 From: gvoysey Subject: Re: Bug: relative paths for links not preserved with #+INCLUDE [9.1.6 (release_9.1.6-419-g4b2006 @ /Users/gvoysey/.emacs.d/straight/build/org/)] Date: Tue, 26 Jun 2018 12:23:00 -0400 Message-ID: References: <87d0wdsvwp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007b9ebc056f8de98f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXqkz-0004IQ-3e for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 12:23:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXqkv-0007DT-Tp for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 12:23:53 -0400 Received: from relay68.bu.edu ([128.197.228.73]:49542) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fXqkv-0007D6-Pf for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 12:23:49 -0400 Received: from BU-AUTH (localhost.localdomain [127.0.0.1]) (authenticated bits=0) by relay68.bu.edu (8.14.3/8.14.3) with ESMTP id w5QGN1vr007565 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for ; Tue, 26 Jun 2018 12:23:02 -0400 Received: by mail-lf0-f47.google.com with SMTP id y127-v6so1389960lfc.8 for ; Tue, 26 Jun 2018 09:23:03 -0700 (PDT) In-Reply-To: <87d0wdsvwp.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --0000000000007b9ebc056f8de98f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Confirmed, this works on 9.1.13 and is not a bug, just user error. Cheers! On Tue, Jun 26, 2018 at 6:07 AM, Nicolas Goaziou wrote: > Hello, > > gvoysey writes: > > > I use org as my lab notebook. Fairly often, I include figures and > > plots. I have the following style of file structure: > > > > Project > > =E2=94=9C=E2=94=80=E2=94=80 project.org > > =E2=94=94=E2=94=80=E2=94=80 subproject > > =E2=94=9C=E2=94=80=E2=94=80 figures > > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 foo.png > > =E2=94=94=E2=94=80=E2=94=80 subproject.org > > > > I have been using #+INCLUDE to "lift" subproject.org up into project.or= g > as > > a subheading, so I can export the whole thing at once. > > > > so project.org looks like: > > > > #+begin_src org > > * project > > here are my notes > > #+INCLUDE: "./subproject/subproject.org" > > #+end_src > > > > > > and subproject: > > > > #+begin_src org > > * notes > > see this plot: > > [[./figures/foo.png]] > > #+CAPTION: a cool figure. > > #+end_src > > > > When I export =3Dproject.org=3D as HTML or LaTeX, the figures are not > > included. When I instead export =3Dsubproject.org=3D directly, they ar= e. > > > > Is there a way to insert file links to specify "relative to exactly thi= s > > file no matter where you've found yourself", or is #+INCLUDE mangling > > filepaths kind of unavoidable? If the latter, what's the recommended > > course of action here? > > Could you upgrade Org? IIRC, it was fixed some time ago? > > Regards, > > -- > Nicolas Goaziou > --=20 Graham Voysey Boston University College of Engineering HRC Research Engineer Auditory Biophysics and Simulation Laboratory ERB 413 --0000000000007b9ebc056f8de98f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Confirmed, this wor= ks on 9.1.13 and is not a bug, just user error.=C2=A0 Cheers!

On Tue, Jun 26,= 2018 at 6:07 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

gvoysey <gvoysey@bu.edu> writes= :

> I use org as my lab notebook.=C2=A0 Fairly often, I include figures an= d
> plots.=C2=A0 I have the following style of file structure:
>
> Project
> =E2=94=9C=E2=94=80=E2=94=80 project.org
> =E2=94=94=E2=94=80=E2=94=80 subproject
>=C2=A0 =C2=A0 =C2=A0=E2=94=9C=E2=94=80=E2=94=80 figures
>=C2=A0 =C2=A0 =C2=A0=E2=94=82=C2=A0 =C2=A0=E2=94=94=E2=94=80=E2=94=80 f= oo.png
>=C2=A0 =C2=A0 =C2=A0=E2=94=94=E2=94=80=E2=94=80 subproject.org
>
> I have been using #+INCLUDE to "lift" subproject.org up into= projec= t.org as
> a subheading, so I can export the whole thing at once.
>
> so project.org looks like:
>
> #+begin_src org
> * project
> here are my notes
> #+INCLUDE: "./subproject/subproject.org"
> #+end_src
>
>
> and subproject:
>
> #+begin_src org
> * notes
> see this plot:
> [[./figures/foo.png]]
> #+CAPTION: a cool figure.
> #+end_src
>
> When I export =3Dproject.org=3D as HTML or LaTeX, the figures are not
> included.=C2=A0 When I instead export =3Dsubproject.org=3D directly, t= hey are.
>
> Is there a way to insert file links to specify "relative to exact= ly this
> file no matter where you've found yourself", or is=C2=A0 #+IN= CLUDE mangling
> filepaths kind of unavoidable?=C2=A0 If the latter, what's the rec= ommended
> course of action here?

Could you upgrade Org? IIRC, it was fixed some time ago?

Regards,

--
Nicolas Goaziou



--
G= raham Voysey
Boston University College of Engineering
HRC Research En= gineer
Auditory Biophysics and Simulation Laboratory
ERB 413
--0000000000007b9ebc056f8de98f--