Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for apacite commands #267

Open
briochemc opened this issue Aug 4, 2023 · 0 comments · May be fixed by #268
Open

Add support for apacite commands #267

briochemc opened this issue Aug 4, 2023 · 0 comments · May be fixed by #268
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature

Comments

@briochemc
Copy link

briochemc commented Aug 4, 2023

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 😅

@briochemc briochemc added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Aug 4, 2023
@briochemc briochemc linked a pull request Aug 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant