LaTeXML...:BibTeX(3)

πŸ“¦ version 0.8.8, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, you're on the LaTeXML...:BibTeX(3) page β€” yes, a User Contributed Perl Documentation moment β€” and here's the name tea: "LaTeXML::Pre::BibTeX" β€” implements a BibTeX parser for LaTeXML. Periodt. ✨

✨ DESCRIPTION ✨

okay so "LaTeXML::Pre::BibTeX" is your low-level parser bestie for BibTeX database files. It parses and stores a LaTeXML::Pre::BibTeX::Entry for each entry into the current STATE. BibTeX "string" macros get substituted into the field values, but no other processing of the data is done β€” that's important, no extra glow-ups here. See "LaTeXML::Package::BibTeX.pool.ltxml" for how further processing is carried out, and how it can be customized. πŸ‘‘

πŸŽ€ Creating a BibTeX πŸŽ€

  • my $bib = LaTeXML::Pre::BibTeX->newFromFile($bibname); β€” Creates a LaTeXML::Pre::BibTeX object representing a bibliography from a BibTeX database file. iconic.
  • my $bib = LaTeXML::Pre::BibTeX->newFromString($string); β€” Creates a LaTeXML::Pre::BibTeX object representing a bibliography from a string containing the BibTeX data. slay.

πŸ› οΈ Methods πŸ› οΈ

  • $string = $bib->toTeX; β€” Returns a string containing the TeX code to be digested by a LaTeXML object to process the bibliography. The string contains all @PREAMBLE data and invocations of "\\ProcessBibTeXEntry{$key}" for each bibliographic entry. The $key can be used to lookup the data from $STATE as LookupValue('BIBITEM@'.$key). See "BibTeX.pool" for how the processing is carried out. no cap, that's the whole method.

πŸ“š BibEntry objects πŸ“š

The representation of a BibTeX entry. That's the vibe.

  • $type = $bibentry->getType; β€” Returns a string naming the entry type of the entry (No aliasing is done here).
  • $key = $bibentry->getKey; β€” Returns the bibliographic key for the entry.
  • @fields = $bibentry->getFields; β€” Returns a list of pairs [$name,$value] representing all fields, in the order defined, for the entry. Both the $name and $value are strings. Field names may be repeated, if they are in the bibliography.
  • $value = $bibentry->getField($name); β€” Returns the value (or undef) associated with the the given field name. If the field was repeated in the bibliography, only the last one is returned. yes bestie, only the last one.

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Miller <bruce.miller@nist.gov> β€” the icon behind this. 🫢

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. fr fr, that's the legal tea. πŸ’œ


catch u later, bestie πŸŽ€ β€” this cute little footer moment is brought to you by perl v5.42.3, dated 2024-02-26, on the LaTeXML...:BibTeX(3) page. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from