Closed Ionizing closed 2 years ago
Seems I need to do it myself?
This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the main
branch, consider contributing a Pull Request with a fix.
If this is a feature request, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review.
This issue will automatically close soon if no further activity occurs. Thank you for your contributions.
Nobody answered?
Thanks for this awesome tool to help me build the academic page and it finally comes to the last part. But I found there is something wrong with the output
The
{}
and\
inside titleIf there were short LaTeX code in the title like:
(This bib is exported from the APS website)
After the process by
academic
, thecite.bib
would be like:Also the
index.md
would be like:Someone suggested adding quotation to surround the
title
but ended with no help.It seems all the
{}
s and\
s are trimmed by https://github.com/wowchemy/hugo-academic-cli/blob/main/academic/import_bibtex.py#L87where
I checked the code and I guess the expected behavior is only trimming the surrounding
{}
fortitle
(or even for all fields). Maybe the functionclean_bibtex_str
needs to be refined ...The space at the end of
journal
Pay attention to the frontmatter of
index.md
: if there is extra spaces at the end ofjournal
, thepublication
item of frontmatter would be likepublication: '*Phys. Rev. Lett. *'
which leads to unresolved markdown emphasis format.I think just an extra
str.strip
can resolve this issue easily.