unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Roland Winkler <winkler@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Arash Esbati <arash@gnu.org>, 69266@debbugs.gnu.org
Subject: bug#69266: 30.0.50; bibtex-parse-entry misreads escaped \}
Date: Sat, 24 Feb 2024 10:05:43 -0600	[thread overview]
Message-ID: <877cit26g8.fsf@gnu.org> (raw)
In-Reply-To: <8734tixdf9.fsf@localhost> (Ihor Radchenko's message of "Sat, 24 Feb 2024 12:19:22 +0000")

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.





  reply	other threads:[~2024-02-24 16:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19  9:14 bug#69266: 30.0.50; bibtex-parse-entry misreads escaped \} Ihor Radchenko
2024-02-23 12:07 ` Arash Esbati
2024-02-23 15:25   ` Roland Winkler
2024-02-24 12:19     ` Ihor Radchenko
2024-02-24 16:05       ` Roland Winkler [this message]
2024-02-25 17:50         ` Arash Esbati
2024-02-26  0:50           ` Roland Winkler
2024-02-26 14:42             ` Arash Esbati
2024-02-26 17:08             ` Ihor Radchenko
2024-02-26 18:56               ` Roland Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cit26g8.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=69266@debbugs.gnu.org \
    --cc=arash@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).