From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Koell Subject: prevent auto appending #+INCLUDE files title Date: Mon, 23 Nov 2015 15:57:56 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142def250a1ef05253673a6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0sZ4-0007PH-MF for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 09:57:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0sZ3-0004yO-Bd for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 09:57:58 -0500 Received: from mail-yk0-x233.google.com ([2607:f8b0:4002:c07::233]:34729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0sZ3-0004yK-7Q for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 09:57:57 -0500 Received: by ykfs79 with SMTP id s79so240787743ykf.1 for ; Mon, 23 Nov 2015 06:57:56 -0800 (PST) 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: org-mode mailing list --001a1142def250a1ef05253673a6 Content-Type: text/plain; charset=UTF-8 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 Why is orgmode doingt such "smart" things for me? --001a1142def250a1ef05253673a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I tried to use #+INCLUDE "sitemap.org" :only-contents t with th= e :auto-sitemap option on my publishing project, but whenever I include a f= ile 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 ti= tle Sitemap
Expected behaviour: the title I set with #+TITLE
Why is orgmode doingt such "smart" things for me?
--001a1142def250a1ef05253673a6-- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Koell Subject: Re: prevent auto appending #+INCLUDE files title Date: Mon, 23 Nov 2015 18:28:08 +0100 Message-ID: References: <87bnak1vwu.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c076a2470663e0525388cff Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0uuP-0005wj-WB for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:28:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0uuO-0004ez-KD for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:28:09 -0500 Received: from mail-yk0-x22a.google.com ([2607:f8b0:4002:c07::22a]:32809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0uuO-0004em-FZ for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 12:28:08 -0500 Received: by ykdv3 with SMTP id v3so245129972ykd.0 for ; Mon, 23 Nov 2015 09:28:08 -0800 (PST) In-Reply-To: <87bnak1vwu.fsf@gmx.us> 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: Rasmus Cc: org-mode mailing list --94eb2c076a2470663e0525388cff Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Rasmus, I think you got me wrong or I don't understand correctly ^^ 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. Do you've any workaround? I dont know why orgmode is mess up my title. 2015-11-23 18:13 GMT+01:00 Rasmus : > 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 o= n > full files, though it=E2=80=99s not clear what the proper behavior is. I= n > 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 > > > --94eb2c076a2470663e0525388cff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Rasmus,

I think you got me wrong = or I don't understand correctly ^^

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: <title>My title Site= map</title>. The files I used to include append their title to the index.org document then. This is not somethi= ng I would expect if I already set the #+TITLE option. Idk if this is a bug= or a feature. Do you've any workaround? I dont know why orgmode is mes= s up my title.

2015-11-23 18:13 GMT+01:00 Rasmus <rasmus@gmx.us>:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Hi Manuel,

Manuel Koell <man.koell@gmail.com= > writes:

> I tried to use #+INCLUDE "sitemap.org" :only-contents t with th= e
> :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.=C2= =A0 E.g.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #+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<= br> full files, though it=E2=80=99s not clear what the proper behavior is.=C2= =A0 In
particular, what keywords would it extend to?=C2=A0 E.g. what about
#+backend_header lines, e.g. #+html_header?=C2=A0 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



--94eb2c076a2470663e0525388cff-- 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! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Koell Subject: Re: prevent auto appending #+INCLUDE files title Date: Mon, 23 Nov 2015 19:28:48 +0100 Message-ID: References: <87bnak1vwu.fsf@gmx.us> <877fl81uyg.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11492c787417ec0525396523 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0vr9-0001Cv-2j for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 13:28:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0vr7-0004Y5-QV for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 13:28:51 -0500 Received: from mail-yk0-x22e.google.com ([2607:f8b0:4002:c07::22e]:35055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0vr7-0004Wf-H4 for emacs-orgmode@gnu.org; Mon, 23 Nov 2015 13:28:49 -0500 Received: by ykba77 with SMTP id a77so246826860ykb.2 for ; Mon, 23 Nov 2015 10:28:49 -0800 (PST) In-Reply-To: <877fl81uyg.fsf@gmx.us> 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: Rasmus Cc: org-mode mailing list --001a11492c787417ec0525396523 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oh, you're right! Your example opened my eyes thanks! Thanks a lot, Rasmus! 2015-11-23 18:33 GMT+01:00 Rasmus : > 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 the= ir > > 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 writ= e > 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 > > -- > Er du tosset for noge' l=C3=A5rt! > --001a11492c787417ec0525396523 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Oh, you're right!

Your example opened my = eyes thanks!

Thanks a lot, Rasmus!

2015-11-23 18:33 GMT+01:00 Rasmus = <ra= smus@gmx.us>:
Manuel Koell <man.koell@gma= il.com> 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<= br> > example my index.org where I want to include the latest 5 posts (generated<= br> > from sitemap.org). The exported index.html has the wrong title/h1 then: > <title>My title Sitemap</title>. The files I used to inclu= de append their
> title to the index.org document then. This is not something I would expect<= br> > if I already set the #+TITLE option. Idk if this is a bug or a feature= .

This is a feature.=C2=A0 Basically, it follows from the fact that yo= u can write
something like this:

=C2=A0 =C2=A0 #+title: the first part of long title
=C2=A0 =C2=A0 #+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.

=C2=A0 =C2=A0 #+Title: main title
=C2=A0 =C2=A0 # ...
=C2=A0 =C2=A0 #+Title: sitemap
=C2=A0 =C2=A0 # ...

> Do you've any workaround? I dont know why orgmode is mess up my ti= tle.

Use :lines "2-", since your unwanted #+title is probably a= t line 1.

Rasmus

--
Er du tosset for noge' l=C3=A5rt!

--001a11492c787417ec0525396523--