DATATOOL2BIB(1)
π 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--debugwhere the level number is difficult to remember. Value same as forbib2gls's--debug-modeoption.--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 tonamefor the input.texfiles.--bibenc nameβ set the character encoding tonamefor the output.bibfiles.--locale lang tagβ use the language resource files associated with the given language taglang tag. If there isn't an appropriate file, theen(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-separatedlist. 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 specialdatagidxinternal database. (Default.)--no-skip-datagidxβ don't skip the specialdatagidxinternal database.
π OUTPUT FILE OPTIONS π
--overwriteβ overwrite existing.bibfiles.--no-overwriteβ don't overwrite existing.bibfiles.--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 withvalue.--field-map mappings,-m mappingsβ add source column key to destination field label mappings. The argument should be a comma-separated list ofcol-key=bib-fieldpairs. 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@entrythat don't have a description field will be converted to@index.--no-index-conversionβ don't replace@entrywith@indexif the description is missing (default).--detect-symbolsβ attempt to detect entries that should be@symbolor@numberbased on the value of thenamefield.--no-detect-symbolsβ don't attempt symbol detection (default).--label col-key,-Lβ use the column identified bycol-keyfor the entry label. The default column key isLabel, so if the database doesn't have a column with this key, you will either need to specify a column with--labelor 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--labelfor the entry label. (Default.)--auto-label-prefix prefixβ useprefixwhen auto-generating entry labels. Ignored with--no-auto-label.--adjust-glsβ adjust labels in commands like\glsin field values. (Default.) This will also replace thedatagidx.stycommands like\glsnlwith the closestglossaries.styequivalent.--no-adjust-glsβ don't adjust labels in commands like\glsin 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\glsaddargument will be added to the field identified byfield-name. The default isdependency, which will be ignored bybib2glsunless instructed otherwise (via field aliasing etc).--no-dependency-fieldβ don't save labels from any stripped\glsaddinstances.--stripβ switch on all strip options.--no-stripβ switch off all strip options.--strip-glsaddβ strip\glsaddand its argument from field values. (Default.)--no-strip-glsaddβ don't strip\glsaddfrom field values.--strip-acronym-fontβ strip\acronymfontfrom field values. (Default.)--no-strip-acronym-fontβ don't strip\acronymfontfrom 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\makefirstucor\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.texfile, 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.texfile, 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 givensuffix.--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 givensuffix.--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.
π RECOMMENDED READING π
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
- alpine 3.24: texmf-dist-bibtexextra-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms