#421 Please treat \citeasnoun, \possessivecite and \citeaffixed the same as \cite (harvard citation package)

None
closed
nobody
None
4
2013-03-19
2013-03-19
No

I am using \citeasnoun and \citeaffixed of the harvard package a lot. I would be great to have these commands treated like \cite in syntax highlighting and autocompletion.
Alternatively: Is there a config file to specify LaTeX commands individually for autocompletion and syntax highlighting?

Discussion

  • Tim Hoffmann
    Tim Hoffmann
    2013-03-19

    There is. It is done via cwl files.

    Note, that TXS autogenerates a cwl file by inspecting the package. But this mechanism is not perfect due to the complexity of LaTeX. Therefore it may not find all specified commands. In particular it cannot guess meaning like 'this is a citation command'. You are welcome to take this cwl as a starting point, improve it and provide it to us, so we can include it in TXS. Edit: since it's almost no work, I did this myself.

     
    Last edit: Tim Hoffmann 2013-03-19
  • Tim Hoffmann
    Tim Hoffmann
    2013-03-19

    • status: open --> closed
    • milestone: -->
     
  • Andreas Ludwig
    Andreas Ludwig
    2013-03-19

    Great. Thanks for the pointer. I simply did not find the right spot in the manual. Now it works like a charme. :-)

     
  • Andreas Ludwig
    Andreas Ludwig
    2013-03-19

    Here is the cwl file I created.

     
    Attachments