emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: mylesenglish@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] ox-koma-letter.el: Add support for 'location' koma variable
Date: Thu, 28 Jan 2016 13:20:49 +0100	[thread overview]
Message-ID: <87k2mtdhem.fsf@gmx.us> (raw)
In-Reply-To: <87d1smgdcw.fsf@gmail.com> (Myles English's message of "Thu, 28 Jan 2016 11:19:59 +0000")

Myles English <mylesenglish@gmail.com> writes:

> Thanks for making it!

It's Nicolas’ creation, not mine.  I merely contribute a few patches
to it.

>> 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.

OK.

>> 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}

You could have this is a LCO file as well.  If so, you might be able to
populate location using \ifkomavarempty{}{}.  I use this in my standard
footer to insert fields depending on which variables are set.

> \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}

But is it much neater than:

    ** bank details :location:
    Acc. no.: 12345
    Big Bank Corp
    Sort code: 1122 

For temporary data, I’d rather have it like in my example.  For permanent
data I can keep it in a .lco file.

And maybe #+include: "bank-info.org".

Thanks,
Rasmus

-- 
History is what should never happen again

  reply	other threads:[~2016-01-28 12:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 18:32 [PATCH] ox-koma-letter.el: Add support for 'location' koma variable Myles English
2016-01-27 22:05 ` Rasmus
2016-01-28 11:19   ` Myles English
2016-01-28 12:20     ` Rasmus [this message]
2016-01-28 22:00       ` Myles English
2016-01-29 12:16         ` Rasmus
2016-01-29 22:08           ` Myles English
2016-01-29 22:39             ` Rasmus
2016-02-15 13:51               ` Myles English
2016-02-17 22:53                 ` Rasmus
2016-03-31 19:56                 ` Rasmus Pank Roulund
2016-03-31 23:32                   ` Myles English
2016-04-03 11:33                     ` Rasmus
2016-04-04  0:54                       ` Myles English
2016-04-07  8:09                         ` Rasmus
2016-01-28 20:17   ` Eric S Fraga

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=87k2mtdhem.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    --cc=mylesenglish@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).