mode: Verbatim Environments

Say I would like to have some text in a verbatim environment in org-mode where table shortcuts are disabled.

For example, consider the following text:

|-- 05102013
|   |-- 1826
|   |-- 6500
|   |-- 6501
|   |-- 6502
|   |-- 6503
|   `-- readme

If I put it within an EXAMPLE literal folder:

#+BEGIN_EXAMPLE
|-- 05102013
|   |-- 1826
|   |-- 6500
|   |-- 6501
|   |-- 6502
|   |-- 6503
|   `-- readme
#+END_EXAMPLE

and I accidentally press <TAB> on any line in the text above. org-mode automatically re-organizes the text to make it look like a table:

|------------+---------|
|            | -- 1826 |
|            | -- 6500 |
|            | -- 6501 |
|            | -- 6502 |
|            | -- 6503 |
| `-- readme |         |

which I don't want. Does org-mode provide any environments or blocks in which the automatic table-creation mechanism is disabled?


You can wrap your text in a source block like this:

#+begin_src text
  |-- 05102013
  |   |-- 1826
  |   |-- 6500
  |   |-- 6501
  |   |-- 502
  |   |-- 6503
  |   `-- readme
#+end_src

TAB inside the block will not reformat your text as a table, but will insert spaces to the next tab stop.

If this still annoys you, you may try c instead of text , where TAB will try (and fail) to auto indent instead of adding spaces.


除了指定的语言是“基本的”(而不是“文本”)之外,我会提出和胡安乔一样的东西,所以(几乎)什么都不会发生。


You can use both Juancho or fniessen suggest, however you can use example environments if you use Cc ' first to edit the content of the block rather than directly within the org buffer. Example environments are opened as fundamental buffers as well.

链接地址: http://www.djcxy.com/p/61874.html

上一篇: 组织模式包括标题

下一篇: 模式:逐字环境