Writing custom citation completions

kile
Anonymous
2011-01-13
2012-07-03

  • Anonymous
    2011-01-13

    For most of what I write I use apacite as my citation package. It has a few
    unique types of citation which aren't included in biblatex.cwl, so I wanted to
    make a custom version. I've been able to get it to complete the citations for
    me, however I've not been able to get it to provide a list of bibtex keys, as
    it does when you use one of the default citations.

    If you create a custom citation such as "\citeA{key}" do you need to define
    what key means somewhere? I've looked over biblatex.cwl and can't see anything
    that obviously performs this role.

     

  • Anonymous
    2011-02-06

    Hello Ian,

    I am not so sure about the biblatex.cwl way you were mentioning.

    But I know a different way to enable the auto-complete feature for custom cite
    or reference commands. Go to Settings -> Configure Kile -> Latex -> General ->
    Commands, Configure -> Command Tab. There in the respective section
    ("Citations" for you) you can add new entries for commands which belong to the
    respective group.

    So for you, try adding "citeA" as a new citation command. Then in the
    document, autocomplete of your bibtex entries should work.

    Hope this helps,

    Michael

     

  • Anonymous
    2011-02-08

    Thanks Michael!

    That seems to do exactly what I want. I just have to enter all of the
    citations that are already in my custom .cwl into Kile.