emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* koma export and order of options
@ 2015-09-09  9:58 Alan Schmitt
  2015-09-09 20:59 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Schmitt @ 2015-09-09  9:58 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-10 13:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-09  9:58 koma export and order of options Alan Schmitt
2015-09-09 20:59 ` Nicolas Goaziou
2015-09-10  9:59   ` Alan Schmitt
2015-09-10 12:31     ` Nicolas Goaziou
2015-09-10 13:22       ` Alan Schmitt

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