Sébastien Gendre <s...@k-7.ch> writes: > Ho, I was certain that with the option ":only-contents t" in the > #+INCLUDE, it would only include the file content and not the #+TITLE.
> I have misunderstand the manual, sorry. :only-contents is completely ignored unless you specify a search option in the include location. That's not directly stated in the manual, but :only-contents option is introduced in the context of searching for specific objects inside a file: Inclusions may specify a file-link to extract an object matched by ‘org-link-search’(1) (see *note Search Options::). The ranges for ‘:lines’ keyword are relative to the requested element. Therefore, #+INCLUDE: "./paper.org::*conclusion" :lines "1-20" includes the first 20 lines of the headline named ‘conclusion’. To extract only the contents of the matched object, set ‘:only-contents’ property to non-‘nil’. This omits any planning lines or property drawers. For example, to include the body of the heading with the custom ID ‘theory’, you can use #+INCLUDE: "./paper.org::#theory" :only-contents t -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>