WikiToLearn/texla

Name: texla

Owner: WikiToLearn

Description: A minimal and easily extensible LaTeX parser.

Created: 2016-02-15 16:59:45.0

Updated: 2018-03-24 08:55:44.0

Pushed: 2018-03-24 08:55:44.0

Homepage: null

Size: 1945

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

texla

A minimal and easily extensible LaTeX parser.

It's minimal because it only splits tex without doing anything strange to the sources. It breaks down LaTeX into sections, environments, math, commands and plain text, creating a simple tree of Blocks objects.

It's easily extensible because to support a new command or environment the only necessary code is a Python class that defines a new Block. Moreover options and arguments of Latex commands and environments could be parsed with a simple and easy API.

Further documentation can be found at: https://meta.wikitolearn.org/Texla

Install Texla

You can use Texla from source or install it from PyPi.

pip install texla

The command texla will be available globally.

Run Texla

Just put a configs.yaml in your working directory and run texla from the command line. A --debug option is available for a more verbose output.

texla
texla --debug

Texla Configuration

The execution of texla is controlled by the configs.yaml file.

There are a few parameters to set:

Plugins

The available plugins are:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.