Skip to content

Commit be03c56

Browse files
committed
feat(renderer.py): add tabularx, tabulary
1 parent d07415b commit be03c56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vrdu/renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def render_tabular(self, tex_file: str) -> None:
630630
"""
631631
with open(tex_file) as f:
632632
content = f.read()
633-
pattern = r"\\begin{tabular}.*?\\end{tabular}"
633+
pattern = r"\\begin{(tabular[*xy]?)}.*?\\end{\1}"
634634
result = self._render_float_envs(content, pattern, "Table")
635635

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

0 commit comments

Comments
 (0)