从 org-mode 中导出 effort 和 clocksum?

7

我正在使用 org-mode 跟踪项目,效果不错。我已经安排好所有工作块的计划,任务已经估算并且时间已被跟踪。

我每周会导出一次文件给其他人查看,但我无法在导出的文件中显示努力程度和 CLOCKSUM。

该怎么做呢?

1个回答

9
你可以选择以下两种方式之一:

  • Set org-export-with-drawers to t. This will export the drawer properties below the header. It's exported as an example block, so if you want it to have it's own class for CSS selection, you'll have to define your own org-export-format-drawer function. I use the following configuration:

    (setq org-export-with-drawers t)
    
    (defun jbd-org-export-format-drawer (name content)
      "Export drawers to drawer HTML class."
      (setq content (org-remove-indentation content))
      (format "@<div class=\"drawer\">%s@</div>\n" content))
    
    (setq org-export-format-drawer-function 'jbd-org-export-format-drawer)
    
  • 您可以使用动态块来捕获列视图,只需键入C-c C-x i即可。这将插入一个表格,显示可以在#+BEGIN:行上键入C-c C-c更新的列视图。

实际上我正在为当前项目使用两种方法。


注意,它不适用于属性:"此变量不适用于属性抽屉。请参阅 'org-export-with-properties'。" - Joe Corneli
今天对我不起作用 :( : Emacs版本:GNU Emacs 26.2(构建2,x86_64-pc-linux-gnu,GTK+版本3.22.30) :2019-04-12 :org版本:9.2.3 - Reb.Cabin

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接