From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Extending org-koma-letter.el Date: Tue, 06 Nov 2012 16:31:33 +0100 Message-ID: References: <87txwq4gfi.fsf@gmail.com> <87ehnocrq0.fsf@gmail.com> <874nokosej.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVl7x-0002Tg-2h for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 10:31:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVl7n-0007Ld-Cl for emacs-orgmode@gnu.org; Tue, 06 Nov 2012 10:31:44 -0500 In-Reply-To: <874nokosej.fsf@gnu.org> (Bastien's message of "Fri, 03 Aug 2012 18:24:20 +0200") 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: Bastien Cc: Nicolas Goaziou , emacs-orgmode@gnu.org, Luis Anaya Hello, Bastien writes: > Hi Luis, > > Luis Anaya writes: > >> Nicolas Goaziou writes: >> >>> >>> Code for org-koma-letter.el is at: >>> >>> http://permalink.gmane.org/gmane.emacs.orgmode/57547 > > I added a link to this in > > http://orgmode.org/worg/org-contrib/index.html I'm resurrecting this old thread because I need to write a recommendation letter, which is all ready in org mode. I have put the org-koma-letter.el in the contrib/lisp directory, compiled it, and required it. I created the association as suggested, but when I export to latex, I get some strange results. It seems that the association is used (as indicated by the documentclass), but there is no "\begin{letter} ... \end{letter}" generated. Here is the generated latex: #+BEGIN_SRC latex % Created 2012-11-06 Tue 16:23 \documentclass[% DIV=14, fontsize=10pt, parskip=half, subject=untitled, backaddress=true, fromalign=right, fromemail=true, fromphone=false, InriaRennesFR]{scrlttr2} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{hyperref} \author{Alan Schmitt} \date{\today} \title{Testing the letter} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode 7.9.2 in Emacs 24.2.1.}} \begin{document} \maketitle \tableofcontents \vspace*{1cm} Hello world % Generated by Org mode 7.9.2 in Emacs 24.2.1. \end{document} #+END_SRC and the corresponding org source: #+BEGIN_SRC org #+LATEX_CLASS: my-inria-fr-letter #+TITLE: Testing the letter #+CLOSING: Yo, man Hello world #+END_SRC Finally, this is what I added to my init file: #+BEGIN_SRC elisp (require 'org-koma-letter) (add-to-list 'org-e-latex-classes '("my-inria-fr-letter" "\\documentclass\[% DIV=14, fontsize=10pt, parskip=half, subject=untitled, backaddress=true, fromalign=right, fromemail=true, fromphone=false, InriaRennesFR\]\{scrlttr2\} \[DEFAULT-PACKAGES] \[PACKAGES] \[EXTRA]" ("\\section\{%s\}" . "\\section*\{%s\}") ("\\subsection\{%s\}" . "\\subsection*\{%s\}") ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) #+END_SRC Any idea as to what I'm doing wrong? Thanks, Alan