Re: LyX Cross-reference Label Default Content Inquiry

2017-08-28 Thread Richard Heck
On 08/28/2017 03:07 PM, Joel Kulesza wrote:
> Colleagues:
>
> Is there a mechanism for modifying how Insert -> Labels are
> automatically populated?  
>
> It appears to populate with the name of the associated entity, with
> spaces changed to dashes, up to a certain character limit.  
>
> Can this character limit be raised?  Can the space->dash conversion be
> modified?
>
> My ultimate goal is to provide more context in the labels themselves
> (mostly through NOT truncating them).  I usually just copy/paste the
> associated information of the default label; however, it would be
> convenient if something like this outcome could be made automatic. 
> That said, I'm glad the clickable UI element is truncated...

Short of modifying the source code, no, there's no way to customize
this. But you can of course patch the source for your own purposes if
you wish. The routine in question is Text::getPossibleLabel, in Text.cpp.

It probably would not be that hard to add preferences to control length
and what spaces get replaced with, though we're sometimes reluctant to
add too many preferences

Richard



LyX Cross-reference Label Default Content Inquiry

2017-08-28 Thread Joel Kulesza
Colleagues:

Is there a mechanism for modifying how Insert -> Labels are automatically
populated?

It appears to populate with the name of the associated entity, with spaces
changed to dashes, up to a certain character limit.

Can this character limit be raised?  Can the space->dash conversion be
modified?

My ultimate goal is to provide more context in the labels themselves
(mostly through NOT truncating them).  I usually just copy/paste the
associated information of the default label; however, it would be
convenient if something like this outcome could be made automatic.  That
said, I'm glad the clickable UI element is truncated...

My apologies if such functionality is there and I've overlooked it (e.g.,
Section 6.1 of the User's Guide).

Thank you,
Joel