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

Bibtex to csljson conversion loses mathmode markers #9616

Closed
hseg opened this issue Apr 1, 2024 · 0 comments
Closed

Bibtex to csljson conversion loses mathmode markers #9616

hseg opened this issue Apr 1, 2024 · 0 comments
Labels

Comments

@hseg
Copy link
Contributor

hseg commented Apr 1, 2024

Explain the problem.

With the following bibtex file:

@MISC {3252037,
    TITLE = {Isomorphism between projective varieties $\mathbf{P}^{1}$ and a conic in $\mathbf{P}^{2}$},
    AUTHOR = {Viktor Vaughn (https://math.stackexchange.com/users/22912/viktor-vaughn)},
    HOWPUBLISHED = {Mathematics Stack Exchange},
    NOTE = {URL:https://math.stackexchange.com/q/3252037 (version: 2019-06-05)},
    EPRINT = {https://math.stackexchange.com/q/3252037},
    URL = {https://math.stackexchange.com/q/3252037}
}

running pandoc -f bibtex -t csljson produces

[
  {
    "URL": "https://math.stackexchange.com/q/3252037",
    "author": [
      {
        "family": "(https://math.stackexchange.com/users/22912/viktor-vaughn)",
        "given": "Viktor Vaughn"
      }
    ],
    "id": "3252037",
    "note": "URL:https://math.stackexchange.com/q/3252037 (version: 2019-06-05)",
    "publisher": "Mathematics Stack Exchange",
    "title": "Isomorphism between projective varieties \\mathbf{P}^{1} and a conic in \\mathbf{P}^{2}",
    "type": ""
  }
]

In particular, note the math mode markers in the title are dropped.

Not having noticed this, when I then ran yq -y . - and pasted the result in the references metadata key, I got very confusing errors regarding missing mathmode markers.

Pandoc version?
3.1.12.3, commit 6ee0384, on Arch Linux

@hseg hseg added the bug label Apr 1, 2024
@jgm jgm closed this as completed in c29c18a Apr 1, 2024
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

1 participant