ox-koma-letter: changed handling of subject.
commit26a9b0248385e17ae611a34cbdc991d759251afa
authorrasmus.pank <rasmus.pank@gmail.com>
Sun, 19 May 2013 15:32:44 +0000 (19 17:32 +0200)
committerAlan Schmitt <alan.schmitt@polytechnique.org>
Mon, 27 May 2013 06:38:44 +0000 (27 08:38 +0200)
tree1a81355cb4557a2fbf689aecdf63db85023959ca
parent7542aabb44cbc55b7ac5052c3995761332fea021
ox-koma-letter: changed handling of subject.

* ox-koma-letter.el: =`org-koma-letter-subject-format'= can now be a list.  Default is t.
   If nil neither subject format nor type is exported.
* ox-koma-letter.el (org-koma-letter-template): better subject handling.
* ox-koma-letter.el (org-koma-letter-template): allow for t value of =#+OPTIONS: subject:VALUE=
* ox-koma-letter.el (org-koma-letter-template): export of subject format is independent
of title, but title is not independent of =:with-subject=.

The issue was with =#+OPTIONS: subject:t= one would get a LaTeX error.

New behavior:

If =#+OPTIONS: subject:(x,y)= then =\KOMAoption{subject}{x, y}=.

If =subject:x= then =\KOMAoption{subject}{x}=.

If =subject:t= then =\KOMAoption{subject}{...}= is not set but
\setkomavar{subject}{...} is set (in the output file)

If =subject:nil= neither are printed.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>
contrib/lisp/ox-koma-letter.el