将table转换成html时提示: table not found here.

使用命令 M-x table-capture 将一段文本做成table,

0,A,B,C

1,1a,1b,1c

2,2a,2b,2c

3,3a,3b,3c

捕获

再使用 M-x table-generate-source 期望将table转成html或者其他格式,但是遇到报错: table not found here.

如果使用 C-c C-e h h 就能转成相应的html格式。

为啥table.el里面的 table-generate-source 不能识别当前的table呢?

谢谢

找到原因了。原来是要将光标放在table内,才能识别。

The table can be converted to latex or html. Put the cursor inside the table and type M-x table-generate-source. Note that this command operates on an “activated” ascii table (use first M-x table-recognize if the table is not in an activated state). After a few questions, the code will be generated in another buffer. Unfortunatly, I don’t know how to edit html in the wiki. Here is the raw code. https://www.emacswiki.org/emacs/TableMode