Re: Root heading when exporting sub-trees

2022-02-15 Thread Michael Dauer
Sorry, please ignore. The problem was in front of the screen.

Am Di., 15. Feb. 2022 um 14:16 Uhr schrieb Sébastien Miquel <
sebastien.miq...@posteo.eu>:

> Hi,
>
> Michael Dauer writes:
> > When I export a subtree I normally want to produce a document for the
> > topic of the subtree. So I would expect that the contents of the
> > subtree would be exported with the heading as title (and maybe file
> > name) and the children promoted to level 1.
>
> This is the expected behaviour (except for the file name), and what I
> get when I run C-c C-e C-s l o.
>
> > What I receive is something like this:
> > [...]
> > The whole first level of this outline is pointless.
>
> Looking at the code, I don't understand how you can get this outcome.
>
> Regards,
>
> --
> Sébastien Miquel
>
>


Re: Root heading when exporting sub-trees

2022-02-15 Thread Sébastien Miquel

Hi,

Michael Dauer writes:
When I export a subtree I normally want to produce a document for the 
topic of the subtree. So I would expect that the contents of the 
subtree would be exported with the heading as title (and maybe file 
name) and the children promoted to level 1.


This is the expected behaviour (except for the file name), and what I
get when I run C-c C-e C-s l o.


What I receive is something like this:
[...]
The whole first level of this outline is pointless.


Looking at the code, I don't understand how you can get this outcome.

Regards,

--
Sébastien Miquel




Re: Root heading when exporting sub-trees

2022-02-15 Thread Juan Manuel Macías
Hi Michael,

Michael Dauer writes:

> When I export a subtree I normally want to produce a document for the
> topic of the subtree. So I would expect that the contents of the
> subtree would be exported with the heading as title (and maybe file
> name) and the children promoted to level 1.
>
> What I receive is something like this:
> Title: Title of all topics
> 1. Topic
> 1.1
> 1.2
> 1.2.1
> 1.2.3
> 1.3
>
> The whole first level of this outline is pointless.
>
> What is the best way to change this behavior? I mean in
> configuration/patching not by putting the same export properties
> everywhere. But identifying the relevant export properties would be of
> help of course.

You can set specific export properties for a given subtree, for example:

* Subtree
  :PROPERTIES:
  :EXPORT_OPTIONS: options list
  :EXPORT_TITLE: Another title
  :EXPORT_FILE_NAME: another file name
  :END:

Best regards,

Juan Manuel 



Root heading when exporting sub-trees

2022-02-15 Thread Michael Dauer
Org mode version 9.5.2 (9.5.2-ge7ea95

When I export a subtree I normally want to produce a document for the topic
of the subtree. So I would expect that the contents of the subtree would be
exported with the heading as title (and maybe file name) and the children
promoted to level 1.

What I receive is something like this:
Title: Title of all topics
1. Topic
1.1
1.2
1.2.1
1.2.3
1.3

The whole first level of this outline is pointless.

What is the best way to change this behavior? I mean in
configuration/patching not by putting the same export properties
everywhere. But identifying the relevant export properties would be of help
of course.

Thanks, m