Skip to content

Commit

Permalink
Refactor bibtex_to_table.py to print the taxonomy and markdown table
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou committed Apr 10, 2024
1 parent df4ff69 commit 4ede81f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bibtex_to_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4ede81f

Please sign in to comment.