ferdinandyb / bibtexcite.vim

Bib(la)tex citations for vim
MIT License
13 stars 1 forks source link

Support for quarto / .qmd files #8

Closed weberam2 closed 3 days ago

weberam2 commented 1 week ago

Describe the bug I can't seem to get this to work with a .qmd file When I insert a citation, it is not in @bibtex format (e.g. @alsopRecommendedImplementationArterial2015) I also can't seem to open the pdf...

Information that might be relevant:

BibtexciteOpenfile

Yes

@alsopRecommendedImplementationArterial2015

- copy the relevant entry from your `.bib` file

@article{alsopRecommendedImplementationArterial2015, title = {Recommended Implementation of Arterial Spin-Labeled Perfusion {{MRI}} for Clinical Applications: {{A}} Consensus of the {{ISMRM}} Perfusion Study Group and the {{European}} Consortium for {{ASL}} in Dementia: {{Recommended Implementation}} of {{ASL}} for {{Clinical Applications}}}, shorttitle = {Recommended Implementation of Arterial Spin-Labeled Perfusion {{MRI}} for Clinical Applications}, author = {Alsop, David C. and Detre, John A. and Golay, Xavier and G{\"u}nther, Matthias and Hendrikse, Jeroen and {Hernandez-Garcia}, Luis and Lu, Hanzhang and MacIntosh, Bradley J. and Parkes, Laura M. and Smits, Marion and {van Osch}, Matthias J. P. and Wang, Danny J. J. and Wong, Eric C. and Zaharchuk, Greg}, year = {2015}, month = jan, journal = {Magnetic Resonance in Medicine}, volume = {73}, number = {1}, pages = {102--116}, issn = {07403194}, doi = {10.1002/mrm.25197}, urldate = {2022-04-18}, langid = {english}, keywords = {arterial spin labeling,Blood Flow Velocity,Brain,cerebral blood flow,Cerebrovascular Circulation,Dementia,European Union,Humans,Magnetic Resonance Angiography,Neurology,perfusion,Practice Guidelines as Topic,Spin Labels}, file = {/home/weberam2/Dropbox/AssistantProf_BCCHRI/Zotero_Obsidian/Zotero/Alsop_et_al_2015_Recommended_implementation_of_arterial_spin-labeled_perfusion_MRI_for_clinical.pdf;/home/weberam2/Dropbox/AssistantProf_BCCHRI/Zotero_Obsidian/Zotero/Alsop_et_al_2015_Recommended_implementation_of_arterial_spin-labeled_perfusion_MRI_for_clinical2.pdf} }

ferdinandyb commented 5 days ago

Sorry for the late reply. This is how we currently decide what is the default output. Since your filetype is quarto that will default to markdown output, instead of pandoc. There's two ways you can go here:

A third option would be to convince me that the plugin should ship with default of pandoc for quarto files, but I don't know anything about what this is and I would not want to add something that might break other user's expectations, so I would need a little more information on this.

ferdinandyb commented 5 days ago

We're talking about this right? I've briefly used Rmarkdown before. Does qmd handle pandoc type citation by default? Because then it would make sense to have that as a default.

weberam2 commented 4 days ago

Hello!

Yes, we are talking about Quarto (the link you shared). It is for open-source scientific publishing. It's essentially RMarkdown, but better, as it can also handle python, julia, and has a bunch of other features. It's by the same people who made RStudio:

In 2022, Posit announced an R Markdown-like publishing system called Quarto. In addition to combining results of R, code and results using Python, Julia, Observable JavaScript, and Jupyter notebooks can also be used in Quarto documents. Compared to the file extension .Rmd that R Markdown has, Quarto documents have the file extension .qmd.

References are by default @citation or [@citation], which I believe is the same as pandoc

I'm pretty sure qmd files are converted using pandoc under the hood: image

ferdinandyb commented 3 days ago

Right, I'll send a patch today to set ft=quarto to use pandoc style by default.

ferdinandyb commented 3 days ago

Please reopen the issue if it does not solve it!