From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: HowTo: Letter template method using yasnippet Date: Sun, 08 Jul 2012 11:08:23 +0200 Message-ID: <2869013.sqPVqlcVm5@linux-nyil.site> References: <8762a2l6f7.fsf@googlemail.com> <2012-07-06T20-54-34@devnull.Karl-Voit.at> <87zk7cplfv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnnTj-0000g1-Aj for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 05:08:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnnTh-0002h3-8D for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 05:08:30 -0400 Received: from mailout10.t-online.de ([194.25.134.21]:59524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnnTg-0002gr-Ub for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 05:08:29 -0400 In-Reply-To: <87zk7cplfv.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am Samstag, 7. Juli 2012, 00:35:32 schrieb Nicolas Goaziou: > Hello, >=20 > Based on your work, I've put up the attached back-end: > org-koma-letter.el. >=20 > Quoting its documentation: > ............ > You will need to add an appropriate association in `org-e-latex-class= es' > in order to use the KOMA Scrlttr2 class. For example, you can use th= e > following code: >=20 > (add-to-list 'org-e-latex-classes > '("my-letter" > "\\documentclass\[% > DIV=3D14, > fontsize=3D12pt, > parskip=3Dhalf, > subject=3Dtitled, > backaddress=3Dfalse, > fromalign=3Dleft, > fromemail=3Dtrue, > fromphone=3Dtrue\]\{scrlttr2\} > \[DEFAULT-PACKAGES] > \[PACKAGES] > \[EXTRA]" > ("\\section\{%s\}" . "\\section*\{%s\}") > ("\\subsection\{%s\}" . "\\subsection*\{%s\}") > ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")= )) >=20 > Then, in your Org document, be sure to require the proper class with = : >=20 > #+LATEX_CLASS: my-letter >=20 > In this back-end, headlines are ignored during export. > --8<---------------cut here---------------end--------------->8--- >=20 This is very usefull, scrlttr2 is being used much. Thank you very much!= To avoid misunderstandings: Letter classes do not support headlines out= of the=20 box, but the author of KOMAscript, Markus Kohm, offers files to customi= ze=20 scrlttr2, among those is =BBsections.lco=AB, see here: http://www.komascript.de/sections.lco This file adds headings from section down to paragraph, but does not su= pport a=20 table of contents. The counters have been adapted to a German lawyers n= eeds,=20 starting with "A." (section), "I." (subsections), "1." (subsubsection) = and=20 "a)" (paragraph), but this can be customized in sections.lco.=20 So we can use headings in scrlttr2. As the page about sections.lco got = nearly=20 10.000 hits during the last years, I guess many people use it for busin= ess=20 letters including headlines.=20 At least I do, which leads to my plea to amend org-koma-letter.el to ex= port=20 headlines.=20 > It's far from being complete. See it as a proof of concept. Feel free= to > upgrade it. Just in case someone has a rainy sunday as well . . . Regards, Alexander