emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Org mode release 6.04


From: Carsten Dominik
Subject: Re: [Orgmode] Org mode release 6.04
Date: Tue, 27 May 2008 08:26:46 +0200

Sure, this is really quite simple now (untested):

(defun org-publish-all-top-level-trees ()
  (interactive)
  (save-excursion
    (save-restriction
      (widen)
      (goto-char (point-min))
      (unless (outline-next-heading)
        (error "No headings in this file"))
      (while (not (eobp))
        (outline-mark-subtree)
        (org-export-as-html nil 'hidden)
        (condition-case nil
            (outline-forward-same-level 1)
          (error (goto-char (point-max)))))))

A better implementation would be to find headlines which have an EXPORT_FILE_NAME property and export only those....

HTH

- Carsten



On May 26, 2008, at 12:44 PM, Daniel Clemente wrote:


 #+OPTIONS: skip:nil
 * Computer Tricks
   :PROPERTIES:
   :EXPORT_FILE_NAME: ct.html
   :EXPORT_TITLE: Steve's collected computer tricks
   :EXPORT_OPTIONS: h:2 toc:nil
   :END:


This is a neat feature; thanks, Carsten! Now org will make possible to use a single .org file to hold several files, each one in one section. I find this very useful since I'm working with a lot of small files with lots of links among them. Having them in a single org file makes moving through them a lot easier. Could a single export command be used to go through the main file and export each section with to its particular output file?


 Thanks,

Daniel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]