我如何告诉 org-mode 禁用逐字文本中的标题?

How do I tell org-mode to disable headings in verbatim text?

如何使 org 模式不将以星号开头的行解释为标题?我的组织模式文档中有一些逐字记录的文本。有些行以星号开头。 Org 模式将这些行解释为标题。我不要那个。

这是带有一些上下文的文本:



    * 20160721 Headline for July 21, 2016

    I created a git repository for rfc-tools.  It's in
    ~/Documents/rfc-tools.

    Renamed grep-rfc-index.sh to search-rfc-index.sh because it searches.
    That it uses grep is irrelevant.

    Wrote a README.md for the project.  Here it is:

    #+BEGIN_SRC text
    ----- BEGIN QUOTED TEXT -----
    This is the README.md for rfc-tools, a collection of programs for
    processing IETF RFCs.

    * fetch-rfcs-by-title.sh downloads into the current directory the RFCs
      whose titles contain the string given on the command line.  Uses an
      rfc-index file in the current directory.  Prefers the PDF version of
      RFCs but will obtain the text version if the PDF is not available.

    * fetch-sip-rfcs.sh downloads RFCs that contain "Session Initiation"
      in their titles into the current directory.

    * search-rfc-index.sh searches an rfc-index file in the current
      directory for the string given on the command line.  The string can
      contain spaces.

    * join-titles.awk turns the contents of an rfc-index file into a
      series of long lines.  Each line begins with the RFC number, then a
      space, then the rest of the entry from the rfc-index.
    ----- END QUOTED TEXT -----
    #+END_SRC


我希望“----- BEGIN QUOTED TEXT -----”和“----- END QUOTED TEXT -----”之间的行是纯文本并从属于标题“2016 年 7 月 21 日的 20160721 标题”。 Org 模式将所有以星号开头的行解释为 top-level 个标题。

顺便说一下,逐字文本是Markdown。我希望这没关系。

尝试将您的文本包装在各种特殊块标记之一中。例如,您可以尝试将文本放在这些标签内:

#+BEGIN_SRC text

...

#+END_SRC 

下面是我的 Emacs 格式化结果的截图:

如果这不能满足您的需求,您可以尝试:

 #+BEGIN_EXAMPLE

 ...

 #+END_EXAMPLE

这将在没有标记的情况下以等宽字体呈现标签内的所有内容。

如果这也不起作用,您可以尝试列出的其他类型的标签之一 here

用这样的逗号转义 *

可能如果您键入 C-c ' 进入特殊编辑然后退出,org 会为您完成。

我认为答案是"You can't do that"。我找到了一种使用抽屉解决问题的方法。 org-mode manual 解释说抽屉是放置您不想一直看到的文本的地方。

StackExchange 用户有关于 getting a custom org drawer to open/close。似乎对于旧版本的 org-mode,您必须告诉 org-mode 您抽屉的名称。例如。如果您有一个名为 "COMMANDS"

的抽屉
:COMMANDS:
ls
cat
grep
:END:

您必须使用 +DRAWERS 关键字告诉 org-mode 抽屉的名称:

#+DRAWERS COMMAND

并重新启动组织模式。

对我有用:

    #+BEGIN_SRC markdown