[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Extending org-koma-letter.el (was: HowTo: Letter template method usi
From: |
Rasmus |
Subject: |
[O] Extending org-koma-letter.el (was: HowTo: Letter template method using yasnippet) |
Date: |
Fri, 27 Jul 2012 17:24:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Nicolas Goaziou <address@hidden> writes:
> Based on [Karl Voit's] work, I've put up the attached back-end:
> org-koma-letter.el.
Thanks. It's wonderful writing letters with the new latex exporter.
You should consider adding it to org_contrib.
> It's far from being complete. See it as a proof of concept. Feel free
> to upgrade it.
I need two further features to fully adopt org-koma-letter.el, but I am
not sure how to proceed (I still haven't found too much [non-programmer]
documentation on how to hack the new org-exporter).
First, it should allow for contents after \closing{·}, e.g. \ps{·} and
\encl{·}. Second, it should allow for arbitrary LaTeX command
\end{letter}, e.g. \includepdf{·}.
Thus, I basically want to extend org-koma-letter-template to include to
extra content-like elements.
(defun org-koma-letter-template (contents info)
...
...
(format "\n\\closing{%s}\n\n" (plist-get info :closing))
;; appendix in letter
appendix
;; Letter ends.
"\\end{letter}\n"
after-letter
;; Document ends.
"\\end{document}"
I am not sure how to implement this. I want it to operate on tags. So
I want
#+begin_src
* my-encl :appendix:
#+latex:\encl{
- doc 1
- doc 2
#+latex:}
#+end_src
to /not/ be part of contents, but be recognized as appendix inserted
after the signature. Likewise headlines with tag :afterletter: should
only be inserted after \end{letter}.
Could anyone provide any hints as to how to archive this behavior. (I
can't really understand all the details by just reading the API...).
BTW: scrlttr2 supports sections with certain lco-files, see
http://www.komascript.de/sections.lco. So perhaps the
org-koma-letter-headline should contain this possibility.
Thanks,
Rasmus
--
. . . Stallman was indeed the tallest possible mountain and by
standing on his shoulders you could see forever. . .
- Re: [O] Org/LaTeX set-up for business letters?, (continued)
[O] HowTo: Letter template method using yasnippet (was: Org/LaTeX set-up for business letters?), Karl Voit, 2012/07/06
- Re: [O] HowTo: Letter template method using yasnippet, Nicolas Goaziou, 2012/07/06
- Re: [O] HowTo: Letter template method using yasnippet, Thorsten Jolitz, 2012/07/06
- Re: [O] HowTo: Letter template method using yasnippet, Karl Voit, 2012/07/07
- Re: [O] HowTo: Letter template method using yasnippet, AW, 2012/07/08
- Re: [O] HowTo: Letter template method using yasnippet, Nicolas Goaziou, 2012/07/08
- Re: [O] HowTo: Letter template method using yasnippet, AW, 2012/07/08
[O] Extending org-koma-letter.el (was: HowTo: Letter template method using yasnippet),
Rasmus <=
Re: [O] Extending org-koma-letter.el, Nicolas Goaziou, 2012/07/29
Re: [O] Extending org-koma-letter.el, Luis Anaya, 2012/07/31
Re: [O] Org/LaTeX set-up for business letters?, Luis Anaya, 2012/07/06