From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: [PATCH] ox-koma-letter.el: Reintroduce variables removed in commit 832c6fd with proper defaults (was Re: [patch] ox-koma-letter.el: clean-up/semantic bug [4/4]) Date: Sun, 26 May 2013 13:04:09 +0200 Message-ID: <20130526110409.GC716@kenny.local> References: <87ehd09p6r.fsf@pank.eu> <20130521195413.GA58739@kenny.local> <87vc6b9atm.fsf@pank.eu> <20130522143923.GA61443@kenny.local> <20130522220650.GB68001@kenny.local> <51A0487D.4020809@mpip-mainz.mpg.de> <20130525080554.GA590@kenny.local> <87hahrmabq.fsf@pank.eu> <51A1245D.606@mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgYkK-0002ob-QM for emacs-orgmode@gnu.org; Sun, 26 May 2013 07:04:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgYkI-0000aN-9l for emacs-orgmode@gnu.org; Sun, 26 May 2013 07:04:16 -0400 Received: from mail-bk0-x232.google.com ([2a00:1450:4008:c01::232]:37148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgYkI-0000Zz-1F for emacs-orgmode@gnu.org; Sun, 26 May 2013 07:04:14 -0400 Received: by mail-bk0-f50.google.com with SMTP id ik8so2206481bkc.23 for ; Sun, 26 May 2013 04:04:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: <51A1245D.606@mpip-mainz.mpg.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Robert Klein Cc: emacs-orgmode@gnu.org, Rasmus Hi Robert, Robert Klein wrote: > Hello, > On 05/25/2013 03:57 PM, Rasmus wrote: > > Alan Schmitt writes: > > > >> Hello, > >> > >> Viktor Rosenfeld writes: > >> > >>> Hi Robert, > >>> > >>> Robert Klein wrote: > >>> > >>>> Hi, > >>>> > >>>> FWIW, from a users view it would be nice if: > >>>> > >>>> - Use Author/Email information from org file > >>>> - If not present use information from LCO file > >>>> - if neither org file nor LCO file has any information use > >>>> user-full-name and user-email-address > >>>> > >>>> Could this be solved by having several e.g. `setkomavar{fromname}' > >>>> and so on in the tex file, so is created as follows: > > > > I'd go with 'no'. It's not aesthetically pleasing and I don't want my > > output to look like LyX. When feasible we should go for beautiful > > output. This isn't always the case at the moment, but still. > > > >>>> if no #+AUTHOR in org-file and user-full-name is set: > >>>> add user-full-name > >>>> if #+LCO(s) in org-file: > >>>> add LCO file(s) > >>>> if #+AUTHOR in org-file: > >>>> add \setkomavar{fromname}{#+AUTHOR} > >>>> .... same for email > > > > Currently the ordering is: #+AUTHOR > #+LCO and AUTHOR default to > > (user-full-name). > > hmm, sorry, I did not express myself in a good way. > > what I meant is, if #+AUTHOR defaults to (user-full-name), could the > \setkomavar commands be placed /before/ \LoadLetterOption in the TeX > file, and after \LoadLetterOptions if #+AUTHOR is set in the .org file? > > So you'd still get only one set of \setkomavar in the TeX file, but get > a (for me) more useful order of #+AUTHOR != (user-full-name) > #+LCO > > #+AUTHOR == (user-full-name) I'm still having trouble to understand what would be gained by placing \setkomavar{author}{.} before \LoadLetterOption if it defaults to user-full-name. Could you maybe describe your setup and what you want to achieve? Cheers, Viktor > > > Best regards > Robert > >