unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Roland Winkler <winkler@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 56475@debbugs.gnu.org
Subject: bug#56475: 28.1.50; bibtex-parse-entry disregards @string substitutions
Date: Mon, 18 Jul 2022 12:07:09 +0800	[thread overview]
Message-ID: <87fsizhxn6.fsf@localhost> (raw)
In-Reply-To: <87edyjsdog.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1393 bytes --]

Roland Winkler <winkler@gnu.org> writes:

>>> When does this happen?  To the best of my knowledge, this has never been
>>> an issue for users of bibtex.el.
>>
>> It is more of a hypothetical scenario that might occur in future if Org
>> tries to support bibliographies provided inside .org files. Such
>> bibliographies will need to be converted to .bib files transiently and
>> might not need to be saved on disk.
>
> This sounds to me like reinventing the wheel and a poor design choice.
> BibTeX is a well-established bibliography format with a large ecosystem
> [(La)TeX].  Also, publishers provide BibTeX records for their journal
> articles.  (Occassionally I need to deal with records that have some
> other database format like RIS.  Converting formats is always painful.)
> ...
> What are the usage scenarios you have in mind for putting a bibliography
> database into org mode that comes with its own database format?

Org mode provides transparent conversion between BibTeX and Org formats.

The advantages of keeping bibliography in Org involve the extra things
you can do with Org headlines compared to BibTeX records:

- You can keep the related notes together with the bibliographic record
  and make use of Org markup, including inline images, inline LaTeX
  formulas, and cross-links to other bibliographic records. An example of
  such record is in the attached screenshot.


[-- Attachment #2: bibtex-note-example.png --]
[-- Type: image/png, Size: 100576 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1936 bytes --]


- You can convert such records to actionable tasks and schedule them
  using org-agenda. This integrates literature review process with task
  management capabilities of Org.

- You can easily search across the literature records while also
  indexing the records according to personal notes/tags/relevance to
  specific projects/etc

- You can visualize relations between literature records using packages
  like org-roam-ui: https://github.com/org-roam/org-roam-ui

- You can attach the literature PDFs/related data alongside with the
  literature record using org-attach mechanism

- You can put the bibliographic records together with notes inside the
  actual authored document, being able to review and search across the
  used literature. They can also be transparently exported to the
  required printable format like pdf/Tex/html/odt/etc

> From a practical perspective, BibTeX mode is built around the idea that
> users may have a large bibliography database.  Something like 10,000
> records is not exotic.  Then it is natural to split up these entries
> among multiple files.  BibTeX mode and its API support this very nicely.
> (I have many little helper functions in my emacs init file that use the
> BibTeX mode API.  Maybe I should put some of these also into bibtex.el.)

Sure. I am not saying that the current API is incorrect. It's just
geared towards specific kind of traditional workflow.

For the bibtex.el extension, I am pretty sure that people do want some
helper functions. Some Org-related projects are even using
alternative API-oriented implementations of BibTeX parsers:
https://github.com/joostkremers/parsebib You may find reading the
parsebib's readme useful to get an idea what people need. parsebib is at
least being used by https://github.com/andras-simonyi/citeproc-el that
is natively supported by Org mode's citation engine
(https://blog.tecosaur.com/tmio/2021-07-31-citations.html).

Best,
Ihor

  reply	other threads:[~2022-07-18  4:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-10  7:14 bug#56475: 28.1.50; bibtex-parse-entry disregards @string substitutions Ihor Radchenko
2022-07-11 10:16 ` Lars Ingebrigtsen
2022-07-11 17:12   ` Roland Winkler
2022-07-11 17:29     ` Roland Winkler
2022-07-12  2:32       ` Ihor Radchenko
2022-07-12  4:14         ` Roland Winkler
2022-07-12  6:04           ` Ihor Radchenko
2022-07-12 15:31             ` Roland Winkler
2022-07-17  8:34               ` Ihor Radchenko
2022-07-17 20:10                 ` Roland Winkler
2022-07-18  4:07                   ` Ihor Radchenko [this message]
2022-12-30  6:37                     ` 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=87fsizhxn6.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=56475@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=winkler@gnu.org \
    /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).