backtracking / bibtex2html

Other
98 stars 27 forks source link

\@ eats a space #11

Open Jellby opened 7 years ago

Jellby commented 7 years ago

I write journal abbreviations in the bib file as "Chem.\@ Phys.\@ Lett." to avoid extra stretching when processing with LaTeX. It seems bibtex2html eats the space after the \@ macro, since I get in the html: Chem.Phys.Lett.. A workaround is using \@\ (with space after the last slash).

backtracking commented 7 years ago

I write journal abbreviations in the bib file as "|Chem.\@ Phys.\@ Lett.|" to avoid extra stretching when processing with LaTeX. It seems bibtex2html eats the space after the |\@| macro, since I get in the html: |Chem.Phys.Lett.|.

You're right, bibtex2html is incorrectly translating \@ to nothing.

I fixed this in the development version (commit 53f98281). The patch is not perfect, as \@ immediately followed by a character should not be translated to a space (but bibtex2html will do so). This should be a smaller annoyance, though.

A workaround is using |\@| (with space after the last slash).

Indeed. I hope you can live with it until I make a new release of bibtex2html.

thanks for reporting the issue. -- Jean-Christophe