From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Bug: Feature Request: Specifying a 'master file' in included files [9.0.1 (9.0.1-elpa @ /home/schnecki/.emacs.d/elpa/org-20161118/)] Date: Wed, 14 Dec 2016 10:27:47 +0100 Message-ID: <87fulqzwq4.fsf@gmx.us> References: <874m29w86v.fsf@uibk.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cH5r0-0008Ny-Q3 for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 04:28:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cH5qw-0003FA-QU for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 04:28:02 -0500 Received: from [195.159.176.226] (port=54356 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cH5qw-0003Ee-Jw for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 04:27:58 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cH5qo-0003SO-AL for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 10:27:50 +0100 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 Manuel, Manuel Schneckenreither writes: > I have a feature request. It would be awesome if there was a master file setup > similar to auctex such that whenever an export is started while residing in an > included file the export is automatically called from the master buffer (main file > with headers and all includes). This would generate the desired exported document > (html,LaTeX,...). Currently, something similar may be done using the publishing, > but this only works for HTML exports. I'm thinking of something like following at > the top of the included file: Why does it only work for html export? You can chose whichever export backend you want for publishing projects. There’s even a "current project" option in C-c C-e. Of course you’d need to explicitly add the projects you need. > # Set master in file introduction.org > #+MASTER_FILE: main.org # possibly even with relative path, like ../main.org I have no opinion on whether it’s worth having such a keyword. Thanks, Rasmus -- This space is left intentionally blank