Skip to content

Python script to convert LaTeX glossaries entries to Typst gloassarium entries

License

Notifications You must be signed in to change notification settings

MooersLab/latex-gloassaries-to-typst-gloassarium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version License: MIT

latex-gloassaries-to-typst-gloassarium

A nice introduction to Typst in October 2024 by Dr. Chase Brown of the University of Central Florida is found here.

Background

Python scripts to translate glossary entries for LaTeX's glossaries package to entries for the glossarium package of Typst. Insert the returned list of entries inside #let entry-list = ( ) in the glossary.typ file. This file is for the storage of gloassarium entries. It is imported into the main file's namespace with the function #import "glossary.typ": entry-list. This command is followed by the command #register-glossary(entry-list) that loads the entries. The acronym entries are written one per line to save space.

Usage

Run Python script in the same directory as the acronyms.tex file or edit the file path accordingly.

LaTeX has three kinds of glossaries: main glossary, acronyms, and mathematical notation. Examples are found in the glossaries folder.

Use the entries in the main text by entering #gls("entry key") in your prose. Set the show-all key to true to print all entries: #print-glossary(entry-list, show-all: true).

Below is a snapshot of part of the acronym list generated in the back matter of an annotated bibliography on the typst.app. The list had been translated from the acryonyms.tex file used with the glossaries package in LaTeX.

Screenshot 2024-10-26 at 8 35 56 AM

Status

Script for conversion of acronyms is ready.

Update history

Version Changes Date
Version 0.1 Added badges, funding, and update table. Initial commit. 2024 October 26

Sources of funding

  • NIH: R01 CA242845
  • NIH: R01 AI088011
  • NIH: P30 CA225520 (PI: R. Mannel)
  • NIH: P20 GM103640 and P30 GM145423 (PI: A. West)

About

Python script to convert LaTeX glossaries entries to Typst gloassarium entries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published