From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Pechiar Subject: Re: Wanted: org-publish-org-to-ascii Date: Wed, 13 Oct 2010 17:12:26 -0200 Message-ID: <20101013191226.GC14385@soloJazz.com> References: <4CB5F37B.3090001@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33399 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P66ka-0001ix-7W for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 15:12:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P66kZ-0001GC-7M for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 15:12:32 -0400 Received: from cpoproxy3-pub.bluehost.com ([67.222.54.6]:47613) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P66kY-0001Fq-Vr for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 15:12:31 -0400 Content-Disposition: inline In-Reply-To: <4CB5F37B.3090001@aol.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manuel Danzl Cc: Org-mode ml On Wed, Oct 13, 2010 at 07:59:23PM +0200, Manuel Danzl wrote: > I'm a happy org-mode user since a few month's and I'm using org-publish > to write on some work related documentation. Now my collegues asked me > to export the docs not only to html but also to plain text! > > Unfortunately, org-mode currently lacks a publishing function exporting > to ascii, so I kindly ask you to implement it. Copying from the definition for org-publish-org-to-html: #+BEGIN_SRC: emacs-lisp (defun org-publish-org-to-ascii (plist filename pub-dir) "Publish an org file to ASCII. See `org-publish-org-to' to the list of arguments." (org-publish-with-aux-preprocess-maybe (org-publish-org-to "ascii" plist filename pub-dir))) #+END_SRC you can even use "utf8" instead of "ascii". Then use the newly defined org-publish-org-to-ascii as the :publishing-function in your publish project. Not tested, you try it :-) Regards, .j.