emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: koma export and order of options
Date: Wed, 09 Sep 2015 22:59:15 +0200	[thread overview]
Message-ID: <877fnzfgws.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m237yn29tc.fsf@charm-ecran.irisa.fr> (Alan Schmitt's message of "Wed, 09 Sep 2015 11:58:39 +0200")

Hello,

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> I’m trying to write a letter where I override settings from the lco with
> the options line. Here is what the lco looks like:
>
> \ProvidesFile{InriaRennesEN.lco}
>
> \usepackage[english]{babel}
> \usepackage{xltxtra}
>
> \KOMAoption{fromalign}{right}
>
> \setkomavar{fromname}{Alan Schmitt}
> \setkomavar{fromaddress}{Celtique Project\\Inria Rennes}
> \setkomavar{place}{Rennes}
> \setkomavar{fromemail}{alan.schmitt@inria.fr}
>
> \endinput
>
> I don’t want the email nor the place, so I have these options in
> my letter:
>
> #+latex_class: my-letter
> #+lco: InriaRennesEN
> #+options: place:nil email:nil
>
> Unfortunately the latex code generated sets these options before loading
> the lco:
>
> \KOMAoption{fromemail}{false}
> \KOMAoption{fromphone}{false}
> \KOMAoption{backaddress}{false}
> \setkomavar{place}{}
> \KOMAoptions{foldmarks=true}
> \LoadLetterOption{InriaRennesEN}
>
> I thought that local options would override the ones from the lco. Is
> there something I’m doing wrong here for it to fail? (I tried reading
> the code, but I don’t understand how `org-koma-letter--build-settings'
> is supposed to work.)

I think I fixed a bug in that area. Could you update Org and try again?

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2015-09-09 20:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09  9:58 koma export and order of options Alan Schmitt
2015-09-09 20:59 ` Nicolas Goaziou [this message]
2015-09-10  9:59   ` Alan Schmitt
2015-09-10 12:31     ` Nicolas Goaziou
2015-09-10 13:22       ` 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=877fnzfgws.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=alan.schmitt@polytechnique.org \
    --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).