LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

Display context of labels in quick panel, when including using \ref{}

Open PeterPOrth opened this issue 7 years ago • 3 comments
trafficstars

It would be great if the quick panel, that opens when one types the \ref{} command, would show the context of a label.

For example, to show the beginning of an equation, if the label refers to an equation, or the beginning of the caption/section, if it refers to a figure or section.

PeterPOrth avatar May 31 '18 20:05 PeterPOrth

I don't know how we should provide that context. We could create a html-popup, but that looks a little bit weird together with the overlay, because the anchor of the popup is in the text and the overlay in in the tab (I already tried something like this to preview images for the \includegraphics command).

r-stein avatar Jun 03 '18 11:06 r-stein

Thanks a lot for the reply. I think the html popup may be a good option. In documents with many labels (such as equations), it would certainly help, as giving each of them a meaningful name that one remembers is often not feasible.

Alternatively, I think it would already be a very useful option if the cursor in the main text window would follow reference labels as one selects them in the quick panel (just like when using the Cmd-R command). I am not sure this is easy to implement.

PeterPOrth avatar Jun 05 '18 23:06 PeterPOrth

Reviving this old thread because I came here to make a similar suggestion. I'm considering switching from emacs to ST, and the \ref{} quick panel is the one thing I've run across so far that seems to be a step backwards. I'm attaching a screenshot of what it looks like in Aquamacs when I insert a reference: the section headings are displayed, so you have some context about where each label sits in the article, and then the first line of text after the label is included. I imagine the quick panel could show more or less the same?

Screen Shot 2022-01-24 at 2 11 55 PM

davidsavitt avatar Jan 24 '22 20:01 davidsavitt