emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: gvoysey <gvoysey@bu.edu>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <CAC3+WKY_q8k2K=YEJQtjoaUHV=47pm-oZo5ziSbdwEk+vcjRgA@mail.gmail.com> (raw)
In-Reply-To: <87d0wdsvwp.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]

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 <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> gvoysey <gvoysey@bu.edu> 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
>



-- 
Graham Voysey
Boston University College of Engineering
HRC Research Engineer
Auditory Biophysics and Simulation Laboratory
ERB 413

[-- Attachment #2: Type: text/html, Size: 3048 bytes --]

      reply	other threads:[~2018-06-26 16:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-26  3:17 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/)] gvoysey
2018-06-26 10:07 ` Nicolas Goaziou
2018-06-26 16:23   ` gvoysey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC3+WKY_q8k2K=YEJQtjoaUHV=47pm-oZo5ziSbdwEk+vcjRgA@mail.gmail.com' \
    --to=gvoysey@bu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).