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 round brackets to starting characters? #36

Open
itogst opened this issue Dec 24, 2022 · 1 comment
Open

Add round brackets to starting characters? #36

itogst opened this issue Dec 24, 2022 · 1 comment

Comments

@itogst
Copy link

itogst commented Dec 24, 2022

Could you add round brackets to the characters that are allowed to be before the @ of a citation?
I'm not quite sure why round brackets wouldn't be allowed to be in front of @.
If there is any reason I would be happy to know!

It's a great extansion otherwise!
Thanks in advance

@notZaki
Copy link
Owner

notZaki commented Jun 7, 2023

Good question. I actually don't remember exactly why I excluded round brackets, but I think it was to avoid accidentally writing (@smith) instead of [@smith].

Pandoc's citeproc should format the citation and insert round brackets if necessary. So if you want the final document to look something like This is a proven fact. (Smith (1994)), then it's better to use ... fact. [@smith94] instead of ... fact. (@smith94).
Although both versions might give the same output by default, only the square bracket version will be formatted correctly if a different csl file is used.

I guess if you wanted to add an in-line citation as the first thing inside a round bracket, so something like This is a fact (Smith (1994) proved it), then the extension wouldn't show the suggestions.

Anyways, if you think allowing round brackets will be useful, then I can enable them.

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

2 participants