emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Viktor Rosenfeld <listuser36@gmail.com>
Cc: Nicolas Goaziou <n.goaziou@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [BUG] [contrib/org-koma-letter.el] #+DATE and #+TO_ADDRESS picked up from outside the current subtree
Date: Sat, 29 Dec 2012 16:12:21 +0100	[thread overview]
Message-ID: <m24nj46gfe.fsf@polytechnique.org> (raw)
In-Reply-To: <20121228223805.GA4659@kenny.fritz.box>

Viktor Rosenfeld writes:

> Hi,
>
> I've configured the scrlttr2 exporter found in
> contrib/lisp/org-koma-letter.el to write letters directly in org-mode.
> I'm very happy with the results, but I've noticed the following bug: If
> there are multiple letters defined in an org-file, the contents of every
> #+DATE and #+TO_ADDRESS field will be picked up, even if the export is
> restricted to the current subtree.
>
> In the attached file, if you export the first letter with 3 k k from the
> export dispatch menu, the address will read
>
>    Max Mustermann 
>    Musterstraße 1 
>    12345 Musterstadt Moritz Mustermann
>    Musterallee 10 
>    54321 Musterstadt
>
> and the date will be set to December 28 from the second letter.

If you want subtree exporting, the information should be in a
:PROPERTIES: drawer at the beginning of the thing to export. Here is
what I did for a recent letter:

#+BEGIN_SRC org
****** Lettre d'Accueil pour ...
:PROPERTIES:
:EXPORT_LATEX_CLASS: my-inria-fr-letter
:EXPORT_LCO: InriaRennesFR
:EXPORT_OPENING: ~
:EXPORT_CLOSING: ~
:END:

text text ...
#+END_SRC

Note that in such drawers, the name of the option has "EXPORT_" before it.

Hope this helps,

Alan

  reply	other threads:[~2012-12-29 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 22:38 [BUG] [contrib/org-koma-letter.el] #+DATE and #+TO_ADDRESS picked up from outside the current subtree Viktor Rosenfeld
2012-12-29 15:12 ` Alan Schmitt [this message]
2012-12-29 19:18   ` Viktor Rosenfeld
2012-12-30  9:37     ` Alan Schmitt

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=m24nj46gfe.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=listuser36@gmail.com \
    --cc=n.goaziou@gmail.com \
    /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).