Skip to main content

A visitor for Mau that converts the AST into TeX

Project description

Mau TeX Visitor

This is a plugin for the Mau markup language. The plugin provides the conversion from Mau source to TeX.

You can install this plugin with

pip install mau-tex-visitor

and Mau will automatically be able to load it. To use the visitor you need to load it and to pass it to the class Mau when you instantiate it

from mau import Mau, load_visitors
from mau.message import LogMessageHandler

visitor_classes = load_visitors()

visitors = {i.format_code: i for i in visitor_classes.values()}
visitor_class = visitors["tex"]

message_handler = LogMessageHandler()

mau = Mau(message_handler)

result = mau.process(visitor_class, text, "source.mau")

The default extension for templates is .tex.

Project details


Download files

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

Source Distribution

mau_tex_visitor-3.0.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

mau_tex_visitor-3.0.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file mau_tex_visitor-3.0.0.tar.gz.

File metadata

  • Download URL: mau_tex_visitor-3.0.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for mau_tex_visitor-3.0.0.tar.gz
Algorithm Hash digest
SHA256 0226edf2c4d468a33d9e518ecc1d010aa7d7cbcef2a1a32b0f0a019e06177647
MD5 0296a5e436358233ab2ff4a283959863
BLAKE2b-256 2a1c0dbe022481c8283d9916fe196a12d069fa7922b395d42b3bbd907b995e06

See more details on using hashes here.

File details

Details for the file mau_tex_visitor-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mau_tex_visitor-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb915ea149cb2b3523566caa33a9863f2e289fefce7a6d79b7e24668c89a185c
MD5 4ff034d5d85cf0e310f6a03ba80dba82
BLAKE2b-256 ed69d3758652c6d3e0ce59c20f7b4425d5871e2a4de337ca00ee632ee4e590da

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