Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-03-01 Thread Karl Voit
* Neuwirth Erich erich.neuwi...@univie.ac.at wrote:
 As I learned the correct name for elisp to use with begin_src is emacs-lisp, 
 not elisp

Oh, thanks for this side-mark. I did not look it up, wrote elisp,
and babel executed as expected. But good to know. I'll remember now
:-)

-- 
Karl Voit




Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-03-01 Thread Karl Voit
* Achim Gratz strom...@nexgo.de wrote:
 Karl Voit devnull at Karl-Voit.at writes:
 #+BEGIN_SRC elisp
 (org-export-as-html 3 nil nil htmlized-output nil nil)
 #+END_SRC

 Am I doing something wrong or is this a bug?

 You are trying to use the old exporter and pick up code from an earlier 
 version
 of Org.

Oh, am I? :-O I was not aware of this. Obviously, I am no insider of
emacs-lisp nor the exporting mechanism of Org.

What is the equivalent elisp expression for using the new exporter?

Or should I just wait until Org 8.0 which would not be of any
problem for me now? I know, that these days, a lot of changes are
going on on the exporting parts of Org - which I appreciate very
much!




Background: I was testing a weird idea of mine. Writing a shell
script which uses «emacs -Q --script exportscript.el» for batch
converting an Org-mode file to HTML «from outside» of Emacs.

-- 
Karl Voit




Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-03-01 Thread Nicolas Goaziou
Hello,

Karl Voit devn...@karl-voit.at writes:

 * Achim Gratz strom...@nexgo.de wrote:
 Karl Voit devnull at Karl-Voit.at writes:
 #+BEGIN_SRC elisp
 (org-export-as-html 3 nil nil htmlized-output nil nil)
 #+END_SRC

 Am I doing something wrong or is this a bug?

 You are trying to use the old exporter and pick up code from an earlier 
 version
 of Org.

 Oh, am I? :-O I was not aware of this. Obviously, I am no insider of
 emacs-lisp nor the exporting mechanism of Org.

 What is the equivalent elisp expression for using the new exporter?

`org-html-export-to-html' (output to file) and `org-html-export-as-html'
(output to temporary buffer).

For batch processing, you can also use `org-export-as', in conjunction
with `html' backend, which will output a string.

There's also `org-export-string-as', which will do the same as
`org-export-as' but will work from an input string instead of the
current buffer.


Regards,

-- 
Nicolas Goaziou



Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-02-28 Thread Achim Gratz
Karl Voit devnull at Karl-Voit.at writes:
 #+BEGIN_SRC elisp
 (org-export-as-html 3 nil nil htmlized-output nil nil)
 #+END_SRC

 Am I doing something wrong or is this a bug?

You are trying to use the old exporter and pick up code from an earlier version
of Org.


Regards,
Achim.




Re: [O] bug: org-export-preprocess-string: Wrong number of arguments when doing org-export-as-html

2013-02-28 Thread Neuwirth Erich
As I learned the correct name for elisp to use with begin_src is emacs-lisp, 
not elisp

On Feb 28, 2013, at 12:13 PM, Achim Gratz strom...@nexgo.de wrote:

 Karl Voit devnull at Karl-Voit.at writes:
 #+BEGIN_SRC elisp
 (org-export-as-html 3 nil nil htmlized-output nil nil)
 #+END_SRC
 
 Am I doing something wrong or is this a bug?
 
 You are trying to use the old exporter and pick up code from an earlier 
 version
 of Org.
 
 
 Regards,
 Achim.