From c042209c4ebde0aa20571e87d67ef8e6e57c8bfa Mon Sep 17 00:00:00 2001 From: Viktor Rosenfeld Date: Sun, 21 Apr 2013 18:43:11 +0200 Subject: [PATCH 4/4] ox-koma-letter.el: Support multiple LCO files * ox-koma-letter.el (org-koma-letter-template): Treat `#+LCO:' variable as a list of multiple LCO files separated by spaces. Example: #+LCO: Default Signed will result in the following LaTeX fragment #+BEGIN_SRC latex \LoadLetterOption{Default} \LoadLetterOption{Signed} #+END_SRC --- contrib/lisp/ox-koma-letter.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el index f313ac7..31ccd89 100644 --- a/contrib/lisp/ox-koma-letter.el +++ b/contrib/lisp/ox-koma-letter.el @@ -260,7 +260,12 @@ holding export options." (signature (plist-get info :signature))) (concat ;; Letter Class Option File - (when lco (format "\\LoadLetterOption{%s}\n" lco)) + (when lco + (let ((lco-files (split-string lco " ")) + (lco-def "")) + (dolist (lco-file lco-files lco-def) + (setq lco-def (format "%s\\LoadLetterOption{%s}\n" lco-def lco-file))) + lco-def)) ;; Define "From" data. (when sender (format "\\setkomavar{fromname}{%s}\n" sender)) (when from-address (format "\\setkomavar{fromaddress}{%s}\n" from-address)) -- 1.8.2