From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Wanted: org-publish-org-to-ascii Date: Thu, 14 Oct 2010 13:51:49 +0200 Message-ID: <0002FCCB-4F33-4725-A971-5445D42C03D3@gmail.com> References: <4CB5F37B.3090001@aol.com> <20101013191226.GC14385@soloJazz.com> <4CB6EC2D.3070801@aol.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6MLi-0000kN-Ov for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 07:51:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6MLh-0005h6-Ng for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 07:51:54 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:34982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6MLh-0005gr-IP for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 07:51:53 -0400 Received: by ewy5 with SMTP id 5so2641752ewy.0 for ; Thu, 14 Oct 2010 04:51:52 -0700 (PDT) In-Reply-To: <4CB6EC2D.3070801@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: Matthias Danzl Cc: Juan Pechiar , emacs-orgmode@gnu.org On Oct 14, 2010, at 1:40 PM, Matthias Danzl wrote: > Am 13.10.2010 21:12, schrieb Juan Pechiar: >> 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 Good idea, I have added these functions to org-publish.el Thanks. - Carsten >> >> 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. > > > That did the job! Thanks Juan. I can now publish to html and txt. > Very nice. > > Sorry I've created a lot of confusion, cause some people thought, I > was talking about the =export= function, not the =publish= function. > Thanks for all the replies though. > > I even > > Manuel > > _______________________________________________ > 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 - Carsten