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

Parse common latex commands in titles #100

Open
alxsimon opened this issue Dec 6, 2023 · 3 comments
Open

Parse common latex commands in titles #100

alxsimon opened this issue Dec 6, 2023 · 3 comments

Comments

@alxsimon
Copy link

alxsimon commented Dec 6, 2023

Hi, it would be great if latex commands could be parsed in bibtex file titles (and maybe other fields too).
My use case is species names.

An example of a citation in bibtex format, autogenerated by better-biblatex Zotero extension:

@article{Simon2022,
  title = {Three New Genome Assemblies of Blue Mussel Lineages: {{North}} and {{South European}} {{{\emph{Mytilus edulis}}}} and {{Mediterranean}} {{{\emph{Mytilus galloprovincialis}}}}},
  shorttitle = {Three New Genome Assemblies of Blue Mussel Lineages},
  author = {Simon, Alexis},
  date = {2022-09-04},
  journaltitle = {bioRxiv},
  doi = {10.1101/2022.09.02.506387},
  langid = {english},
}

Which gives me this result in typst:
A. Simon, “Three New Genome Assemblies of Blue Mussel Lineages: North and South European
\emph{Mytilus edulis} and Mediterranean \emph{Mytilus galloprovincialis}”, bioRxiv, Sep. 2022, doi:
10.1101/2022.09.02.506387.

Fields that could be parsed \emph, \textit, \textbf

@alxsimon
Copy link
Author

alxsimon commented Dec 7, 2023

related issue pointed out in the discord chat
typst/typst#2761
typst/typst#1975

@alxsimon
Copy link
Author

alxsimon commented Dec 7, 2023

Feel free to move this issue to https://github.com/typst/biblatex/issues, I have no idea in which repository it is most relevant sorry.

@DerDrodt
Copy link
Contributor

DerDrodt commented Dec 7, 2023

In this case, the solution concerns multiple crates: biblatex has to parse commands and store that information, hayagriva has to render them correctly.

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