GetRD / academic-file-converter

📚 Import Bibtex publications and Jupyter Notebook blog posts into your Markdown website or book. 将Bibtex转换为Markdown网站

Home Page:https://docs.hugoblox.com/reference/content-types/#automatically-import-publications-from-bibtex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX commands in TITLE field (bibtex files) are not preserved when importing

torralbofco opened this issue · comments

After importing a bibtex file with the following entry:

@article {MR3750218,
    AUTHOR = {Alarc\'{o}n, Antonio and Forstneri\v{c}, Franc},
     TITLE = {Complete densely embedded complex lines in {$\Bbb C^2$}},
   JOURNAL = {Proc. Amer. Math. Soc.},
  FJOURNAL = {Proceedings of the American Mathematical Society},
    VOLUME = {146},
      YEAR = {2018},
    NUMBER = {3},
     PAGES = {1059--1067},
      ISSN = {0002-9939},
   MRCLASS = {32H02 (32E10 32M17 53C42)},
  MRNUMBER = {3750218},
MRREVIEWER = {Yu Kawakami},
       DOI = {10.1090/proc/13873},
       URL = {https://doi.org/10.1090/proc/13873},
}

I obtained the following markdown file for the publication entry

---
title: "Complete densely embedded complex lines in $Bbb C^2$"
date: 2018-01-01
publishDate: 2019-08-23T19:28:30.647940Z
authors: ["Antonio Alarcón", "Franc Forstnerič"]
publication_types: ["2"]
abstract: ""
featured: false
publication: "*Proc. Amer. Math. Soc.*"
url_pdf: "https://doi.org/10.1090/proc/13873"
doi: "10.1090/proc/13873"
---

Observe how the characters in the authors name are correctly transformed but the backslash character of the LaTeX command \Bbb (for blackboard letter) is missing in the title. This produce a bad formater title.

Compare the two images below. The first one is with "$Bbb C^2$" while the second one is "$\Bbb C^2$" (which is the correct one).

Captura de pantalla 2019-08-23 a las 21 36 26

Captura de pantalla 2019-08-23 a las 21 37 18

The character "\" inside $$ in the title should be doubled instead of removed. See for instance the warning at the end of the Manually managing content in the academic documentation.

commented

This issue has been automatically marked as stale because it has not had any recent activity. The resources of the Academic team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically close soon if no further activity occurs. Thank you for your contributions.

I will not mark this as a bug but as a feature request. The title of some mathematical papers includes LaTeX commands (that starts with a backslash ""). The script automatically erases all the backslash inside the fields of a bibtex file when importing it into the Academic theme. As a consequence, the title is not rendered correctly (see my previous picture). For a small references database is easy to fix one by one but for a big one (like the one of a research group) is not.

commented

This issue has been automatically marked as stale because it has not had any recent activity. The resources of the Academic team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically close soon if no further activity occurs. Thank you for your contributions.

I've just run into this and I agree that this is an issue. Is there any good reason why the backslashes are removed?