emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] prevent auto appending #+INCLUDE files title


From: Rasmus
Subject: Re: [O] prevent auto appending #+INCLUDE files title
Date: Mon, 23 Nov 2015 18:13:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi Manuel,

Manuel Koell <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]