add default macro file (forgotten earlier)
This commit is contained in:
parent
3e6f2f99c3
commit
8a6bfef421
1 changed files with 18 additions and 0 deletions
18
PyTeX/format/default_macros.py
Normal file
18
PyTeX/format/default_macros.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
from .macros import *
|
||||||
|
|
||||||
|
|
||||||
|
def make_simple_macro(name: str, arg):
|
||||||
|
return SimpleMacro(
|
||||||
|
name,
|
||||||
|
MacroReplacement(
|
||||||
|
'%s',
|
||||||
|
arg
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def get_default_macros():
|
||||||
|
return [
|
||||||
|
make_simple_macro('!', FormatterProperty.file_prefix),
|
||||||
|
make_simple_macro('name', FormatterProperty.name)
|
||||||
|
]
|
Loading…
Reference in a new issue