Org mode 下表格中含有 && 并输出成 html 的问题

Org mode下输入,

| A == 1 && B == 0 |   |   |
| A == 1 && B == 1 |   |   |

输出到 html,

可以看到, && 前后的字体发生了变化,而且 == 也变成了 =

请问这是什么原因呢,谢谢!

因为 = 之间是会被当作 plain text 处理

请在特殊符号前用反斜杠转义

=...= 被这样包含着有特殊含义?

试一下不就知道了

11.2 Emphasis and monospace

You can make words bold, /italic/, underlined, =verbatim= and ~code~, and, if you must, ‘+strike-through+’. Text in the code and verbatim string is not processed for Org mode specific syntax, it is exported verbatim.

To turn off fontification for marked up text, you can set org-fontify-emphasized-text to nil. To narrow down the list of available markup syntax, you can customize org-emphasis-alist. To fine tune what characters are allowed before and after the markup characters, you can tweak org-emphasis-regexp-components. Beware that changing one of the above variables will no take effect until you reload Org, for which you may need to restart Emacs. Escaping characters in Emacs org-mode - Stack Overflow The Org Manual

反斜杠转义无效,试过了。

我没什么经验,但 (org) LaTeX fragments 上说可以用 LaTeX 的公式的写法,这样一个 Org 文件

| $A == 1 && B == 0$ |
| $A == 1 && B == 1$ |

导出的 HTML 的效果(会用到 MathJax.js

一个办法是关闭=…=的特殊verbatim功能:

(setq org-emphasis-alist (quote (("*" bold) ("/" italic) 
                                               ;; ("=" org-verbatim verbatim)
                                              .........)