Skip to content

Commit 8becfb2

Browse files
committed
feat(renderer.py): add more tabular patterns
1 parent b1782b9 commit 8becfb2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

vrdu/renderer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,12 @@ def render_tabular(self, tex_file: str) -> None:
630630
"""
631631
with open(tex_file) as f:
632632
content = f.read()
633-
634-
pattern = r"\\begin{tabular}.*?\\end{tabular}"
633+
pattern = "|".join(
634+
[
635+
r"\\begin{0}.*?\\end{0}".format(tabular_env)
636+
for tabular_env in envs.tabular_envs
637+
]
638+
)
635639
result = self._render_float_envs(content, pattern, "Table")
636640

637641
with open(tex_file, "w") as f:

0 commit comments

Comments
 (0)