make author acronym available

This commit is contained in:
Maximilian Keßler 2022-01-11 21:23:13 +01:00
parent c8deda5af8
commit 75a2b137ec

View file

@ -8,6 +8,7 @@ def make_default_macros(formatter: PyTeX.formatter.TexFormatter, latex_file_type
formatter.add_replacement('{Type} prefix'.format(Type=latex_file_type), '{}', PyTeX.base.Attributes.prefix) formatter.add_replacement('{Type} prefix'.format(Type=latex_file_type), '{}', PyTeX.base.Attributes.prefix)
formatter.add_replacement('date', '{}', PyTeX.base.Attributes.date) formatter.add_replacement('date', '{}', PyTeX.base.Attributes.date)
formatter.add_replacement('author', '{}', PyTeX.base.Attributes.author) formatter.add_replacement('author', '{}', PyTeX.base.Attributes.author)
formatter.add_replacement('author acronym', '{}', PyTeX.base.Attributes.author_acronym)
formatter.add_arg_replacement(1, 'info', r'\{Type}Info{{{name}}}{{{info}}}', formatter.add_arg_replacement(1, 'info', r'\{Type}Info{{{name}}}{{{info}}}',
name=PyTeX.base.Attributes.name_lowercase, name=PyTeX.base.Attributes.name_lowercase,
info=PyTeX.base.Args.one, Type=latex_file_type.capitalize()) info=PyTeX.base.Args.one, Type=latex_file_type.capitalize())