Re: [O] publish to ascii/utf8 dosent work anymore?

2014-08-17 Thread Rasmus
Xebar Saram zelt...@gmail.com writes:

 Hi list

 i manage to export using the publish function for html. i really want
 actually to publih to txt and found these function in the mailing list:

 org-publish-org-to-ascii
 org-publish-org-to-latin1
 org-publish-org-to-utf8

 i have tried using them instead of html but got this error:

 funcall: Symbol's function definition is void: org-publish-org-to-ascii


 any ideas anyone?

How about `org-publish-org-to' of
`ox-publish.el'.

(org-publish-org-to BACKEND FILENAME EXTENSION PLIST optional
PUB-DIR)

Publish an Org file to a specified back-end.

Hope it helps,
Rasmus

-- 
Dung makes an excellent fertilizer




Re: [O] publish to ascii/utf8 dosent work anymore?

2014-08-17 Thread Xebar Saram
thx rasmus

since im very bad with lisp

do i use this inside my org-publish code or independent. currently my code
is like this:

#+BEGIN_SRC emacs-lisp :results none
 (setq org-publish-project-alist
   '((NNorg
  :base-directory ~/org/files/help/
  :publishing-directory ~/org/files/export/
  :section-numbers nil
  :table-of-contents nil
  :publishing-function org-publish-org-to-ascii
  :style link rel=\stylesheet\
 href=\../other/mystyle.css\
 type=\text/css\/)))
#+END_SRC

would you mind showing me an example of how i would use it (do i replace
the publishing function line?)

best

z



On Sun, Aug 17, 2014 at 2:17 PM, Rasmus ras...@gmx.us wrote:

 Xebar Saram zelt...@gmail.com writes:

  Hi list
 
  i manage to export using the publish function for html. i really want
  actually to publih to txt and found these function in the mailing list:
 
  org-publish-org-to-ascii
  org-publish-org-to-latin1
  org-publish-org-to-utf8
 
  i have tried using them instead of html but got this error:
 
  funcall: Symbol's function definition is void: org-publish-org-to-ascii
 
 
  any ideas anyone?

 How about `org-publish-org-to' of
 `ox-publish.el'.

 (org-publish-org-to BACKEND FILENAME EXTENSION PLIST optional
 PUB-DIR)

 Publish an Org file to a specified back-end.

 Hope it helps,
 Rasmus

 --
 Dung makes an excellent fertilizer





Re: [O] publish to ascii/utf8 dosent work anymore?

2014-08-17 Thread Nick Dokos
Xebar Saram zelt...@gmail.com writes:

 Hi list

 i manage to export using the publish function for html. i really want 
 actually to publih to txt and found these function in the mailing list:

 org-publish-org-to-ascii
 org-publish-org-to-latin1
 org-publish-org-to-utf8

 i have tried using them instead of html but got this error:

 funcall: Symbol's function definition is void: org-publish-org-to-ascii


These are names of functions that existed in org 7.x, but do not exist
in org 8.x. See

http://orgmode.org/worg/org-8.0.html#sec-5

-- 
Nick




Re: [O] publish to ascii/utf8 dosent work anymore?

2014-08-17 Thread Xebar Saram
Perfect!

that solved my issues

thanks alot all!

z


On Sun, Aug 17, 2014 at 2:53 PM, Nick Dokos ndo...@gmail.com wrote:

 Xebar Saram zelt...@gmail.com writes:

  Hi list
 
  i manage to export using the publish function for html. i really want
 actually to publih to txt and found these function in the mailing list:
 
  org-publish-org-to-ascii
  org-publish-org-to-latin1
  org-publish-org-to-utf8
 
  i have tried using them instead of html but got this error:
 
  funcall: Symbol's function definition is void: org-publish-org-to-ascii
 

 These are names of functions that existed in org 7.x, but do not exist
 in org 8.x. See

 http://orgmode.org/worg/org-8.0.html#sec-5

 --
 Nick





Re: [O] publish to ascii/utf8 dosent work anymore?

2014-08-17 Thread Rasmus
Hi Xebar,


Xebar Saram zelt...@gmail.com writes:

 do i use this inside my org-publish code or independent. currently my code
 is like this:

 #+BEGIN_SRC emacs-lisp :results none
  (setq org-publish-project-alist
'((NNorg
   :base-directory ~/org/files/help/
   :publishing-directory ~/org/files/export/
   :section-numbers nil
   :table-of-contents nil
   :publishing-function org-publish-org-to-ascii
   :style link rel=\stylesheet\
  href=\../other/mystyle.css\
  type=\text/css\/)))
 #+END_SRC

 would you mind showing me an example of how i would use it (do i replace
 the publishing function line?)

Right.  The functions you are looking for are probably:

org-ascii-publish-to-ascii
  Function: Publish an Org file to ASCII.
org-ascii-publish-to-latin1
  Function: Publish an Org file to Latin-1.
org-ascii-publish-to-utf8
  Function: Publish an org file to UTF-8.

You just put it in place of your current publish function.

I'm guessing you just upgraded to Org8 where Nicolas' ox became the
default export framework.

Cheers,
Rasmus

-- 
Governments should be afraid of their people