* 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
* Re: koma export and order of options
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
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2015-09-09 20:59 UTC (permalink / raw)
To: Alan Schmitt; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: koma export and order of options
2015-09-09 20:59 ` Nicolas Goaziou
@ 2015-09-10 9:59 ` Alan Schmitt
2015-09-10 12:31 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Alan Schmitt @ 2015-09-10 9:59 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]
Hello Nicolas,
On 2015-09-09 22:59, Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>> 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?
Thanks, I confirm it works for email, but I’m having trouble getting rid
of the place. Here is an ECM:
testlco.lco
--8<---------------cut here---------------start------------->8---
\ProvidesFile{testlco.lco}
\setkomavar{place}{Rennes}
\endinput
--8<---------------cut here---------------end--------------->8---
letter.org
--8<---------------cut here---------------start------------->8---
#+latex_class: my-letter
#+options: place:nil
#+lco: testlco
letter text
--8<---------------cut here---------------end--------------->8---
The output still mentions “Rennes” right before the date.
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
* Re: koma export and order of options
2015-09-10 9:59 ` Alan Schmitt
@ 2015-09-10 12:31 ` Nicolas Goaziou
2015-09-10 13:22 ` Alan Schmitt
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2015-09-10 12:31 UTC (permalink / raw)
To: Alan Schmitt; +Cc: emacs-orgmode
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> Thanks, I confirm it works for email, but I’m having trouble getting rid
> of the place. Here is an ECM:
>
> testlco.lco
> \ProvidesFile{testlco.lco}
>
> \setkomavar{place}{Rennes}
>
> \endinput
>
> letter.org
> #+latex_class: my-letter
> #+options: place:nil
> #+lco: testlco
>
> letter text
>
> The output still mentions “Rennes” right before the date.
"place" is a bit tricky because there is no \KOMAoption{place}{false}
setting. Anyway, I think it should now be fixed: any time you alter
place setting (with "place" OPTION item or PLACE keyword), it is set
after LCO inclusion.
Regards,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: koma export and order of options
2015-09-10 12:31 ` Nicolas Goaziou
@ 2015-09-10 13:22 ` Alan Schmitt
0 siblings, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2015-09-10 13:22 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 485 bytes --]
On 2015-09-10 14:31, Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> "place" is a bit tricky because there is no \KOMAoption{place}{false}
> setting. Anyway, I think it should now be fixed: any time you alter
> place setting (with "place" OPTION item or PLACE keyword), it is set
> after LCO inclusion.
It works great, 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).