Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PeterPOrth opened this issue May 31, 2018 · 3 comments
Open

Comments

@PeterPOrth
Copy link

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.

@r-stein
Copy link
Member

r-stein commented Jun 3, 2018

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).

@PeterPOrth
Copy link
Author

PeterPOrth commented Jun 5, 2018

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.

@davidsavitt
Copy link

davidsavitt commented Jan 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants