[OS X TeX] autocomplete for references
Nicolae Garleanu
nbgarleanu at gmail.com
Wed Jan 24 11:57:29 EST 2024
Thanks, Herb. Yes, I was talking about TexShop, realized I didn’t mention it in the message.
Based on your answer, my recollection must be of a different front end, which can only mean WinEdit from my early days.
I have the Labels button — it lists the labels already defined (including in comments), and if I click on one the cursor goes to the place where the label is defined. Probably have to type in the label (or click on it, copy from the source file, then go back to where it’s needed.) The order in the list is given by the location of the label in source file, I think.
I had never used BibDesk, so just tried it now. The F5 trick does not work for me (I just get some continuation suggestion as if from a dictionary), I am guessing that there may be a setting I can modify. (All I did was to open, from BibDesk, the .bib file. I am not even sure whether TS and BD “know to work together.") BibDesk does make it easy to see the cite keys, though, so it’s already an improvement.
Nicolae
> On Jan 23, 2024, at 15:06, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>
>
>
>> On Jan 23, 2024, at 1:27 PM, Nicolae Garleanu <nbgarleanu at gmail.com> wrote:
>>
>> Hi,
>>
>> I recollect that there was such a feature — type "\ref{", or maybe even "\cite{", and a list appears. As you type characters, the choices are narrowed down appropriately. I am aware of the “Insert reference” macro, that’s not quite it. Is there a source to consult on the topic?
>>
>> Thank you.
>> Nicolae
>
> Howdy,
>
> I believe you're talking about a feature that comes from an Editor/FrontEnd not LaTeX itself. What Editor/FrontEnd are you talking about?
>
> If you are talking about TeXShop there is a button on the Source Window called Labels. Clicking on the button shows all the defined labels in your source file (only that file, not included/input files). If you don't hve that button on that toolbar you can customize the toolbar and add it: Ctl-Click (or Right-Click) on the toolbar and choose to customize the toolbar.
>
> There is also a feature that helps with citations in a bib file opened in BibDesk. type \cite{ and the first few characters of the citation label and press F5 and BibDesk generates and TeXShop displays a list of matching citation labels that match in the bib files open in BibDesk. You select the one you want, press Return and continue.
>
> Good Luck,
>
> Herb Schulz
> herbs2 at mac.com
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: https://www.tug.org/mactex/faq/index.html
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20240124/4f151348/attachment.htm>
More information about the MacOSX-TeX
mailing list