GNU TeXmacsUser manualReferenceAboutEnglish
The bibliographic database

Instead of keeping your references in .bib files, you may keep them in a database of TeXmacs, common to all your documents. Enable it with Tools\(\rightarrow\)Database tool: a menu Data then appears, and View\(\rightarrow\)Database toolbar shows its icons.

Editing the database

Data\(\rightarrow\)Open bibliography opens your bibliographic database, which is edited like a .bib file (see Compiling a bibliography): Data\(\rightarrow\)New entry adds an entry, and Data\(\rightarrow\)Confirm entry (or ⌥↩) stores the changes of the entry at the cursor; Data\(\rightarrow\)Remove entry removes it. The database keeps the former versions of its entries.

References enter the database in several ways:

Data\(\rightarrow\)Export writes entries of the database into a .bib file. Data\(\rightarrow\)Storage chooses the file which holds the database.

Bibliographies made with the database

With the database tool, Insert\(\rightarrow\)Automatic\(\rightarrow\)Bibliography inserts a bibliography without file. Document\(\rightarrow\)Update\(\rightarrow\)Bibliography looks for the reference of each citation, in this order:

  1. the entries of the document itself (see below);

  2. the .bib file of the bibliography, when it has one;

  3. your database;

  4. the files exported from Zotero, then Zotero itself;

  5. the references kept in the document.

The completion of keys (⇥) and the search window of references (⌃⇥) use the database too.

The references of the bibliography are kept in the document: a document sent to someone else, without your database, still has its bibliography. Document\(\rightarrow\)Bibliography\(\rightarrow\)Local entries opens them, so that they can be changed for this document only (the changes are kept with the document, and take precedence). Data\(\rightarrow\)Export entries in buffer writes the references of a document into a .bib file.

With a style of BibTEX (whose name does not start with tm-), the references found are gathered into one file and given to the bibtex program.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".