Open mforbes opened 3 days ago
Closing related issue: https://github.com/sagemathinc/cocalc/issues/4215
I think we should just get rid of all latex-related formatting. I don't think there exist any good formatters.
The formatters for code (python, javascript, etc.) are very robust these days. The formatters for tex-related things are very bad.
Describe the bug
Running the Format Code Source command on CoCalc results in serious loss of data in bibtex files.
I recommend the following
Of course, one can use Time Travel to recover, but in our case it was quite painful because of many intermediate changes.
To Reproduce
test.bib
on CoCalc.Format/Format Source Code
. The file becomes:Note that:
journal
field is just dropped. (It is a macro that is defined in another file).bibtex
-compatible names likejournal
,year
, etc. and arXiv-compatible names likearchiveprefix
tobiblatex
compliant names:journaltitle
,data
,eprinttype
etc. This might be find for people using biblatex, but will break submissions to journals that still requirebibtex
.Expected behavior Inconsequential code formatting changes such as spaces etc.