Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Thursday, 18 Jun 2015 at 00:03, Nicolas Goaziou wrote: > > [...] > >> I cannot reproduce it. koma-letter back-ends explicitly allows latex >> export snippets, e.g., >> >> #+title: @@latex:\something@@ >> >> produces the expected \something. > > Ummm, I thought I was going crazy as, for once, I had tested using emacs > -Q before posting something silly to the list... > > You are correct in that it works with #+title:. It also works with > #+subject:. However, it does *not* work with #+author:. I've not tried > any of the other org setting directives. It was author I was playing > with yesterday...
Right. #+author is not parsed. In the patch I enable parsing on this and others. Nicolas: are there any of the keywords in the patch that shouldn't be parsed? Also, I left out FROM_ADDRESS as I remember it interprets newlines and I don't have time ATM to properly check if this depends on the newline behavior. Rasmus -- El Rey ha muerto. ¡Larga vida al Rey!
>From 0dc981a8d223a0f41dc5d1f7227ae1d32e7abf2d Mon Sep 17 00:00:00 2001 From: Rasmus <ras...@gmx.us> Date: Thu, 18 Jun 2015 10:34:17 +0200 Subject: [PATCH 1/2] ox-koma-letter: Parse more keywords * ox-koma-letter.el (koma-letter): Parse author, phone-number, opening, closing and signature. fix --- contrib/lisp/ox-koma-letter.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el index 119ffe9..aeb8f01 100644 --- a/contrib/lisp/ox-koma-letter.el +++ b/contrib/lisp/ox-koma-letter.el @@ -381,17 +381,17 @@ e.g. \"title-subject:t\"." :options-alist '((:latex-class "LATEX_CLASS" nil org-koma-letter-default-class t) (:lco "LCO" nil org-koma-letter-class-option-file) - (:author "AUTHOR" nil (org-koma-letter--get-value org-koma-letter-author) t) + (:author "AUTHOR" nil (org-koma-letter--get-value org-koma-letter-author) parse) (:author-changed-in-buffer-p "AUTHOR" nil nil t) (:from-address "FROM_ADDRESS" nil org-koma-letter-from-address newline) - (:phone-number "PHONE_NUMBER" nil org-koma-letter-phone-number) + (:phone-number "PHONE_NUMBER" nil org-koma-letter-phone-number parse) (:email "EMAIL" nil (org-koma-letter--get-value org-koma-letter-email) t) (:to-address "TO_ADDRESS" nil nil newline) - (:place "PLACE" nil org-koma-letter-place) + (:place "PLACE" nil org-koma-letter-place parse) (:subject "SUBJECT" nil nil parse) - (:opening "OPENING" nil org-koma-letter-opening) - (:closing "CLOSING" nil org-koma-letter-closing) - (:signature "SIGNATURE" nil org-koma-letter-signature newline) + (:opening "OPENING" nil org-koma-letter-opening parse) + (:closing "CLOSING" nil org-koma-letter-closing parse) + (:signature "SIGNATURE" nil org-koma-letter-signature parse) (:special-headings nil "special-headings" org-koma-letter-prefer-special-headings) (:special-tags nil nil (append -- 2.4.4