From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: prevent auto appending #+INCLUDE files title Date: Mon, 23 Nov 2015 18:13:21 +0100 Message-ID: <87bnak1vwu.fsf@gmx.us> References: 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]:41468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ugT-0000VI-51 for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:13:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0ugP-0000il-9T for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:13:45 -0500 Received: from plane.gmane.org ([80.91.229.3]:55583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ugP-0000ic-2h for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:13:41 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a0ugL-0008P8-Vf for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 18:13:38 +0100 Received: from 62.80.108.13 ([62.80.108.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Nov 2015 18:13:32 +0100 Received: from rasmus by 62.80.108.13 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Nov 2015 18:13:32 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Manuel, Manuel Koell writes: > I tried to use #+INCLUDE "sitemap.org" :only-contents t with the > :auto-sitemap option on my publishing project, but whenever I include a > file this way the title appends to the exported document title. > > example file (test.org) > > ``` > > #+TITLE: My title > > #+INCLUDE "sitemap.org" :only-contents t > ``` > > Now the exported document title test.html contains the title: My title > Sitemap > Expected behaviour: the title I set with #+TITLE Currently :only-contents is just referring to a headline or so. E.g. #+include: "test.org::#head1" :only-contents t will limit the input to the sense of contents as understood by org-element. I agree that it might extend the meaning of :only-contents to also work on full files, though it’s not clear what the proper behavior is. In particular, what keywords would it extend to? E.g. what about #+backend_header lines, e.g. #+html_header? To me, this sounds like a difficult problem to get right... An easy fix in your problem in this case is probably :lines "2-". Rasmus -- I feel emotional landscapes they puzzle me