schlaicha / jupyter-publication-scripts

Useful scripts for Making publication ready Python Notebooks
BSD 2-Clause "Simplified" License
18 stars 8 forks source link

Replace unicode to LaTex infrastructure #1

Closed schlaicha closed 8 years ago

schlaicha commented 8 years ago

There is a nice package available at https://gitcafe.com/yuexue/unicode_tex/ which we should incorporate in pre_cite2c.py instead of maintaining our own list there.

jcfschulz commented 8 years ago

Added a first commit including this functionality. I updated the example to include a certain slovenian name that included characters problematic in BibTeX. Everything works nicely... However, the unicode_tex module has one problem, it also converts the space to "\space" without a trailing space, which in return can occasionally screw up bibtex. I put a copy of this module in here with the space removed. We should probably send a pull request with that to the original module. However, I think the space should never be replaced here, this would be weird...