Skip to content

Commit 88b8bc3

Browse files
Fix tikz-cd package LaTeX error caused by hyphen escaping (#9)
* fix: use NoEscape for tikz-cd package to prevent hyphen escaping Co-Authored-By: Oliver Ni <oliver.ni@gmail.com> * refactor: use Package(NoEscape(...)) instead of raw NoEscape usepackage Co-Authored-By: Oliver Ni <oliver.ni@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Oliver Ni <oliver.ni@gmail.com>
1 parent e7ac714 commit 88b8bc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bmt_discord_bot/cogs/math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def compile_source(self, output_path: Path, source: str):
9191
document.preamble.append(Package("enumerate"))
9292
document.preamble.append(Package("tikz"))
9393
document.preamble.append(NoEscape(r"\usetikzlibrary{calc}"))
94-
document.preamble.append(Package("tikz-cd"))
94+
document.preamble.append(Package(NoEscape("tikz-cd")))
9595
document.preamble.append(Package("arcs"))
9696
document.preamble.append(Package("physics"))
9797
try:

0 commit comments

Comments
 (0)