[Orgmode] Ditaa usage

2010-09-22 Thread Juri Artamonov
Hello Guys,

I'm still learning how to correctly configure orgmode. One of the items is
ditaa usage.

I have the following in my org file.

#+begin_src ditaa :file task_states.png :cmdline -r -s 0.8
 ++   +-+   ++
 ||   | |   ||
  +--+  TODO  +--+  NEXT   +--+  DONE  |
  |  | cRED   |   |  cBLU   |   | cGRE   |
  |  +--+-+---+   +--+---+--+   ++

#+end_src

#+results:
file:task_states.png

init.el
contains reference to ditaa library.

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

Could you please tell me what else do I need to configure in order to have
graphics in result of exporting the file into HTML?

Thank you,
Juri.
___
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


Re: [Orgmode] Ditaa usage

2010-09-22 Thread John Hendy
Do you have the necessary lines for babl as described here:
http://orgmode.org/worg/org-contrib/babel/languages.php#configure

http://orgmode.org/worg/org-contrib/babel/languages.php#configureNamely:



;; active Babel languages(org-babel-do-load-languages
 'org-babel-load-languages
 '((gnuplot . t)
   (ditaa . t)
   ))


You don't have to have gnuplot... just put whatever languages you want in
the form language . t and you're set.

See if that helps.


John

On Wed, Sep 22, 2010 at 7:06 AM, Juri Artamonov jartamo...@gmail.comwrote:

 Hello Guys,

 I'm still learning how to correctly configure orgmode. One of the items is
 ditaa usage.

 I have the following in my org file.

 #+begin_src ditaa :file task_states.png :cmdline -r -s 0.8
  ++   +-+   ++
  ||   | |   ||
   +--+  TODO  +--+  NEXT   +--+  DONE  |
   |  | cRED   |   |  cBLU   |   | cGRE   |
   |  +--+-+---+   +--+---+--+   ++

 #+end_src

 #+results:
 file:task_states.png

 init.el
 contains reference to ditaa library.

 (setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

 Could you please tell me what else do I need to configure in order to have
 graphics in result of exporting the file into HTML?

 Thank you,
 Juri.


 ___
 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


___
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


Re: [Orgmode] Ditaa usage

2010-09-22 Thread Juri Artamonov
Hello John,

if I add what you provided then I have

Warning (initialization): An error occurred while loading
`c:/emacs/.emacs.d/init.el':
Symbol's function definition is void: org-babel-do-load-languages

message.

I have added this for now:

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

(setq org-babel-load-languages (quote ((emacs-lisp . t)
 (dot . t)
 (ditaa . t)
 (R . t)
 (python . t)
 (ruby . t)
 (gnuplot . t)
 (clojure . t)
 (sh . t

In result I don't have error message on initialization but after export I
have at least area with where the lines are shown exactly the same as I
wrote in org file but without any converting to the image.

Maybe I need something to install additionally or add something else to the
configuration?

Thank you,
  Juri.

On Wed, Sep 22, 2010 at 3:23 PM, John Hendy jw.he...@gmail.com wrote:

 Do you have the necessary lines for babl as described here:
 http://orgmode.org/worg/org-contrib/babel/languages.php#configure

 http://orgmode.org/worg/org-contrib/babel/languages.php#configureNamely:

 

 ;; active Babel languages(org-babel-do-load-languages
  'org-babel-load-languages
  '((gnuplot . t)
(ditaa . t)
))

 
 You don't have to have gnuplot... just put whatever languages you want in
 the form language . t and you're set.

 See if that helps.


 John

 On Wed, Sep 22, 2010 at 7:06 AM, Juri Artamonov jartamo...@gmail.comwrote:

 Hello Guys,

 I'm still learning how to correctly configure orgmode. One of the items is
 ditaa usage.

 I have the following in my org file.

 #+begin_src ditaa :file task_states.png :cmdline -r -s 0.8
  ++   +-+   ++
  ||   | |   ||
   +--+  TODO  +--+  NEXT   +--+  DONE  |
   |  | cRED   |   |  cBLU   |   | cGRE   |
   |  +--+-+---+   +--+---+--+   ++

 #+end_src

 #+results:
 file:task_states.png

 init.el
 contains reference to ditaa library.

 (setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

 Could you please tell me what else do I need to configure in order to have
 graphics in result of exporting the file into HTML?

 Thank you,
 Juri.


 ___
 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



___
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


Re: [Orgmode] Ditaa usage

2010-09-22 Thread Erik Iverson

On 09/22/2010 08:08 AM, Juri Artamonov wrote:

Hello John,

if I add what you provided then I have

Warning (initialization): An error occurred while loading
`c:/emacs/.emacs.d/init.el':
Symbol's function definition is void: org-babel-do-load-languages

message.


From your previous post, looks like you're using a fairly old version
of org-mode.  using source code blocks like ditaa is much simplified
in org-mode 7.01, so just upgrade to that and you'll be all set.




I have added this for now:

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

(setq org-babel-load-languages (quote ((emacs-lisp . t)
  (dot . t)
  (ditaa . t)
  (R . t)
  (python . t)
  (ruby . t)
  (gnuplot . t)
  (clojure . t)
  (sh . t

In result I don't have error message on initialization but after export
I have at least area with where the lines are shown exactly the same as
I wrote in org file but without any converting to the image.

Maybe I need something to install additionally or add something else to
the configuration?

Thank you,
   Juri.

On Wed, Sep 22, 2010 at 3:23 PM, John Hendy jw.he...@gmail.com
mailto:jw.he...@gmail.com wrote:

Do you have the necessary lines for babl as described here:
http://orgmode.org/worg/org-contrib/babel/languages.php#configure

http://orgmode.org/worg/org-contrib/babel/languages.php#configureNamely:



;;active Babel languages
(org-babel-do-load-languages
  'org-babel-load-languages
  '((gnuplot . t)
(ditaa . t)
))


You don't have to have gnuplot... just put whatever languages you
want in the form language . t and you're set.

See if that helps.


John

On Wed, Sep 22, 2010 at 7:06 AM, Juri Artamonov
jartamo...@gmail.com mailto:jartamo...@gmail.com wrote:

Hello Guys,

I'm still learning how to correctly configure orgmode. One of
the items is ditaa usage.

I have the following in my org file.

#+begin_src ditaa :file task_states.png :cmdline -r -s 0.8
  ++   +-+   ++
  ||   | |   ||
   +--+  TODO  +--+  NEXT   +--+  DONE  |
   |  | cRED   |   |  cBLU   |   | cGRE   |
   |  +--+-+---+   +--+---+--+   ++

#+end_src

#+results:
file:task_states.png

init.el
contains reference to ditaa library.

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

Could you please tell me what else do I need to configure in
order to have graphics in result of exporting the file into HTML?

Thank you,
 Juri.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org mailto:Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





___
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



___
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


Re: [Orgmode] Ditaa usage

2010-09-22 Thread Juri Artamonov
Erik,

I would love to update but I have emacsW32 installed and don't know how to
update orgmode inside of it.

Perhaps you can advice or maybe it's even better to reinstall first emacs
and then orgmode. What do you think?

Thank you,
   Juri.

On Wed, Sep 22, 2010 at 4:17 PM, Erik Iverson er...@ccbr.umn.edu wrote:

 On 09/22/2010 08:08 AM, Juri Artamonov wrote:

 Hello John,

 if I add what you provided then I have

 Warning (initialization): An error occurred while loading
 `c:/emacs/.emacs.d/init.el':
 Symbol's function definition is void: org-babel-do-load-languages

 message.


 From your previous post, looks like you're using a fairly old version
 of org-mode.  using source code blocks like ditaa is much simplified
 in org-mode 7.01, so just upgrade to that and you'll be all set.



 I have added this for now:

 (setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

 (setq org-babel-load-languages (quote ((emacs-lisp . t)
  (dot . t)
  (ditaa . t)
  (R . t)
  (python . t)
  (ruby . t)
  (gnuplot . t)
  (clojure . t)
  (sh . t

 In result I don't have error message on initialization but after export
 I have at least area with where the lines are shown exactly the same as
 I wrote in org file but without any converting to the image.

 Maybe I need something to install additionally or add something else to
 the configuration?

 Thank you,
   Juri.

 On Wed, Sep 22, 2010 at 3:23 PM, John Hendy jw.he...@gmail.com
 mailto:jw.he...@gmail.com wrote:

Do you have the necessary lines for babl as described here:
http://orgmode.org/worg/org-contrib/babel/languages.php#configure

http://orgmode.org/worg/org-contrib/babel/languages.php#configure
 Namely:



;;active Babel languages
(org-babel-do-load-languages
  'org-babel-load-languages
  '((gnuplot . t)
(ditaa . t)
))


You don't have to have gnuplot... just put whatever languages you
want in the form language . t and you're set.

See if that helps.


John

On Wed, Sep 22, 2010 at 7:06 AM, Juri Artamonov
jartamo...@gmail.com mailto:jartamo...@gmail.com wrote:

Hello Guys,

I'm still learning how to correctly configure orgmode. One of
the items is ditaa usage.

I have the following in my org file.

#+begin_src ditaa :file task_states.png :cmdline -r -s 0.8
  ++   +-+   ++
  ||   | |   ||
   +--+  TODO  +--+  NEXT   +--+  DONE  |
   |  | cRED   |   |  cBLU   |   | cGRE   |
   |  +--+-+---+   +--+---+--+   ++

#+end_src

#+results:
file:task_states.png

init.el
contains reference to ditaa library.

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

Could you please tell me what else do I need to configure in
order to have graphics in result of exporting the file into HTML?

Thank you,
 Juri.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org mailto:Emacs-orgmode@gnu.org

http://lists.gnu.org/mailman/listinfo/emacs-orgmode





 ___
 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



 ___
 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

___
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


Re: [Orgmode] Ditaa usage

2010-09-22 Thread Giovanni Ridolfi
Juri Artamonov jartamo...@gmail.com writes:

 Erik,I would love to update but I have emacsW32 installed and
 don't know how to update orgmode inside of it.
Please 
+ download the current version from http://orgmode.org

  Current Version (7.01h) 

+ then read
  http://orgmode.org/manual/Installation.html#Installation

 Perhaps you can advice or maybe it#39;s even better to reinstall
 first emacs and then orgmode. 
I don't think so ;-)

cheers,
Giovanni

___
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