Hello, Bastien <b...@gnu.org> writes:
> Hi Luis, > > Luis Anaya <papoan...@hotmail.com> writes: > >> Nicolas Goaziou <n.goaz...@gmail.com> 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