From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolaus Rath Subject: How to fix path to figures in included files Date: Wed, 12 Oct 2016 09:31:31 -0700 Message-ID: <871szlzfz0.fsf@thinkpad.rath.org> 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]:43175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buMRU-0005I2-6d for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 12:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buMRP-0002aR-W9 for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 12:31:43 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:57519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buMRO-0002Ye-Ps for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 12:31:39 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9B8A0206B5 for ; Wed, 12 Oct 2016 12:31:33 -0400 (EDT) Received: from ebox.rath.org (ebox.rath.org [45.79.69.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 5A27FF29D1 for ; Wed, 12 Oct 2016 12:31:33 -0400 (EDT) Received: from thinkpad.rath.org (thinkpad [192.168.12.2]) by ebox.rath.org (Postfix) with ESMTPS id 5B3E166B for ; Wed, 12 Oct 2016 16:31:32 +0000 (UTC) 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: emacs-orgmode@gnu.org Hi, When using INCLUDE in an org-file to include a file in a sub-directory (e.g. "#+INCLUDE: preamble/preamble.org"), and the included file in turn refers to a file ("[[./figure1.png]]"), then the LaTeX export for the top-level org file refers to the file with its path relative to the included .org file rather than the top-level org file for which LaTeX is generated. Is there a way to fix this? In other words, if I have a file "main.org" that contains just ,---- | #+INCLUDE: preamble/preamble.org" `---- and preamble/preamble.org contains ,---- | * Preamble |=20 | Look at this amazing image: | [[./file1.png]] `---- Then the LaTeX that is generated for "main.org" is ,---- | \part{Preamble} | \label{sec:orgheadline3} |=20 | Look at this amazing image: |=20 | \includegraphics[width=3D.9\linewidth]{./figure1.png} `---- but I want it to be: ,---- | \part{Preamble} | \label{sec:orgheadline3} |=20 | Look at this amazing image: |=20 | \includegraphics[width=3D.9\linewidth]{preamble/figure1.png} `---- Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB