Re: [O] [PATCH] ox-koma-letter.el: Add support for fromurl variable

2017-07-13 Thread Grant Rettke
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

2017-01-09 Thread Rasmus
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

2017-01-04 Thread Nicolas Goaziou
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