emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Juan Pechiar <juan@pechiar.com>
To: Manuel Danzl <mdanzl1@aol.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Wanted: org-publish-org-to-ascii
Date: Wed, 13 Oct 2010 17:12:26 -0200	[thread overview]
Message-ID: <20101013191226.GC14385@soloJazz.com> (raw)
In-Reply-To: <4CB5F37B.3090001@aol.com>

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.

  reply	other threads:[~2010-10-13 19:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13 17:59 Wanted: org-publish-org-to-ascii Manuel Danzl
2010-10-13 19:12 ` Juan Pechiar [this message]
2010-10-14 11:40   ` Matthias Danzl
2010-10-14 11:51     ` Carsten Dominik
2010-10-14 13:00       ` Jeff Horn
2010-10-14 16:55         ` Carsten Dominik
2010-10-14 14:46     ` Jeff Kowalczyk

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=20101013191226.GC14385@soloJazz.com \
    --to=juan@pechiar.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdanzl1@aol.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).