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

JSON to BibLatex #231

Open
AntoinePy11 opened this issue Dec 14, 2023 · 1 comment
Open

JSON to BibLatex #231

AntoinePy11 opened this issue Dec 14, 2023 · 1 comment
Labels

Comments

@AntoinePy11
Copy link

I have a Vuejs project and I try to export my JSON to BibTex.
So I get my result as bibtex like this:
const bibtex = new Cite(myJSON, { output: { type: 'string', style: 'bibtex' } })
It works correctly but I want all of my infos and I have seen in the demo page that the biblatex format give me all of my infos.
How can I use it here ? I tried to put biblatex in style but it doesn't work :(
Thank you for you help :)

@larsgw
Copy link
Owner

larsgw commented Dec 14, 2023

The output option is deprecated, but I see this is not documented. The current way to do this would be

const bibtex = (new Cite(myJSON)).format('biblatex', { type: 'text' })

@larsgw larsgw added the docs label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants