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:33:59 +0100 Message-ID: <877fl81uyg.fsf@gmx.us> References: <87bnak1vwu.fsf@gmx.us> 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]:48294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v09-0000PX-U7 for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:34:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0v06-0006Y9-HQ for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:34:05 -0500 Received: from mout.gmx.net ([212.227.17.20]:64682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0v06-0006Wf-8I for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:34:02 -0500 In-Reply-To: (Manuel Koell's message of "Mon, 23 Nov 2015 18:28:08 +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: man.koell@gmail.com Cc: emacs-orgmode@gnu.org Manuel Koell writes: > I think you got me wrong or I don't understand correctly ^^ I don=E2=80=99t think so. > The problem is, when I export a file which uses #+INCLUDE inside, for > example my index.org where I want to include the latest 5 posts (generated > from sitemap.org). The exported index.html has the wrong title/h1 then: > My title Sitemap. The files I used to include append their > title to the index.org document then. This is not something I would expect > if I already set the #+TITLE option. Idk if this is a bug or a feature. This is a feature. Basically, it follows from the fact that you can write something like this: #+title: the first part of long title #+title: and the second part #+include works by inserting the included document at the right place. So the buffer ox parses looks something like this. #+Title: main title # ... #+Title: sitemap # ... > Do you've any workaround? I dont know why orgmode is mess up my title. Use :lines "2-", since your unwanted #+title is probably at line 1. Rasmus --=20 Er du tosset for noge' l=C3=A5rt!