Re: Export settings in subtree level with org-koma-letter

2023-06-17 Thread Ihor Radchenko
Sébastien Gendre  writes:

> So, I posted my question too soon.
>
> To use the export option as properties, I had to add EXPORT_ prefix.

Added a linter. Hope it helps.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1ec3a43c5

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Export settings in subtree level with org-koma-letter

2023-06-16 Thread Sébastien Gendre
So, I posted my question too soon.

To use the export option as properties, I had to add EXPORT_ prefix.

Example, not this:
:PROPERTIES:
:LANGUAGE: en
:AUTHOR: Me
:FROM_ADDRESS: 4 place of nowhere
:END:

But this:
:PROPERTIES:
:EXPORT_LANGUAGE: en
:EXPORT_AUTHOR: Me
:EXPORT_FROM_ADDRESS: 4 place of nowhere
:END:

Sorry.


Sébastien Gendre  writes:

> Hello,
>
> I try to use Org-mode and org-koma-letter to make letters.
>
> I want to have one file where each first level headline as a letter. So,
> I tried to define the export settings of org-koma-letter as headline
> properties. With no success.
>
>
> Here is an example:
>
> #+begin_src org
>
> * Example of letter
> :PROPERTIES:
> :LANGUAGE: en
> :AUTHOR: Me
> :FROM_ADDRESS: 4 place of nowhere
> :EMAIL: m...@example.com
> :PHONE_NUMBER: 000-000-000
> :TO_ADDRESS: Someone, 4 place somewhere
> :OPENING: Hello,
> :CLOSING: Bye.
> :DATE: \today
> :PLACE: Here
> :OPTIONS: foldmarks:nil phone:t email:t
> :END:
>
> This is a test of text, a test of text, a test of text, a test of
> text, a test of text, a test of text, a test of text, a test of text,
> a test of text, a test of text, a test of text, a test of text, a test
> of text, a test of text, a test of text, a test of text, a test of
> text, a test of text, a test of text, a test of text, a test of text,
> a test of text, a test of text, a test of text, a test of text, a test
> of text, a test of text, a test of text, a test of text, a test of
> text, a test of text, a test of text, a test of text, a test of text,
> a test of text, a test of text, a test of text, a test of text.
>
>
> * Another example of letter
> :PROPERTIES:
> :LANGUAGE: en
> :AUTHOR: Not me
> :FROM_ADDRESS: 5 place of nowhere
> :EMAIL: not...@example.com
> :PHONE_NUMBER: 000-000-001
> :TO_ADDRESS: Someone, 5 place somewhere
> :OPENING: Hello there,
> :CLOSING: I'll be back.
> :DATE: \today
> :PLACE: There
> :OPTIONS: foldmarks:nil phone:t email:t
> :END:
>
> This is not a test of text, not a test of text, not a test of text, not a 
> test of
> text, not a test of text, not a test of text, not a test of text, not a test 
> of text,
> not a test of text, not a test of text, not a test of text, not a test of 
> text, not a test
> of text, not a test of text, not a test of text, not a test of text, not a 
> test of
> text, not a test of text, not a test of text, not a test of text, not a test 
> of text,
> not a test of text, not a test of text, not a test of text, not a test of 
> text, not a test
> of text, not a test of text, not a test of text, not a test of text, not a 
> test of
> text, not a test of text, not a test of text, not a test of text, not a test 
> of text,
> not a test of text, not a test of text, not a test of text, not a test of 
> text.
>
> #+end_src
>
> After an export with ~(org-koma-letter-export-to-pdf nil t)~, in the
> resulted PDF, only the author and date are set.
>
> Do I do something wrong ?
>
> Emacs version: 28.2
> Orgmode version: 9.5.5
>
>
>
> Best regards.




Export settings in subtree level with org-koma-letter

2023-06-16 Thread Sébastien Gendre
Hello,

I try to use Org-mode and org-koma-letter to make letters.

I want to have one file where each first level headline as a letter. So,
I tried to define the export settings of org-koma-letter as headline
properties. With no success.


Here is an example:

#+begin_src org

* Example of letter
:PROPERTIES:
:LANGUAGE: en
:AUTHOR: Me
:FROM_ADDRESS: 4 place of nowhere
:EMAIL: m...@example.com
:PHONE_NUMBER: 000-000-000
:TO_ADDRESS: Someone, 4 place somewhere
:OPENING: Hello,
:CLOSING: Bye.
:DATE: \today
:PLACE: Here
:OPTIONS: foldmarks:nil phone:t email:t
:END:

This is a test of text, a test of text, a test of text, a test of
text, a test of text, a test of text, a test of text, a test of text,
a test of text, a test of text, a test of text, a test of text, a test
of text, a test of text, a test of text, a test of text, a test of
text, a test of text, a test of text, a test of text, a test of text,
a test of text, a test of text, a test of text, a test of text, a test
of text, a test of text, a test of text, a test of text, a test of
text, a test of text, a test of text, a test of text, a test of text,
a test of text, a test of text, a test of text, a test of text.


* Another example of letter
:PROPERTIES:
:LANGUAGE: en
:AUTHOR: Not me
:FROM_ADDRESS: 5 place of nowhere
:EMAIL: not...@example.com
:PHONE_NUMBER: 000-000-001
:TO_ADDRESS: Someone, 5 place somewhere
:OPENING: Hello there,
:CLOSING: I'll be back.
:DATE: \today
:PLACE: There
:OPTIONS: foldmarks:nil phone:t email:t
:END:

This is not a test of text, not a test of text, not a test of text, not a test 
of
text, not a test of text, not a test of text, not a test of text, not a test of 
text,
not a test of text, not a test of text, not a test of text, not a test of text, 
not a test
of text, not a test of text, not a test of text, not a test of text, not a test 
of
text, not a test of text, not a test of text, not a test of text, not a test of 
text,
not a test of text, not a test of text, not a test of text, not a test of text, 
not a test
of text, not a test of text, not a test of text, not a test of text, not a test 
of
text, not a test of text, not a test of text, not a test of text, not a test of 
text,
not a test of text, not a test of text, not a test of text, not a test of text.

#+end_src

After an export with ~(org-koma-letter-export-to-pdf nil t)~, in the
resulted PDF, only the author and date are set.

Do I do something wrong ?

Emacs version: 28.2
Orgmode version: 9.5.5



Best regards.