emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] koma export and order of options


From: Alan Schmitt
Subject: [O] koma export and order of options
Date: Wed, 09 Sep 2015 11:58:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

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}
address@hidden

\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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]