Skip to content

Implementing a typesetting system for mathematical formulas using TeX algorithms and fonts inside Python without relying on an external TeX installation is a complex task

Notifications You must be signed in to change notification settings

Mehranalam/PyTex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PyTex

Implementing a typesetting system for mathematical formulas using TeX algorithms and fonts inside Python without relying on an external TeX installation is a complex task

output PyTex

Compiler

  • Compiler design part is completed, which you can see from the /compiler folder.
token_specification = [
        ('NUMBER',    r'\d+(\.\d*)?'),    # Integer or decimal number
        ('IDENT',     r'[A-Za-z]'),       # Identifiers (variables)
        ('OP',        r'[+\-*/^]'),       # Arithmetic operators
        ('FRAC',      r'\\frac'),         # Fraction
        ('LBRACE',    r'\{'),             # Left brace
        ('RBRACE',    r'\}'),             # Right brace
        ('WS',        r'\s+'),            # Whitespace
        ('MISMATCH',  r'.'),              # Any other character
    ]

About

Implementing a typesetting system for mathematical formulas using TeX algorithms and fonts inside Python without relying on an external TeX installation is a complex task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published