From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [patch] ox-koma-letter
Date: Wed, 27 Feb 2013 13:13:25 +0100 [thread overview]
Message-ID: <87wqtudkey.fsf@pank.iue.private> (raw)
In-Reply-To: <20130227105102.GV24632@strey.biz> (Michael Strey's message of "Wed, 27 Feb 2013 11:51:02 +0100")
Michael,
> I mean customized LCO files. For my former company I had made a
> letter class for business letters based on scrlttr2.cls with two LCO
> files. the first LCO file *company.lco* contained the general
> information about the company (address, bank account, etc.). A
> second LCO file *my_name.lco* contained the personal information of
> (e-mail address, name, phone extension). With *my_name.lco* calling
> *company.lco* the document class command for my letter finally was:
>
> \documentclass[my_name]{our_company_letter_class}
>
> With suitable setting of org-latex-classes not even the LCO feature
> would be needed in ox-koma-letter. However I would leave it there for
> more flexibility.
That's cool. Personally, I like this approach. But while lco files
are still readable they are not very nice. But not that terrible
either.
In fact to use the scrlttr2 support in Org I had to adjust a LCO files
because it's currently loaded after LATEX_HEADER arguments (so all
customization was overwritten). I didn't like that.
> Yes, I can imagine such cases. My problem with the current
> implementation was, that for instance, the phone number was preset in
> org-latex-classes. That urged me to customize this variable although
> everything was already well defined in *my_name.lco*. So, please take
> care to preset such variables with nil, where nil shall have the
> meaning
> of 'ignore this variable'.
I agree. This is anything but flexible, and I didn't even consider
it. I also noted that there's a lot of silly defaults. So probably
we should set everything to nil and do a "nil check" before inserting
stuff into the TeX file. This would also make for a clearer output
file, which is in itself something we should aim for.
> Maybe we should write a user guide *before* further implementation
> steps.
I agree. A "question zero" is whether we eventually want to have an
org-letter which could, in principle, output to something different
than scrlttr2.
Other things:
- Cleaning defaults
- Only insert KOMAVARs when non-nil.
- Which variables to include. E.g. Michael's list vs. every
komavar.
- consider the order of KOMAVARs, e.g. do we really want
LATEX_HEADER before LCO-like stuff? Do we want a KOMA_HEADER
(or LETTER_HEADER) which comes after LCO?
What to you think?
> Mmmh ... never thought about this aspect. I simply dictated the order
> of CC, ENCL and PS in my implementation. Thus your current
> AFTER_CLOSING is the best solution, if you want to provide full
> flexibility.
Or having the order of ENCL, PS, CC and "AFTER_CLOSING" in the TeX
file be governed by the order in the Org file. I guess this should be
feasible, although I currently do not know how to code. I think it's
desireable, though.
–Rasmus
--
When in doubt, do it!
next prev parent reply other threads:[~2013-02-27 12:13 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-25 20:25 [patch] ox-koma-letter Rasmus
2013-02-26 9:50 ` Bastien
2013-02-26 11:53 ` Rasmus
2013-02-26 12:38 ` Michael Strey
2013-02-26 21:14 ` Rasmus
2013-02-27 10:51 ` Michael Strey
2013-02-27 12:13 ` Rasmus [this message]
2013-02-27 13:41 ` Sebastien Vauban
2013-02-27 16:48 ` Rasmus
2013-02-28 15:19 ` Michael Strey
2013-03-02 17:53 ` Rasmus
2013-03-01 13:17 ` Alan Schmitt
2013-03-02 10:26 ` Bastien
2013-03-02 15:50 ` Alan Schmitt
2013-03-02 18:12 ` Bastien
2013-03-02 17:54 ` Rasmus
2013-03-02 17:57 ` Rasmus
2013-03-02 19:21 ` Alan Schmitt
2013-03-02 21:58 ` Rasmus
2013-03-03 16:00 ` Alan Schmitt
2013-03-03 17:25 ` Nicolas Goaziou
2013-03-04 7:19 ` Alan Schmitt
2013-03-04 8:33 ` Nicolas Goaziou
2013-03-04 8:56 ` Alan Schmitt
2013-03-04 10:38 ` Rasmus
2013-03-04 20:38 ` Nicolas Goaziou
2013-03-05 9:08 ` Alan Schmitt
2013-03-05 9:52 ` Nicolas Goaziou
2013-03-05 10:51 ` Michael Strey
2013-03-05 12:23 ` Rasmus
2013-03-05 13:09 ` Michael Strey
2013-03-06 9:03 ` Alan Schmitt
2013-03-06 9:09 ` Nicolas Goaziou
2013-03-04 10:46 ` Michael Strey
2013-03-04 13:48 ` Alan Schmitt
2013-03-04 21:20 ` 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=87wqtudkey.fsf@pank.iue.private \
--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).