Re: [Orgmode] Generating an org file actually including the #+INCLUDE files
Miguel Ruiz writes: > I am working on a document split in several chunks. I need to generate the > full document in order to do different sorting processes before exporting. > > It would be nice if that generation could be recursive ... you know, one > master file, one included file with another included file. Crude hack to produce file_include.org based on file.org with some #+INCLUDE directives: (defun org-new-file-with-include () "Create a new org file honoring #+INCLUDE directives." (interactive) (let* ((bfile (buffer-file-name)) (bfilenoext (file-name-sans-extension bfile))) (find-file-other-window (concat bfilenoext "_include.org")) (insert-file bfile) (goto-char (point-min)) (while (re-search-forward "^[ \t]*#\\+INCLUDE:[ \t]*\\(.+\\)[ \t]*$" nil t) (let ((ifile (match-string 1))) (save-match-data (replace-match "")) (insert-file (expand-file-name ifile)) Careful: it does not prevent errors when #+INCLUDE directives are circular... just a hack. HTH, -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Generating an org file actually including the #+INCLUDE files
Hi, I am working on a document split in several chunks. I need to generate the full document in order to do different sorting processes before exporting. It would be nice if that generation could be recursive ... you know, one master file, one included file with another included file. I suppose orgmode already does this before any exporting. Actually I am asking for an Org export option instead LaTeX or Docbook export. Now, sorry, I am thinking it would be fantastic that noexport tag would be available as well. How can achieve this? TIA ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode