CONVERTGLS2BIB(1)
π CONVERTGLS2BIB(1) π
okay bestie, pull up a chair, because we're talking about convertgls2bib β a lil command-line icon that ships with bib2gls and honestly? she's the moment. π
β¨ SYNOPSIS β¨
convertgls2bib [option]+ texfile bibfile
πΈ DESCRIPTION πΈ
So here's the tea: convertgls2bib takes a .tex file that's got glossary definitions in it β you know, the ones written with commands like \newglossaryentry and \newacronym β and turns it into a .bib file in the format that bib2gls needs. That's it. That's the whole job. And she comes distributed with bib2gls, so if you already have that, you already have her. π
π¦ OPTIONS π¦
π GENERAL OPTIONS π
--help,-hβ shows you the help message and then dips. bye! π--version,-vβ shows off her version info and exits.--silent,--quiet,-qβ mutes everything except errors. she's giving "I'm not reading all that" energy. π--verboseβ turns verbose mode ON.--no-verboseβ turns verbose mode OFF.--debug [n]β spills the debugging messages.--debug-mode settingβ same vibe as--debug, but you use it when the level number is hard to remember. The value is the same as forbib2gls's--debug-modeoption.--no-debugβ switches debugging mode off. Equivalent to--debug 0. periodt.--log-file filenameβ logs messages to the file you name. Mainly intended for debugging messages, so turning debug mode on will automatically create a transcript file β but otherwise, no file gets created unless you actually use this option. no option, no file, that's the rule. π«Ά
π€ ENCOSING AND LOCALISATION OPTIONS π€
bestie, yes, "ENCOSING" β that's literally how the original spells it and we are NOT fixing her, she's perfect. π
--texenc nameβ sets the character encoding tonamefor the input.texfiles.--bibenc nameβ sets the character encoding tonamefor the output.bibfiles.--locale lang tagβ uses the language resource files for the given language taglang tag. And if there's no matching file? She falls back to theen(English) one. no cap. β¨
π FILTERING OPTIONS π
--preamble-only,-pβ only parses the document preamble, meaning she stops parsing the second she hits\begin{document}.--no-preamble-onlyβ parses the ENTIRE document (this is the default).--ignore-fields list,-f listβ ignores every field in the comma-separatedlist. If the list includessort,typeorcategory, she automatically implements the matching--ignore-sort,--ignore-typeor--ignore-categoryoption. Each item in the list should identify the field by its original case-sensitive key.
This option is cumulative. (she stacks, she doesn't replace π )
--no-ignore-fieldsβ cancels the effect of--ignore-fields.--ignore-categoryβ omits thecategoryfield. Default if--split-on-category.--no-ignore-categoryβ doesn't omit thecategoryfield. Default unless--split-on-category.--ignore-typeβ omits thetypefield. Default if--split-on-type.--no-ignore-typeβ doesn't omit thetypefield. Default unless--split-on-type.--ignore-sortβ ignores thesortfield (default).--no-ignore-sortβ doesn't ignore thesortfield.
π OUTPUT FILE OPTIONS π
--overwriteβ overwrites existing.bibfiles. Default unless--split-on-typeis used.--no-overwriteβ does NOT overwrite existing.bibfiles. Default if--split-on-typeis used.--split-on-type,-tβ splits the entries into separate files according to thetypefield. This option automatically implements--ignore-typeand--no-overwrite. she does a lil extra, she's helpful like that π§--no-split-on-typeβ doesn't split entries into separate files by thetypefield (default).--split-on-category,-cβ splits the entries into separate files according to thecategoryfield. This option automatically implements--ignore-categoryand--no-overwrite.--no-split-on-categoryβ doesn't split entries into separate files by thecategoryfield (default).
β ADJUSTMENT OPTIONS β
--absorb-seeβ absorbs\glsseeand\glsxtrindexseealsointo the data (default).--no-absorb-seeβ doesn't absorb\glsseeand\glsxtrindexseealsointo the data.--index-conversion,-iβ any entries that would normally get converted to@entrybut that don't have a description, or that have a description set to just\nopostdescor\glsxtrnopostpunc, will be converted to@indexinstead, and thedescriptionfield gets omitted.--no-index-conversionβ doesn't use@indexinstead of@entrywhen the description is empty or is just\nopostdescor\glsxtrnopostpunc(default).--space-sub value,-s valueβ substitutes spaces in labels withvalue.--field-map mappings,-m mappingsβ adds source key to destination field label mapping. The argument should be a comma-separated list ofsrc-field=dest-fieldpairs. This option is cumulative.
heads up bestie: the deprecated--key-mapis a synonym of--field-map.
--no-field-mapβ cancels ALL the mappings you applied with--field-map.
and the deprecated--no-key-mapis a synonym of--field-map. π
--internal-field-map mappingsβ adds the given mappings to the default set of internal field to key mappings. (Like, for example,descis the internal field label of thedescriptionkey.) This option is cumulative.
You only need this option if the internal field label is supplied in the argument of a command such as \glssetnoexpandfield.
π REQUIRES π
- Java 8
- a TeX distribution
like, both of them. she's not picky, but she does need both. π«Ά
π 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. π«‘ (that's the dramatic part β no warranty, bestie, not even a lil one)
π RECOMMENDED READING π
okay so if you wanna go deeper (and you should, she's fascinating), hit up these:
The bib2gls manual:
texdoc bib2gls
The glossaries-extra manual:
texdoc glossaries-extra
The glossaries manual:
texdoc glossaries
go read, bestie, it's giving study session and honestly I'm obsessed. β¨
π AUTHOR π
Nicola L. C. Talbot, <https://www.dickimaw-books.com/> β actual legend, we stan. π
and that's the whole page!! π she's running on perl v5.40.0 and dated 2024-12-08 β so yeah, this was convertgls2bib(1), thanks for coming to my ted talk, ily, go convert some glossaries. π¦β¨π
π¦ where this page comes from
- fedora 44: texlive-bib2gls 12:svn76845-105.fc44 Β· GPL-3.0-or-later
- fedora 44: texlive-bib2gls 12:svn76845-111.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms