Add support for \Nameref alongside \NameRef

madmurphy madmurphy333 at gmail.com
Mon Oct 3 14:04:28 UTC 2022


I understand the complication of adding localization. However, as for
redefining \nameref as \Nameref, that would be problematic for me, because
sometimes I use also \nameref.

--madmurphy

On Mon, Oct 3, 2022 at 12:18 AM Richard Kimberly Heck <rikiheck at gmail.com>
wrote:

> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221003/da0b0e15/attachment.html>


More information about the lyx-devel mailing list