From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [PATCH] ox-koma-letter.el: Add support for fromurl variable Date: Mon, 09 Jan 2017 10:42:16 +0100 Message-ID: <87a8b0h8nb.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQWTX-0002fN-JK for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 04:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQWTT-0004LY-LM for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 04:42:47 -0500 Received: from [195.159.176.226] (port=33818 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQWTT-0004LI-Eg for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 04:42:43 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cQWTF-0001K3-VZ for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 10:42:29 +0100 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" To: emacs-orgmode@gnu.org Hi Grant, Thanks for the patch. Grant Rettke writes: > I want to use the fromurl variable in KOMA so I copied how the phone > variable works. > > The next change that I want to make is to include the description for > the fromurl like this: > > \setkomavar{fromurl}[description]{content} > > I haven't figured out how to do that yet. At the moment there's no direct support for [description] for any variables in KOMA letters generated through Org. What is the use-case here? The default description is "Url" and it does not have a corresponding "symbolicname". In general, descriptors are used in headers or footers which would typically be set up in a separate LCO file, I’d guess. E.g. \ifkomavarempty{fromurl}{}{\usekomavar*{fromurl}\usekomavar{fromurl}} > Maybe the simplest thing is to let the user define it as a list with > url and description like this: This should be done for all komavars if it was to be added IMO. Thanks, Rasmus -- Hooray!