![]() |
Bibliographies | ![]() |
The following macros may be used in the main text for citations to entries in a bibliographic database.
Each argument ref-i is the key of a bibliographic reference: an entry of the BibTEX file of the bibliography, of the bibliographic database, or of Zotero. The citations are displayed in the same way as they are referenced in the bibliography and they also provide hyperlinks to the corresponding references. The citations are displayed as question marks if you did not generate the bibliography. Pressing ⇥ inside the arguments completes the key, and ⌃⇥ opens a window which searches the references (see Compiling a bibliography).
Similar as cite, but the citations are not displayed in the main text: a small flag marks them on the screen. The key * puts all the references of the BibTEX file into the bibliography.
A bibliographic reference ref like cite and nocite, but with some additional information info, like a chapter or a page number.
The citations of cite, without the brackets of render-cite.
A sentence which says that the document was written with TeXmacs, citing references about TeXmacs (Cite TeXmacs). These references come with TeXmacs, and need no BibTEX file.
A document may have several bibliographies, each one of which collects the citations made with its own prefix:
The citations of body go into the bibliography with the prefix bib (see Multiple extractions).
bib-prefix
The prefix of the bibliography into which the citations go (bib by default); with-bib changes it locally.
The following macros may be redefined if you want to customize the rendering of citations or entries in the generated bibliography:
Macro for rendering a citation body at the place where the citation is made using cite. The body may be a single reference, like “TM98”, or a list of references, like “Euler1, Gauss2”. By default, it puts the citations between square brackets.
Similar to render-cite, but for detailed citations made with cite-detail.
The separator between the references of a citation with several keys (a comma and a space by default).
The rendering of one key in a citation: the reference to the corresponding item of the bibliography.
The generated bibliography is a list of bibliographic items, based on macros which come from LaTeX (bibitem, newblock, protect, etc.), whether it was produced by the styles of TeXmacs (whose names start with tm-) or by BibTEX. These macros are all defined internally in TeXmacs and eventually boil down to calls of the render-bibitem, which behaves in a similar way as item*, and which may be redefined by the user.
The transform-bibitem is used to “decorate” the content. For instance, transform-bibitem may put angular brackets and a space around content.
The start of an item of the bibliography, with the label label (such as “1” or “Knu84”): bibitem also makes the target of the citations of the key label, bibitem-with-key that of the citations of key, and bibitem* none.
The individual “bibitems” are enclosed in a bib-list, which behaves in a similar way as the description environment, except that we provide an extra parameter largest which contains a good indication about the largest width of an item in the list.
The minimal width of the labels of the items (3em by default), and the space between a label and its item.
Macros of LaTeX found in the generated bibliographies: the first two produce nothing, and citeauthoryear shows its two arguments.
The package cite-author-year, added to the document when a bibliography style cites by authors and years (natbib), offers the citations of the natbib package of LaTeX. The macros below take keys as arguments; their variants with a star (such as cite-textual*) use the full list of the authors instead of an abbreviated one.
Textual citations, such as “Einstein (1905)”.
Parenthesized citations, such as “(Einstein, 1905)”.
The authors or the year of a reference alone, without or with a link to the bibliography.
The package cite-sort sorts the references of each citation by their labels, and joins consecutive numbers into a range (“[1–3]”).