Compare commits
3 Commits
d204eb19e1
...
ee4e98cfc2
Author | SHA1 | Date | |
---|---|---|---|
ee4e98cfc2 | |||
9a40119a19 | |||
f813932ab3 |
@ -11,7 +11,8 @@ import logging
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pytex
|
import pytex
|
||||||
from mapytex import Expression, Integer, Decimal
|
from mapytex import Expression, Integer, Decimal, Polynomial, render
|
||||||
|
import sympy
|
||||||
import bopytex.filters as filters
|
import bopytex.filters as filters
|
||||||
|
|
||||||
formatter = logging.Formatter("%(name)s :: %(levelname)s :: %(message)s")
|
formatter = logging.Formatter("%(name)s :: %(levelname)s :: %(message)s")
|
||||||
@ -24,13 +25,14 @@ logger.addHandler(steam_handler)
|
|||||||
|
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
Expression.set_render("tex")
|
render.set_render("tex")
|
||||||
logger.debug(f"Render for Expression is {Expression.RENDER}")
|
logger.debug(f"Render for Expression is {render.render}")
|
||||||
mapytex_tools = {
|
mapytex_tools = {
|
||||||
"Expression": Expression,
|
"Expression": Expression,
|
||||||
"Integer": Integer,
|
"Integer": Integer,
|
||||||
"Decimal": Decimal,
|
"Decimal": Decimal,
|
||||||
# "Polynom": mapytex.Polynom,
|
"Polynom": Polynomial,
|
||||||
|
"sympy": sympy,
|
||||||
# "Fraction": mapytex.Fraction,
|
# "Fraction": mapytex.Fraction,
|
||||||
# "Equation": mapytex.Equation,
|
# "Equation": mapytex.Equation,
|
||||||
# "random_str": mapytex.random_str,
|
# "random_str": mapytex.random_str,
|
||||||
@ -157,7 +159,7 @@ def crazy_feed(*args, **kwrds):
|
|||||||
|
|
||||||
|
|
||||||
def clean(directory):
|
def clean(directory):
|
||||||
pytex.clean(directory)
|
pytex.clean(directory, ["*.aux", "*.log", "*.out", "*.xsim", "*.tkzfonct.*"])
|
||||||
|
|
||||||
|
|
||||||
def texcompile(filename):
|
def texcompile(filename):
|
||||||
|
Loading…
Reference in New Issue
Block a user