* Export settings in subtree level with org-koma-letter
@ 2023-06-16 22:32 Sébastien Gendre
2023-06-16 22:57 ` Sébastien Gendre
0 siblings, 1 reply; 3+ messages in thread
From: Sébastien Gendre @ 2023-06-16 22:32 UTC (permalink / raw)
To: emacs-orgmode
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: me@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-me@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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Export settings in subtree level with org-koma-letter
2023-06-16 22:32 Export settings in subtree level with org-koma-letter Sébastien Gendre
@ 2023-06-16 22:57 ` Sébastien Gendre
2023-06-17 12:12 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Sébastien Gendre @ 2023-06-16 22:57 UTC (permalink / raw)
To: emacs-orgmode
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 <seb@k-7.ch> 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: me@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-me@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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Export settings in subtree level with org-koma-letter
2023-06-16 22:57 ` Sébastien Gendre
@ 2023-06-17 12:12 ` Ihor Radchenko
0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2023-06-17 12:12 UTC (permalink / raw)
To: Sébastien Gendre; +Cc: emacs-orgmode
Sébastien Gendre <seb@k-7.ch> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-17 12:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 22:32 Export settings in subtree level with org-koma-letter Sébastien Gendre
2023-06-16 22:57 ` Sébastien Gendre
2023-06-17 12:12 ` Ihor Radchenko
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).