[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: relative paths for links not preserved with #+INCLUDE [9.1.
From: |
Nicolas Goaziou |
Subject: |
Re: [O] 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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
gvoysey <address@hidden> writes:
> I use org as my lab notebook. Fairly often, I include figures and
> plots. I have the following style of file structure:
>
> Project
> ├── project.org
> └── subproject
> ├── figures
> │ └── foo.png
> └── 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 =project.org= as HTML or LaTeX, the figures are not
> included. When I instead export =subproject.org= 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,
--
Nicolas Goaziou