emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: More koma confusion: subject option
Date: Sun, 24 Nov 2013 15:15:54 +0100	[thread overview]
Message-ID: <87d2lpzy05.fsf@gmx.us> (raw)
In-Reply-To: 50f27410-2068-406b-b170-d753748bcfc2@dewdrop-world.net

James Harkins <jamshark70@gmail.com> 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!!!

      reply	other threads:[~2013-11-24 14:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24 10:39 More koma confusion: subject option James Harkins
2013-11-24 14:15 ` Rasmus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2lpzy05.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).