Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use delimiters other than ( and ) #38

Open
muzimuzhi opened this issue Jun 4, 2023 · 1 comment
Open

Use delimiters other than ( and ) #38

muzimuzhi opened this issue Jun 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@muzimuzhi
Copy link
Owner

see https://tex.stackexchange.com/a/687473

@muzimuzhi muzimuzhi added the bug Something isn't working label Jun 4, 2023
@muzimuzhi
Copy link
Owner Author

muzimuzhi commented Jun 4, 2023

I'm considering

diff --git a/source/thm-amsthm.dtx b/source/thm-amsthm.dtx
index b45a6c2..126131e 100644
--- a/source/thm-amsthm.dtx
+++ b/source/thm-amsthm.dtx
@@ -59,7 +59,9 @@
   \thmt@style@headstyle{%
     \def\NAME{\the\thm@headfont ##1}%
     \def\NUMBER{\bgroup\@upn{##2}\egroup}%
-    \def\NOTE{\if=##3=\else\bgroup\thmt@space\the\thm@notefont(##3)\egroup\fi}%
+    \def\NOTE{\if=##3=\else
+      \bgroup\thmt@space\the\thm@notefont
+      \thmt@note@begmark##3\thmt@note@endmark\egroup\fi}%
   }%
   \def\thmt@tmp{#1}%
   \@onelevel@sanitize\thmt@tmp
@@ -87,7 +89,7 @@



-\def\thmt@embrace#1#2(#3){#1#3#2}
+\def\thmt@embrace#1#2\thmt@note@begmark#3\thmt@note@endmark{#1#3#2}

 \def\thmt@declaretheoremstyle@setup{%
   \let\thmt@style@notebraces\@empty%

Moreover, it seems \thmt@note@begmark is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant