https://github.com/mooerslab/acronymstex2yaml
Python script to convert acronyms.tex into acronym.yml for use with R's acronymsdown package.
https://github.com/mooerslab/acronymstex2yaml
Last synced: 3 months ago
JSON representation
Python script to convert acronyms.tex into acronym.yml for use with R's acronymsdown package.
- Host: GitHub
- URL: https://github.com/mooerslab/acronymstex2yaml
- Owner: MooersLab
- License: mit
- Created: 2024-11-01T12:21:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T23:06:04.000Z (over 1 year ago)
- Last Synced: 2025-10-25T01:55:12.213Z (8 months ago)
- Language: TeX
- Size: 369 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://opensource.org/licenses/MIT)
# Convert acronyms.tex to acronyms.yml
This script converts acronyms from the LaTeX glossaries package format to the YAML
format for use in R Markdown and with the acronymsdown R package.
The output file is not true YAML format because dashed lines flank it.
It is a RMarkdown file.
The script reads an input file containing multiple acronyms in the LaTeX format,
converts them, and writes the output to a specified yml file.
The conversion is not an exact match in terms of whitespacing compared to the
examples given on the GitHub site for acronymsdown, but the output file is
read correctly.
Usage:
python acr2yaml.py
Example:
`python acr2yaml.py ~/glossaries/acronyms.tex acronyms.yml`
Example input and output files have been supplied above.
## Status
It works with Python 3.12.
## Update history
|Version | Changes | Date |
|:------------|:------------------------------------------------------------------------------------------------------------------------------------------|:---------------------|
| Version 0.1 | Added badges, funding, and update table. Initial commit. | 2024 November 1 |
## Sources of funding
- NIH: R01 CA242845
- NIH: R01 AI088011
- NIH: P30 CA225520 (PI: R. Mannel)
- NIH: P20 GM103640 and P30 GM145423 (PI: A. West)