在组织模式下,当您导出HTML项目时,您可以使用模板为所有导出的页面提供相同的选项,这里描述http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html。我想要做的是给所有导出的页面一个HTML代码片段,用于分析,这不是一个选项。这可能与org模板?现在在组织模式模板中包含直接HTML代码
,我试图文字HTML代码添加到基本模板level-0-template.org
与
#begin_html
...
#end_html
,但没有成功。有谁知道如何将html代码添加到项目中导出的每个HTML文件?
|- org
|- index.org
|- html
|- index.html (this is exported)
|- templates
|- level-0.org (I'd like to include default html here)
|- org_publish.el (this is the publishing config file)
你在哪里试图包含文字HTML代码?一个更完整的设置示例可以更容易地看到需要什么。 – 2012-03-29 12:14:15
您是否在使用'#+ setupfile:/level-0.org'包含'level-0.org'?如果您尝试将其更改为'#+包含:/level-0.org'。 (如果那是你想要的,我将提供作为更多细节的答案) –
2012-04-05 00:54:54
@ JonathanLeech-Pepin虽然我将html代码片段放在包含在所有其他组织文件中的单独文件中,但这很奏效。我不知道'#+ setupfile'和'#+ include'之间的区别 – emish 2012-04-06 16:58:25