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

Empty Latex Command for Citation picker #365

Open
samuelsaari opened this issue Oct 6, 2022 · 4 comments
Open

Empty Latex Command for Citation picker #365

samuelsaari opened this issue Oct 6, 2022 · 4 comments

Comments

@samuelsaari
Copy link

samuelsaari commented Oct 6, 2022

Feature Request

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

I would like to cite from zotero and only get the citation key without \autocite{}, citep{} or the like.

Describe the solution you'd like

It would be great if when the setting "Zotero: Latex Command" was left empty, no text would be added around the citation key.

Describe alternatives you've considered

not applicable.

Sometime you already have the \autocite{} command and you want to keep on adding citations or would occasionally like to use \textcite{}. I also switch between natbib and biblatex and would like to automate that process myself

@leoleoasd
Copy link
Collaborator

Sorry, for now I don't have the environment to test this. What is the current behavior if you set an empty string in LaTex Command settings? According to the code, it should be able to output only the cite key.

@samuelsaari
Copy link
Author

samuelsaari commented Oct 7, 2022

When the setting is an empty string, it will type "\autocite{}" around the citation key. Can't find the setting in json settings, only in the point and click settings.

This behavior was reproduced after reloading vscode and rebooting.

If this would be fixed some time in the future, would be grateful.

@jooyoungseo
Copy link

jooyoungseo commented Dec 31, 2022

As a piggyback request, it would be great if markdown user could customize the citation key as @key. {"latex-utilities.zotero.latexCommand": "@"} does not work for this purpose because it behaves like \@{key}.

@jooyoungseo
Copy link

jooyoungseo commented Dec 31, 2022

As far as I tested the empty LaTeX command works only when "latex-utilities.zotero.citeMethod": "vscode", not with the default Zotero citation picker.

{
  "latex-utilities.zotero.citeMethod": "vscode",
  "latex-utilities.zotero.latexCommand": ""
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants