* More koma confusion: subject option
@ 2013-11-24 10:39 James Harkins
2013-11-24 14:15 ` Rasmus
0 siblings, 1 reply; 2+ messages in thread
From: James Harkins @ 2013-11-24 10:39 UTC (permalink / raw)
To: orgmode
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.
Okay... so, what if I set "#+OPTIONS: subject:untitled"? Then I get
something like:
\KOMAoption{subject}{untitled}
\setkomavar{subject}{The title}
.. 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.
I can suppress the subject by providing an empty #+TITLE line, but the
documentation suggests that this should not be necessary.
??
hjh
[1] http://orgmode.org/worg/exporters/koma-letter-export.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: More koma confusion: subject option
2013-11-24 10:39 More koma confusion: subject option James Harkins
@ 2013-11-24 14:15 ` Rasmus
0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2013-11-24 14:15 UTC (permalink / raw)
To: emacs-orgmode
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!!!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-24 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-24 10:39 More koma confusion: subject option James Harkins
2013-11-24 14:15 ` Rasmus
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).