简体   繁体   English

在组织模式下,如何从(主).org文件中包含其他.org文件?

[英]In org-mode, how do I include other .org files from a (main) .org file?

I want to place some customization codes in a separate file, and include it from other files later. 我想将一些自定义代码放在一个单独的文件中,稍后将其包含在其他文件中。 For example, file config.org has a single line #+MATHJAX: align:"left" mathml:t . 例如,文件config.org有一行#+MATHJAX: align:"left" mathml:t How do I include it in another .org file abc.org so that the net-effect is exactly same as I write that #+MATHJAX line directly in abc.org? 如何将其包含在另一个.org文件abc.org以便网效与我在abc.org中直接编写#+MATHJAX行完全相同?

使用此处记录的 #+setupfile: /path/to/config.org

The #+INCLUDE directive can include another file with export options (but it cannot affect the configuration of the enclosing file, since it is only for export purposes). #+INCLUDE指令可以包含另一个带导出选项的文件 (但它不会影响封闭文件的配置,因为它仅用于导出目的)。 Use it like: 使用它像:

#+INCLUDE: "/path/to/config.org"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM