DATATOOL2BIB(1)

πŸ“¦ version 2026.0, in alpine 3.24

πŸ’– DATATOOL2BIB(1) β€” bestie edition πŸ’–

okay so bestie, this is the datatool2bib manual page, section 1, and it's giving converter energy πŸ’… like, we're taking datatool databases and making them into something bib2gls can snack on. no cap.


✨ SYNOPSIS ✨

datatool2bib [option]+ in-file bibfile

so yeah: one or more options, an input file, and an output bibfile. slay πŸŽ€


🌸 DESCRIPTION 🌸

It converts a .tex file containing datatool.sty databases into a .bib file in the format required for bib2gls. It's distributed with bib2gls, bestie 🫢

The TeX Parser Library is what parses the input, which may be a DTLTEX or DBTEX file or a file that contains database construction commands, such as \DTLnewdb or \DTLaction. The input file may also be a CSV file if it's used with --read πŸ‘‘

The datatool and datagidx are automatically implemented, so the input file does not need to include either of them with \usepackage. In general, it's best not to include the entire document but instead input a file that just contains the database construction commands, because the TeX Parser Library only has a limited set of commands that it recognises. lowkey important πŸ’€


πŸŽ€ OPTIONS πŸŽ€

πŸ’… GENERAL OPTIONS πŸ’…

  • --help, -h β€” display the help message and exit. iconic.
  • --version, -v β€” display version information and exit.
  • --silent, --quiet, -q β€” suppress all messages except for errors. quiet queen behaviour.
  • --verbose β€” switch on verbose mode.
  • --no-verbose β€” switch off verbose mode.
  • --debug [n] β€” display debugging messages.
  • --debug-mode setting β€” may be used instead of --debug where the level number is difficult to remember. Value same as for bib2gls's --debug-mode option.
  • --no-debug β€” switch off debugging mode. Equivalent to --debug 0.
  • --log-file filename β€” log messages to the given file. Intended primarily for debugging messages, so enabling debug mode will automatically create a transcript file, but otherwise a file won't be created unless this option is used. very "keep receipts" of you 🧾

πŸ¦‹ ENCOSING AND LOCALISATION OPTIONS πŸ¦‹

  • --texenc name β€” set the character encoding to name for the input .tex files.
  • --bibenc name β€” set the character encoding to name for the output .bib files.
  • --locale lang tag β€” use the language resource files associated with the given language tag lang tag. If there isn't an appropriate file, the en (English) file will be used.

πŸ“ FILTERING OPTIONS πŸ“

  • --preamble-only, -p β€” only parse the document preamble. That is, stop parsing if \begin{document} is encountered.
  • --no-preamble-only β€” parse the entire document (default).
  • --ignore-fields list, -f list β€” ignore all the fields in the comma-separated list. Each item in the list should identify the field by its original case-sensitive column key. This option is cumulative.
  • --no-ignore-fields β€” cancels the effect of --ignore-fields.
  • --skip-datagidx β€” skip the special datagidx internal database. (Default.)
  • --no-skip-datagidx β€” don't skip the special datagidx internal database.

🌈 OUTPUT FILE OPTIONS 🌈

  • --overwrite β€” overwrite existing .bib files.
  • --no-overwrite β€” don't overwrite existing .bib files.
  • --split β€” split the entries into separate files according to the database.
  • --no-split β€” don't split the entries into separate files (default).

πŸ‘‘ ADJUSTMENT OPTIONS πŸ‘‘

  • --space-sub value, -s value β€” substitute spaces in labels with value.
  • --field-map mappings, -m mappings β€” add source column key to destination field label mappings. The argument should be a comma-separated list of col-key=bib-field pairs. This option is cumulative.
  • --no-field-map β€” cancels all mappings applied with --field-map.
  • --index-conversion, -i β€” any entries that would normally be converted to @entry that don't have a description field will be converted to @index.
  • --no-index-conversion β€” don't replace @entry with @index if the description is missing (default).
  • --detect-symbols β€” attempt to detect entries that should be @symbol or @number based on the value of the name field.
  • --no-detect-symbols β€” don't attempt symbol detection (default).
  • --label col-key, -L β€” use the column identified by col-key for the entry label. The default column key is Label, so if the database doesn't have a column with this key, you will either need to specify a column with --label or use --auto-label. This option is ignored with --auto-label.
  • --auto-label, -a β€” auto-generate entry labels instead of using a column value.
  • --no-auto-label β€” don't auto-generate entry labels. Use the column identified by --label for the entry label. (Default.)
  • --auto-label-prefix prefix β€” use prefix when auto-generating entry labels. Ignored with --no-auto-label.
  • --adjust-gls β€” adjust labels in commands like \gls in field values. (Default.) This will also replace the datagidx.sty commands like \glsnl with the closest glossaries.sty equivalent.
  • --no-adjust-gls β€” don't adjust labels in commands like \gls in field values.
  • --dependency-field field-name β€” sets the name of the dependency field. Has no effect with --no-strip-glsadd. With --strip-glsadd, the label from the stripped \glsadd argument will be added to the field identified by field-name. The default is dependency, which will be ignored by bib2gls unless instructed otherwise (via field aliasing etc).
  • --no-dependency-field β€” don't save labels from any stripped \glsadd instances.
  • --strip β€” switch on all strip options.
  • --no-strip β€” switch off all strip options.
  • --strip-glsadd β€” strip \glsadd and its argument from field values. (Default.)
  • --no-strip-glsadd β€” don't strip \glsadd from field values.
  • --strip-acronym-font β€” strip \acronymfont from field values. (Default.)
  • --no-strip-acronym-font β€” don't strip \acronymfont from field values.
  • --strip-acronym-text β€” strip text field for acronyms identified by \newacro. (Default.)
  • --no-strip-acronym-text β€” don't strip text field for acronyms.
  • --strip-acronym-name β€” strip name field for acronyms identified by \newacro. (Default.)
  • --no-strip-acronym-name β€” don't strip name field for acronyms.
  • --strip-case-change β€” strip known case-changing commands (such as \makefirstuc or \capitalisewords) from field values.
  • --nostrip-case-change β€” don't strip case-changing commands. (Default.) yep, that spelling is exactly what it is, bestie.

🌟 OTHER OPTIONS 🌟

These options correspond to features introduced to datatool.sty version 3.0, which has a setting that stores the numeric value and currency symbol (where applicable) when parsing data. The original string (formatted number), numeric value and currency symbol are stored in a special datum format, which ordinarily expands to its original formatted text but also allows the previously parsed information to be easily extracted without having to reparse the data. it's giving glow-up for data ✨

  • --setup options β€” implement "\DTLsetup{"options"}" at the start. This can include options such as "store-datum", "new-value-expand", "new-value-trim" and "default-name".
  • --read options β€” instead of simply parsing the input file as a normal .tex file, the source is presented to the TeX parser as "\DTLread["options"]{"in-file"}" where the options can be used to specify the file format (for example, "format=tsv").

If the options list is empty (after trimming white space) then this becomes equivalent to --no-read.

  • --no-read β€” the input file is parsed as a normal .tex file, which may be the complete document or a file that can be "\input" into a document. (Default.)
  • --save-value suffix β€” if a field value is parsed and identified as numeric, the unformatted numeric value will be saved in a field whose name is constructed from the original field name followed by the given suffix.
  • --no-save-value β€” don't save numeric value in a separate field. (Default.)
  • --save-currency suffix β€” if a field value is parsed and identified as currency data, the currency symbol will be saved in a field whose name is constructed from the original field name followed by the given suffix.
  • --no-save-currency β€” don't save currency symbol in a separate field. (Default.)
  • --save-datum β€” equivalent to:
--save-value '-value' --save-currency '-currency'
  • --no-save-datum β€” equivalent to --no-save-value --no-save-currency.

🧚 REQUIRES 🧚

Java 8 and a TeX distribution. periodt.


πŸŽ€ LICENSE πŸŽ€

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


The bib2gls manual:

texdoc bib2gls

The glossaries-extra manual:

texdoc glossaries-extra

The glossaries manual:

texdoc glossaries

The datatool manual:

texdoc datatool

πŸ’– AUTHOR πŸ’–

Nicola L. C. Talbot, <https://www.dickimaw-books.com/> πŸ’…


okay that's the whole page, bestie 🫢 this was DATATOOL2BIB(1), brought to you by perl v5.40.0 and dated 2024-12-21 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from