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

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>
This commit is contained in:
Viktor Rosenfeld 2013-04-21 18:43:11 +02:00 committed by Alan Schmitt
parent bb03429cf8
commit 9655a18d88
1 changed files with 6 additions and 1 deletions

View File

@ -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))