Add support for \Nameref alongside \NameRef

Richard Kimberly Heck rikiheck at gmail.com
Sun Oct 2 23:18:24 UTC 2022


On 10/2/22 19:04, Udicoudco wrote:
> On Mon, Oct 3, 2022 at 1:19 AM madmurphy <madmurphy333 at gmail.com> wrote:
>> Hi Udi,
>>
>> I was mistaken because LyX shows it as NameRef: chap:duis-feugiat-facilisis, but in reality the example attached, if exported to LaTeX, uses \nameref{...} (all lowercase). What I often find more useful however is \Nameref{...} (with a capital “N”) – you can find it too in the example attached (no need to include packages).
>>
>> --madmurphy
> Hi madmurphy,
>
> I've attached two files that can solve this problem with one line of
> code in the preamble of the documents (in one of the attachments it's
> four lines), I hope it will help.
>
> I think that to add a support for \Nameref would be  a bit
> problematic, as it's definition contains the words "on page"
> explicitly, independently of the main language of the document, which
> can cause unexpected results for some LyX users (especially if the
> main language is a RTL language, which will cause \Nameref to output
> "page on" instead of "on page").

Yes, that's absolutely right. We try very hard to avoid that sort of 
thing. One option here would be for someone to contact the maintainer of 
this package and see if they can get it updated.

Riki




More information about the lyx-devel mailing list