emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+author un subtree exports.
@ 2020-11-30  9:49 Damien Couroussé
  2020-11-30 10:29 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Couroussé @ 2020-11-30  9:49 UTC (permalink / raw)
  To: emacs-orgmode

hello all,

I would like to export only a subtree of a bigger document, and use 
#+author annotations in subtrees.  Currently, all the #+author 
annotations of the document are concatenated in the exported document.

Is it the expected behaviour?  Is it possible to have per-section 
#+author annotation?


Minimalist example:

```
* section A

#+title: doc A
#+author: author A

text A.

* section B

#+title: doc B
#+author: author B

text B.
```

In this example, exporting e.g. section B (=C-c C-e C-s t U= with the 
default keymaps) produces the following output, where "author A author 
B" in the document heading is not wanted.


Text export of section B:

```
                           ━━━━━━━━━━━━━━━━━━━
                                SECTION B

                            author A author B
                           ━━━━━━━━━━━━━━━━━━━


Table of Contents
─────────────────




text B.
```




thank you,
Damien

-- 
Damien Couroussé
Research Engineer

Commissariat à l’énergie atomique et aux énergies alternatives
Institut List | Minatec Campus
17 avenue des Martyrs | 38054 Grenoble Cedex | France

Tel : +33 (0)4 38 78 04 66
Web : http://www-list.cea.fr
  
[Citation aléatoire]
Functional programming has no side effects because no one uses it.
-+- Annoy /r/haskell in one sentence -+-


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: #+author un subtree exports.
  2020-11-30  9:49 #+author un subtree exports Damien Couroussé
@ 2020-11-30 10:29 ` Eric S Fraga
  2020-11-30 10:47   ` Damien Couroussé
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2020-11-30 10:29 UTC (permalink / raw)
  To: Damien Couroussé; +Cc: emacs-orgmode

On Monday, 30 Nov 2020 at 10:49, Damien Couroussé wrote:
> I would like to export only a subtree of a bigger document, and use 
> #+author annotations in subtrees.  Currently, all the #+author 
> annotations of the document are concatenated in the exported document.

For subtree export, make use of the EXPORT_X properties where X can be
AUTHOR, TITLE, ...  Set these properties in each sub-tree.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: #+author un subtree exports.
  2020-11-30 10:29 ` Eric S Fraga
@ 2020-11-30 10:47   ` Damien Couroussé
  0 siblings, 0 replies; 3+ messages in thread
From: Damien Couroussé @ 2020-11-30 10:47 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]



On 30/11/2020 11:29, Eric S Fraga wrote:
>> I would like to export only a subtree of a bigger document, and use
>> #+author annotations in subtrees.  Currently, all the #+author
>> annotations of the document are concatenated in the exported document.
> For subtree export, make use of the EXPORT_X properties where X can be
> AUTHOR, TITLE, ...  Set these properties in each sub-tree.
Thank you, Eric, this is exactly what I was looking for.
This is documented in the manual here:

https://orgmode.org/manual/Export-Settings.html

regards,

-- 
Damien Couroussé
Research Engineer

Commissariat à l’énergie atomique et aux énergies alternatives
Institut List | Minatec Campus
17 avenue des Martyrs | 38054 Grenoble Cedex | France

Tel : +33 (0)4 38 78 04 66
Web : http://www-list.cea.fr
  
[Citation aléatoire]
There are only two hard problems in computer science: being Haskell,
and.
-+- https://m.reddit.com/r/rust/comments/5l08o5/rust_is_literally_haskell -+-


[-- Attachment #2: Type: text/html, Size: 1812 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-30 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-30  9:49 #+author un subtree exports Damien Couroussé
2020-11-30 10:29 ` Eric S Fraga
2020-11-30 10:47   ` Damien Couroussé

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).