emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <c.dominik@uva.nl>
To: Daniel Clemente <n142857@gmail.com>
Cc: Org-mode Mode <emacs-orgmode@gnu.org>
Subject: Re: Org mode release 6.04
Date: Tue, 27 May 2008 08:26:46 +0200	[thread overview]
Message-ID: <38F473BC-063F-4CD1-AAFC-25FA9214A67E@uva.nl> (raw)
In-Reply-To: <874p8lny3p.fsf@gmail.com>

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	other threads:[~2008-05-27  6:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-25  7:31 Org mode release 6.04 Carsten Dominik
2008-05-25 12:41 ` Austin Frank
2008-05-25 21:57   ` Shelagh Manton
2008-05-26  7:43     ` Shelagh Manton
2008-05-26 10:36       ` Daniel Clemente
2008-05-25 15:58 ` Leo
2008-05-27 22:00   ` Adam Spiers
2008-05-26 10:44 ` Daniel Clemente
2008-05-27  6:26   ` Carsten Dominik [this message]
2008-05-28  4:01 ` Levin Du
2008-05-28  4:36   ` Carsten Dominik
2008-05-28  6:34     ` Levin Du
2008-05-28  8:35       ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38F473BC-063F-4CD1-AAFC-25FA9214A67E@uva.nl \
    --to=c.dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).