Labels list for \ref

  • Anonymous - 2009-12-21

    Hi, is there any way to get the labels auto-completion list with user defined
    macros? I use shorthands like \figref to save having to type "Figure \ref".

    I've tried adding \figref{key} to the kile command auto-complete list via a
    .cwl file but that didn't seem to do anything apart from popping up
    "\figref{key}" literally as a possible completion.

    Thanks in advance.

  • Bogdan Cristea

    Bogdan Cristea - 2009-12-21

    When a tex file is opened you should see on your left an "Abbreviations" tab.
    Click on that tab, then on the left panel right click in order to add your
    auto-completion labels.

  • Anonymous - 2009-12-21

    Thanks for the quick response but that isn't exactly what I'm after. I have
    abbreviations turned off anyway since I find it more annoying than useful (it
    has the tendency to expand on some very common word prefixes.) I would like to
    be able to have the label auto-completion work with commands I define -- just
    like they do with the usual \ref{ }.

  • Anonymous - 2009-12-27

    Ideas anyone?

  • Anonymous - 2010-01-05

    OK, finally figured out how to do this:

    1. Go to Settings -> Configure Kile

    2. Then go to LaTeX -> General

    3. Click "Configure" under "Commands"

    4. Go to the Commands tab and select the group type (e.g. References)

    5. Click Add and then fill in the details

    Once the command has been added, Kile will automatically produce the labels
    list the next time that custom command is invoked.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks