emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Orgmode/Koma script letter
Date: Tue, 19 Aug 2014 10:22:50 +0200	[thread overview]
Message-ID: <877g246g85.fsf@gmx.us> (raw)
In-Reply-To: 073E651C-34C0-45C6-81B2-1775B52942EB@agrarianresearch.org

Hi Vikas,

Vikas Rawal <vikaslists@agrarianresearch.org> writes:

> I am trying to create a custom template for my letterhead. The
> documentation suggests that by default title should be used as subject
> of the letter.

Cool.  Let us know how it goes.

> ox-koma-letter.el has this:
> (defcustom org-koma-letter-subject-format t
>   "Use the title as the subject of the letter.

That's a bug in the documentation, if anything.  The rest of the
docstring is fine.  It gives you a mean of formatting the subject
line, e.g. center it and make it bold.

I'll correct it later.

I'm kind of busy now, but check the docstring of
`org-koma-letter-use-title' and `org-koma-letter-prefer-subject'.
Hopefully setting the latter to non-nil will give you what you want.

> Byt when I export a file, 
>
> #+TITLE: A simple letter
>
> is exported as 
>
> \setkomavar{title}{A simple letter}
>
> rather than as 
>
> \setkomavar{subject}{A simple letter}
>
> Accordingly, title appears separately as a badly formatted title.
>
> If I have a separate #+Subject: line, that is correctly exported as a subject.

This is a feature.

> Is there something wrong in what I am doing or is there a problem?

I don't think there is a code bug.  There is a potentially a
documentation bug in the first line of the doc string you mentioned.

> Org version: Org-mode version 8.3beta (release_8.3beta-167-g003edd @
> /Users/vikas/.emacs.d/src/org/lisp/)

Hope it helps,
Rasmus

-- 
It was you, Jezebel, it was you

  reply	other threads:[~2014-08-19  8:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19  3:44 Orgmode/Koma script letter Vikas Rawal
2014-08-19  8:22 ` Rasmus [this message]
2014-08-22 13:54   ` Bastien
2014-08-24 13:41     ` Rasmus

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=877g246g85.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).