diff --git a/tests/test_packages/test_biblatex.py b/tests/test_packages/test_biblatex.py index c83c2bbd..9f56d642 100644 --- a/tests/test_packages/test_biblatex.py +++ b/tests/test_packages/test_biblatex.py @@ -16,6 +16,7 @@ def get_plain(latex): data_test_macros_python = [ (r'A\addbibresource{xxx}B', 'AB'), + (r'A\bibliography{xxx}B', 'AB'), (r'A\addbibresource[o]{xxx}B', 'AB'), (r'A\cite*{x}B', 'A[0]B'), (r'A\cite[p. 15]{x}B', 'A[0, p. 15]B'), diff --git a/yalafi/packages/biblatex.py b/yalafi/packages/biblatex.py index 8f39e559..2303d73e 100644 --- a/yalafi/packages/biblatex.py +++ b/yalafi/packages/biblatex.py @@ -22,6 +22,7 @@ def init_module(parser, options, position): macros_python = [ Macro(parms, '\\addbibresource', args='OA', repl=''), + Macro(parms, '\\bibliography', args='OA', repl=''), Macro(parms, '\\cite', args='*OOA', repl=h_cite), Macro(parms, '\\Cite', args='*OOA', repl=h_cite), Macro(parms, '\\footcite', args='*OOA', repl=h_footcite),