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

Allow inline comments #64

Open
jakewilliami opened this issue Oct 20, 2024 · 1 comment
Open

Allow inline comments #64

jakewilliami opened this issue Oct 20, 2024 · 1 comment

Comments

@jakewilliami
Copy link

jakewilliami commented Oct 20, 2024

Hi team, thanks for all the work on this library! It's very useful for a simple use-case I have.

I have encountered an issue with some of my bibliographies not parsing, for example:

@article{fischer2019primer,
  title={A primer to (cross-cultural) multi-group invariance testing possibilities in {R}},
  author={Fischer, Ronald and Karl, Johannes A},
  journal={Frontiers in Psychology},
  pages={1507}, % A comment here
  year={2019},
  publisher={Frontiers},
  doi={10.3389/fpsyg.2019.01507}
}

This is because there is a comment after one of the fields. This is allowed by the BibLaTeX (as far as I know), but not by Typst's biblatex. Are there any plans to support these comments in future?

N.B.—: I've always been a little confused about comments in bibliographies, as Emacs tried to add comments as @Comment but BibLaTeX never seems to like this. Perhaps that's a deprecated comment style. I've never bothered to read into it...

@jakewilliami
Copy link
Author

This issue also arises when you have a bib entry that is entirely commented out. So this will parse:

% Some comment outside of the citation block

@article{fischer2019primer,
  title={A primer to (cross-cultural) multi-group invariance testing possibilities in {R}},
  author={Fischer, Ronald and Karl, Johannes A},
  journal={Frontiers in Psychology},
  pages={1507},
  year={2019},
  publisher={Frontiers},
  doi={10.3389/fpsyg.2019.01507}
}

But this will not:

% Some comment outside of the citation block

% @article{fischer2019primer,
%   title={A primer to (cross-cultural) multi-group invariance testing possibilities in {R}},
%   author={Fischer, Ronald and Karl, Johannes A},
%   journal={Frontiers in Psychology},
%   pages={1507},
%   year={2019},
%   publisher={Frontiers},
%   doi={10.3389/fpsyg.2019.01507}
% }

Is that expected?

By the way, I like that you allow trailing commas in the last field of the entry. I don't think my BibLaTeX system likes it when i do that.

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

1 participant