[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma varia
From: |
Myles English |
Subject: |
Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable |
Date: |
Thu, 28 Jan 2016 11:19:59 +0000 |
User-agent: |
mu4e 0.9.15; emacs 24.5.1 |
Hi Rasmus,
Rasmus writes:
> Thanks for your patch.
>
> It always makes me happy when someone is using ox-koma-letter.
Thanks for making it!
>> Often when writing a letter I want to include "Your Ref: xyz" or
>> "Account No.: 1234" and a good place to do this is below the sender's
>> address field and above the date (and 'place') field(s). This space
>> becomes filled with the contents of the koma variable called 'location'.
>> This patch enables filling this variable via org-mode's contrib
>> ox-koma-letter exporter.
>
> Aside: it sounds like what you need is "yourref", maybe "yourmail",
> "myref", "customer", and "invoice". These are typed in the same line as
> the date and place. In my manual it’s described around pp. 180.
Thanks, those are all useful fields I didn't know about. The
description of "frombank" indicates that "location" is still a good
place for bank account details.
> On to "location". From the manual pp. 195 it looks like it is usually
> something akin to an address field on the right side of the head. I think
> "location" should be settable via a special :location: heading, probably
> with special line breaking rules like the :to:/:from: special headings.
> We can allow a #+LOCATION keyword in addition, but need not. All IMO.
> WDYT?
Given that "location" is intended as a "user's extension field" I
suppose that a special tagged :location: heading would be convenient for
some uses, if you want to add it. For most cases however, I think its
use would break up the structure of the org-mode letter so I would still
prefer this way for the simple case of inserting bank details:
______________________
** Change of address
:EXPORT_LOCATION: \usekomavar{frombank}
I have moved.
______________________
Where the frombank variable has been set in the LCO file:
\setkomavar{frombank}{\raggedright Acc.~No.:\,1234567890\\at Big
Bank\\Sort Code: 11-22-33}
The bank details only appear in a letter when the property is set.
Which is much neater than the special heading approach, something like
this:
______________________
** Change of address
*** Location field :location:
\usekomavar{frombank}
*** Rest of letter
I have moved.
______________________
Myles
- [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Myles English, 2016/01/27
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Rasmus, 2016/01/27
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable,
Myles English <=
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Rasmus, 2016/01/28
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Myles English, 2016/01/28
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Rasmus, 2016/01/29
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Myles English, 2016/01/29
- Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Rasmus, 2016/01/29
Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable, Eric S Fraga, 2016/01/28