Skip to main content

A package to convert between a latex bib file and a tex file containing glossaries entries

Project description

bib2glossary

Build Status

This package is intended to allow for the storage and management of latex glossary terms in standard reference management packages (such as Zotero), by converting between .bib files and .tex files containing \newglossaryentry or \newacronym definitions.

To date the only other way to achieve this is via bib2gls. However, it implementation is somewhat complex, and the item types it uses are not supported by Zotero.

In bib2glossary, the user may override the default relationships between reference item fields and glossary term parameters, by supplying a JSON file, e.g.:

{
    "abbreviation": "abbrevfield"
}

The defaults are taken from the Dictionary Entry type in Zotero.

For \newacronym:

Parameter Field
misc @type
longname journal*
abbreviation shorttitle
description abstract
plural series
longplural isbn
firstplural address**

For \newglossaryentry:

Parameter Field
misc @type
name journal*
description abstract
plural series
symbol volume
text edition
sort publisher

* This shows as 'Dictionary Title' in Zotero

** This shows as 'Place' in Zotero

[Note: The title field is not used, since it is usely used to generate the key.]

Installation

>> pip install bib2glossary

Usage

Conversion of \newacronym:

>> bib2acronym --help
>> bib2acronym path/to/file.bib --entry-type misc --param2field path/to/file.json

or

>> acronym2bib --help
>> acronym2bib path/to/file.tex --entry-type misc --param2field path/to/file.json

Conversion of \newglossaryentry:

>> bib2glossary --help
>> bib2glossary path/to/file.bib --entry-type misc --param2field path/to/file.json

or

>> glossary2bib --help
>> glossary2bib path/to/file.tex --entry-type misc --param2field path/to/file.json

Implementation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bib2glossary-0.1.1-py2.py3-none-any.whl (16.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bib2glossary-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bib2glossary-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

File hashes

Hashes for bib2glossary-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d960b5bee28c4c369c1da289aefd8f6b6e4aa3cf974b3965b382a45b35d529a0
MD5 bffae0f1a5d2ede94f21e61d5da9a954
BLAKE2b-256 cf77e1e95dbdb439b54526d6e1fe2791b3b777dee813cf6d61463f40ca466518

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page