From 4ede81ffb046d062ea8e2a889c107c993f36b6bd Mon Sep 17 00:00:00 2001 From: XuhuiZhou Date: Wed, 10 Apr 2024 00:13:40 -0400 Subject: [PATCH] Refactor bibtex_to_table.py to print the taxonomy and markdown table --- bibtex_to_table.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bibtex_to_table.py b/bibtex_to_table.py index 3f2b7a4..1738112 100644 --- a/bibtex_to_table.py +++ b/bibtex_to_table.py @@ -117,9 +117,10 @@ def bibtex_to_table(bibtex: str, taxonomy: dict[str, list[str]]) -> str: with open(bibtex_file, "r") as f: bibtex_string = f.read() +print("taxonomy:") +print(taxonomy) output_file = "./docs/paper_table.md" markdown_table = bibtex_to_table(bibtex_string, taxonomy=taxonomy) -print(markdown_table) # Write the Markdown table to the output file with open(output_file, "w") as f: