GNU bug report logs - #69266
30.0.50; bibtex-parse-entry misreads escaped \}

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Mon, 19 Feb 2024 09:12:02 UTC

Severity: normal

Found in version 30.0.50

Done: Roland Winkler <winkler <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 69266 <at> debbugs.gnu.org (full text, mbox):

From: Roland Winkler <winkler <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: Arash Esbati <arash <at> gnu.org>, 69266 <at> debbugs.gnu.org
Subject: Re: bug#69266: 30.0.50; bibtex-parse-entry misreads escaped \}
Date: Sat, 24 Feb 2024 10:05:43 -0600
On Sat, Feb 24 2024, Ihor Radchenko wrote:
> I am wondering if there exists a full Bibtex format description
> somewhere. I can see some hints scattered over documentation in
> https://ctan.org/pkg/bibtex, but nothing is complete.

The first reference I am aware of is "BibTeXing" by the author of
BibTeX, Oren Patashnik.  My version dated 1988-02-08 refers to BibTeX
version 0.99b.  The current version of BibTeX is something like 0.99d,
which gives you some idea of how BibTeX has evolved during the past 36
years.

I am not aware of anything significantly more substantial beyond this
document, which is, I guess, some indicator what kind of questions
people worry about when they are using BibTeX.

None of the documents I am aware discusses in more detail the question
of escaping that you addressed in your bug report for emacs bibtex-mode.
I guess part of the reason for this is that the notion of escaping is
orthogonal to how (La)TeX works and BibTeX follows (La)TeX in that
respect.  There is no escaping as it exists in C or bash.  In standard
(La)TeX, "\}" is defined only in math mode, (La)TeX can handle "$\}$",
but outside math mode, "\}" it throws an error.  If you don't like this
you can change this.

(La)TeX is both for typesetting itself, and it is also a powerful
programing language for how typesetting is supposed to happen.  But
there is no formal distinction between these very different aspects.  In
a (La)TeX document, all rules for how typesetting is supposed to happen
can be modified on the fly.

This gets off-topic.  Emacs bibtex-mode follows the philosophy
underlying BibTeX itself and (La)TeX.




This bug report was last modified 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.