[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] koma letter exporter: changing the priority of options
From: |
Alan Schmitt |
Subject: |
Re: [O] koma letter exporter: changing the priority of options |
Date: |
Mon, 22 Jul 2013 09:14:11 +0200 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
Hi Rasmus and Viktor,
address@hidden writes:
> Hi,
>
> Alan Schmitt wrote:
>
>> - (format "\\KOMAoption{backaddress}{%s}\n" (if with-backaddress "true"
>> "false"))
>> - (format "\\KOMAoption{foldmarks}{%s}\n" (if with-foldmarks
>> with-foldmarks "false"))
>> - (format "\\KOMAoption{fromphone}{%s}\n" (if with-phone "true"
>> "false"))
>> - (format "\\KOMAoption{fromemail}{%s}\n" (if with-email "true"
>> "false"))))
>> + (if with-backaddress (format "\\KOMAoption{backaddress}{true}\n") "")
>> + (if (not (equal with-foldmarks "true")) (format
>> "\\KOMAoption{foldmarks}{%s}\n" with-foldmarks) "")
>> + (if with-phone (format "\\KOMAoption{fromphone}{true}\n") "")
>> + (if with-email (format "\\KOMAoption{fromemail}{true}\n") "")))
>
> If I read the patch correctly then the consequence is that you cannot
> configure your LCO file to set defaults for these values and inhibit
> them in specific letters by setting the corresponding option to nil. For
> example, in my LCO file I enable all of these options but sometimes I
> don't want to have foldmarks or a backaddress or whatever. So I can
> write #+OPTIONS: backaddress:nil and it is supressed. The patch changes
> that.
Yes, this is not satisfactory (and the email and author is also
problematic in this regard). We need to know whether an option was set
in the file, independently of its default value. Is there a way to do
this?
Alan