From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: More koma confusion: subject option Date: Sun, 24 Nov 2013 15:15:54 +0100 Message-ID: <87d2lpzy05.fsf@gmx.us> References: <50f27410-2068-406b-b170-d753748bcfc2@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkaR2-0002JY-FC for emacs-orgmode@gnu.org; Sun, 24 Nov 2013 09:13:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkaQv-0003ZP-67 for emacs-orgmode@gnu.org; Sun, 24 Nov 2013 09:13:16 -0500 Received: from plane.gmane.org ([80.91.229.3]:59046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkaQu-0003ZE-Vd for emacs-orgmode@gnu.org; Sun, 24 Nov 2013 09:13:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VkaQu-0007yQ-0e for emacs-orgmode@gnu.org; Sun, 24 Nov 2013 15:13:08 +0100 Received: from dynamic-adsl-94-39-217-142.clienti.tiscali.it ([94.39.217.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Nov 2013 15:13:08 +0100 Received: from rasmus by dynamic-adsl-94-39-217-142.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Nov 2013 15:13:08 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org James Harkins writes: > According to [1], "#+OPTIONS: subject:nil" should suppress printing > the #+TITLE at the top of the letter. It seems that the previous bug > prevents the expected line "\KOMAoption{subject}{untitled}" from being > generated. I cannot reproduce. > Okay... so, what if I set "#+OPTIONS: subject:untitled"? Then I get > something like: > > \KOMAoption{subject}{untitled} > \setkomavar{subject}{The title} As expected... > .. and LaTeX prints "The title" in bold, above the salutation. > > If I remove the #+TITLE line (or comment it out), then the exporter > assumes that the title should be the file name, minus the .org > extension. This conflicts with [1], which claims that the default > subject is an empty string. No. Title in inherited from ox-latex.el and thus works exactly as in the LaTeX backend. I don't know if I like this, as both subject and title is defined in scrlttr2 (the latter in inaccessible from ox-koma-letter). Untitled is defined in KOMA-script and you didn't appreciate it's meaning. Try to compare subject:titeled to untiteled. Hint: (un)titled governs whether it says "subject: mysubject" or "mysubject". I think you want to /suppress/ subject-generation. This is archived with #+OPTIONS: subject:nil. Here's an example working from emacs -q and git-emacs: #+TITLE: A simple letter #+CLOSING: Yours truly, #+SIGNATURE: Jane #+OPTIONS: subject:nil * Pre :noexport: #+BEGIN_SRC emacs-lisp (require 'ox-koma-letter) (org-koma-letter-plug-into-ox) (add-to-list 'org-latex-packages-alist '("AUTO" "babel" nil)) #+END_SRC * opening compare the above with =subject:nil= * FROM :from: Some Street 1 * TO :to: John Doe –Rasmus -- Don't panic!!!