【问题标题】:How do you remove numbering from headers when exporting from org-mode?从 org-mode 导出时如何从标题中删除编号?
【发布时间】:2012-02-23 22:24:37
【问题描述】:

基本的组织模式头文件

* Heading
** Sub-heading
* Another Heading

像这样转换成html

  1. 标题

    1.2 小标题

  2. 另一个标题

(但想象它们更大,并且采用 h1 h2 字体和大小)。如何关闭此功能以使输出 html 中的标题不编号?

【问题讨论】:

    标签: emacs org-mode


    【解决方案1】:

    Oleg 的回答允许您始终禁用所有导出的部分编号。但是,如果您只想在导出单个文件时禁用编号,则可以使用以下命令:

    #+OPTIONS: num:nil
    

    如果您想将其限制在某个深度,您可以将 nil 替换为一个整数,指定您希望数字显示到哪个标题。例如#+options: num:1 会将您的样本变成:

    1. Heading
    
       Sub-Heading
    
    2. Another Heading
    

    请参阅Export Setting 了解详细信息和其他可以按文件设置的导出选项。
    有关 HTML 特定的内容,请参阅 HTML Specific Settings

    【讨论】:

      【解决方案2】:

      您可以自定义组织模式。

      M-x customize-mode
      
      org-mode
      

      然后您选择 Org Export/Org Export General/Org Export With Section Numbers

      或者将以下内容放入您的 .emacs 中

      (setq org-export-with-section-numbers nil)
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-11-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-11-02
        • 1970-01-01
        相关资源
        最近更新 更多