![](/img/trans.png)
[英]How to print unsupported unicode characters on Windows cmd as e.g. “?” instead of raising exception?
[英]Convert string with unicode characters e.g. →,∧,¬ into strings illustrated in latex?
他們是python中的一種方式或方法,它能夠將邏輯符號作為unicode字符出現的字符串轉換為乳膠代碼:
方法:
str1 = '¬q→ ¬p→q'
進入
str1_tex = '$\neg q\rightarrow \neg p\rightharrow q'
或者
str2 = 'q∧ q'
進入
str2_tex = '$q \wedge q$'
這是可能的。 查看以下存儲庫: https ://github.com/mennucc/unicode2latex
或者,您可以使用字典自己定義所有內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.