emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: koma export and order of options
Date: Wed, 09 Sep 2015 11:58:39 +0200	[thread overview]
Message-ID: <m237yn29tc.fsf@charm-ecran.irisa.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]

Hello,

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:

--8<---------------cut here---------------start------------->8---
\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
--8<---------------cut here---------------end--------------->8---

I don’t want the email nor the place, so I have these options in
my letter:

--8<---------------cut here---------------start------------->8---
#+latex_class: my-letter
#+lco: InriaRennesEN
#+options: place:nil email:nil
--8<---------------cut here---------------end--------------->8---

Unfortunately the latex code generated sets these options before loading
the lco:

--8<---------------cut here---------------start------------->8---
\KOMAoption{fromemail}{false}
\KOMAoption{fromphone}{false}
\KOMAoption{backaddress}{false}
\setkomavar{place}{}
\KOMAoptions{foldmarks=true}
\LoadLetterOption{InriaRennesEN}
--8<---------------cut here---------------end--------------->8---

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

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated September 6, 2015, Mauna Loa Obs.):
377.86 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

             reply	other threads:[~2015-09-09  9:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09  9:58 Alan Schmitt [this message]
2015-09-09 20:59 ` koma export and order of options Nicolas Goaziou
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=m237yn29tc.fsf@charm-ecran.irisa.fr \
    --to=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).