You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a way to disable auto-formatting for specific projects.
Provide a way to customize the formatters (harder... but probably doable if they were clearly documented since they probably use some config files.)
Of course, one can use Time Travel to recover, but in our case it was quite painful because of many intermediate changes.
To Reproduce
Create and open the following file called test.bib on CoCalc.
%% This BibTeX bibliography file was created using BibDesk.%% https://bibdesk.sourceforge.io/%% Saved with string encoding Unicode (UTF-8) @set{myset,
entryset = {Beringer:2024}}
@article{Beringer:2024,
archiveprefix = {arXiv},
author = {Beringer, Lukas and Steinhuber, Mathias and Diego Urbina, Juan and Richter, Klaus and Tomsovic, Steven},
doi = {10.1088/1367-2630/ad5752},
eprint = {2401.17744},
issn = {1367-2630},
journal = njp,
month = jul,
number = {7},
pages = {073002},
primaryclass = {cond-mat.quant-gas},
publisher = {IOP Publishing},
title = {Controlling many-body quantum chaos: {Bose}-{Hubbard} systems},
url = {http://dx.doi.org/10.1088/1367-2630/ad5752},
volume = {26},
year = {2024}}
Run Format/Format Source Code. The file becomes:
@set{myset,
}
@article{Beringer:2024,
author = {Beringer, Lukas and Steinhuber, Mathias and Diego Urbina, Juan and Richter, Klaus and Tomsovic, Steven},
publisher = {IOP Publishing},
url = {http://dx.doi.org/10.1088/1367-2630/ad5752},
date = {2024-07},
doi = {10.1088/1367-2630/ad5752},
eprint = {2401.17744},
eprintclass = {cond-mat.quant-gas},
eprinttype = {arXiv},
issn = {1367-2630},
number = {7},
pages = {073002},
title = {Controlling many-body quantum chaos: {Bose}-{Hubbard} systems},
volume = {26},
}
Note that:
Comments are lost.
Entryset data is completely lost.
Macros are lost - in this case, the journal field is just dropped. (It is a macro that is defined in another file).
Field names are changed from bibtex-compatible names like journal, year, etc. and arXiv-compatible names like archiveprefix to biblatex compliant names: journaltitle, data, eprinttype etc. This might be find for people using biblatex, but will break submissions to journals that still require bibtex.
Expected behavior
Inconsequential code formatting changes such as spaces etc.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: