From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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:07:50 +0200 Message-ID: <87d0wdsvwp.fsf@nicolasgoaziou.fr> References: 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]:47153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXktE-0005aW-1S for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 06:08:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXktA-00066m-R6 for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 06:08:00 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:41427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fXktA-00066N-Jp for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 06:07:56 -0400 In-Reply-To: (gvoysey's message of "Mon, 25 Jun 2018 23:17:23 -0400") 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: gvoysey Cc: emacs-orgmode@gnu.org 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.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. When I instead export =3Dsubproject.org=3D directly, they are. > > Is there a way to insert file links to specify "relative to exactly this > 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, --=20 Nicolas Goaziou