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

Feature request: Language-specific citation format #9

Open
kha-dinh opened this issue Nov 22, 2024 · 6 comments
Open

Feature request: Language-specific citation format #9

kha-dinh opened this issue Nov 22, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@kha-dinh
Copy link
Owner

Support different cite formats for interoperability with other languages like latex, org

@kha-dinh kha-dinh added the enhancement New feature or request label Nov 22, 2024
@bdarcus
Copy link

bdarcus commented Jan 25, 2025

What is the actual citation format you currently support?

The one in pandoc is the most robust and widely supported in the markdown world.

@kha-dinh
Copy link
Owner Author

Hi, currently, the default supported format is to pandoc but uses commas instead of semicolons to separate keys.
For example, for citing multiple keys:[@cite1, @cite2, @cite3].

However, you can easily customize this behavior by changing the config file .bibli.toml.

[cite]
separator = ";"

Now [@cite1; @cite2; @cite3] can be recognized.

More complex syntax like [see @doe99, pp. 33-35 and *passim*; @smith04, chap. 1], author cite is not supported yet,
but it would not be difficult to support them.

Thanks for the link, I guess it would be a good idea to support pandoc syntax as the default.

@kha-dinh
Copy link
Owner Author

kha-dinh commented Jan 26, 2025

#22 made pandoc the default format and added support for detecting cite keys in [see @doe99, pp. 33-35 and *passim*; @smith04, chap. 1]. No more configuration is required.

@bdarcus
Copy link

bdarcus commented Jan 26, 2025

Awesome; thanks!

@bdarcus
Copy link

bdarcus commented Jan 26, 2025

I'm new to helix (where I am testing this) and LSP config, so may be missing something.

But I was expecting citation autocomplete to only be activated in specific contexts; like after typing @.

Instead, I see this:

Image

Expected, or have I likely done something wrong?

This is how it works in my Emacs package (citar):

Image

@kha-dinh
Copy link
Owner Author

This is a known issue with the LSP implementation. I'll focus on fixing it when I have time.

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

No branches or pull requests

2 participants