Re: [O] [PATCH] ox-koma-letter.el: Add support for fromurl variable
On Mon, Jan 9, 2017 at 3:42 AM, Rasmus wrote: > 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}} I set it in the LCO file like this \setkomavar{fromurl}{\href{the ur}{the description}} And then enable/disable or override it in the Org document.
Re: [O] [PATCH] ox-koma-letter.el: Add support for fromurl variable
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!
Re: [O] [PATCH] ox-koma-letter.el: Add support for fromurl variable
Hello, Grant Rettke writes: > 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. What is "description" supposed to do? > Subject: [PATCH] ox-koma-letter.el: Add support for fromurl variable Thank you. You need to add :inbuffer-url and :inbuffer-with-url keywords. See, e.g., `:inbuffer-phone-number' and `:inbuffer-with-phone'. Regards, -- Nicolas Goaziou
[O] [PATCH] ox-koma-letter.el: Add support for fromurl variable
Good morning, 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. Maybe the simplest thing is to let the user define it as a list with url and description like this: #+URL (url description) The code can check if it a list or not when it generates the LaTeX code. If this patch is accepted then I will figure out how to update Worg with the fromurl variable. 0001-ox-koma-letter.el-Add-support-for-fromurl-variable.patch Description: Binary data