How do I tag a table in org-mode?

微笑、不失礼 提交于 2019-12-11 12:06:17

问题


I've got a huge table for R which should not be exported. So I added a #TAGS: noexport above the table, but that doesn't seem to have any effect. So how do I tag a table?


回答1:


You cannot add tags to a table, only to a header.

Also, the #+TAGS directive is used to declare a group of tags specific to the whole document, not for tagging a table.

If you surround the table within a comment block, it will not be exported. For example:

#+begin_comment

#+tblname: very_long_table
| col1 | col2 |
|------+------|
| 1    | 22   |
| 2    | 23   |
| 3    | 24   |
| 4    | 25   |
| 5    | 26   |

#+end_comment

#+begin_src sh :var tbl=very_long_table :exports both
echo $tbl
#+end_src

#+RESULTS:
: 1 22 2 23 3 24 4 25 5 26


来源:https://stackoverflow.com/questions/15582469/how-do-i-tag-a-table-in-org-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!