GithubHelp home page GithubHelp logo

chrisjsewell / bib2glossary Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 53 KB

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

License: GNU General Public License v3.0

Python 97.24% Shell 0.28% TeX 2.48%
latex bibtex biblatex glossaries

bib2glossary's Introduction

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

bib2glossary's People

Contributors

chrisjsewell avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.