Skip to content

Add support for apacite commands #267

@briochemc

Description

@briochemc

Is your feature request related to a problem? Please describe.

I am using a LaTeX template class from the American geophysical union (AGU) and they use "apacite" which (quoting from their template) "uses < > for prenotes and [ ] for postnotes".

For example, to print "(see, e.g., XXX for details)", I write the follow LaTeX:

\cite<see, e.g.,>[for details]{XXX}

Because these commands are not recognised, ltex reports a false positive with almost each citation command.

Adding the commands below would benefit all users of apacite.

Describe the solution you'd like

Add the following commands

  • \cite<>[]{}
  • \cite<>{}
  • \citeA{} (maybe this one already works; not sure)

Describe alternatives you've considered

I tried adding the following to my settings, but it does not seem to work:

    "ltex.latex.commands": {
        "\\cite<>[]{}": "dummy",
        "\\cite<>{}": "dummy",
        "\\cite{}": "dummy",
        "\\citeA{}": "dummy"
    },

Not why it does not work... Maybe the < and > are not parsed correctly?
Either way my current workaround is just to close my eyes and ignore the false positives 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    1-feature-request ✨Issue type: Request for a desirable, nice-to-have feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions