[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Annotating completion of labels
From: |
Colin Baxter |
Subject: |
Re: Annotating completion of labels |
Date: |
Sun, 16 Jul 2023 20:33:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) |
>>>>> Arash Esbati <arash@gnu.org> writes:
> Colin Baxter <m43cap@yandex.com> writes:
>> When I insert a \label then what's in the bracket is always a
>> random alphanumeric, as in say \label{58f7161e}, and never some
>> descriptive text.
> Ok.
>> Obviously I refer to the label with \ref{58f7161e}. This is done
>> by hand; something which I don't find inconvenient because I
>> think it is more important for me to know where and what is
>> written in the text rather than ease of use.
> I'd suggest you start using RefTeX. RefTeX can be configured to
> insert simple numbers after a prefix like 'eq:1' or 'sec:14'[1].
> Then you use C-) to reference a label and RefTeX starts a
> selection process incl. showing the text around the \label macro
> etc., very convenient.
Yes I know about this, but I prefer my method.
>> I envisaged that using your completion function would give me a
>> choice of random numbers.
> No, it gives you a list of already defined labels like 58f7161e
> incl. context (aka annotation).
>> Even if some run-on texts is included in the completion buffer
>> then this still might not provide sufficient context for me to
>> choose the completion accurately, especially if \label is some
>> distance away in the text from the corresponding \ref.
> My code relies solely on what RefTeX does: The text shown as
> annotation is what RefTeX holds in memory as context around the
> \label macro, and that can be configured.
>> All this might seem inconsistent with my supposed "knowing the
>> text" and I may have completely misunderstood what you propose.
> I hope it is now more clear.
It is, thank you.
Best Wishes,
Colin Baxter.
- Annotating completion of labels, Arash Esbati, 2023/07/16
- Re: Annotating completion of labels, Colin Baxter, 2023/07/16
- Re: Annotating completion of labels, Arash Esbati, 2023/07/16
- Re: Annotating completion of labels, Colin Baxter, 2023/07/16
- Re: Annotating completion of labels, Arash Esbati, 2023/07/16
- Re: Annotating completion of labels, Uwe Brauer, 2023/07/16
- Re: Annotating completion of labels, Arash Esbati, 2023/07/16
- Re: Annotating completion of labels, Uwe Brauer, 2023/07/16
- Re: Annotating completion of labels, Arash Esbati, 2023/07/16
- Re: Annotating completion of labels,
Colin Baxter <=