all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ditaa usage
@ 2010-09-22 12:06 Juri Artamonov
  2010-09-22 12:23 ` John Hendy
  0 siblings, 1 reply; 8+ messages in thread
From: Juri Artamonov @ 2010-09-22 12:06 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 758 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 873 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ditaa usage
  2010-09-22 12:06 Ditaa usage Juri Artamonov
@ 2010-09-22 12:23 ` John Hendy
  2010-09-22 13:08   ` Juri Artamonov
  0 siblings, 1 reply; 8+ messages in thread
From: John Hendy @ 2010-09-22 12:23 UTC (permalink / raw)
  To: Juri Artamonov; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1580 bytes --]

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 <jartamonov@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
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

[-- Attachment #1.2: Type: text/html, Size: 3231 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ditaa usage
  2010-09-22 12:23 ` John Hendy
@ 2010-09-22 13:08   ` Juri Artamonov
  2010-09-22 13:17     ` Erik Iverson
  0 siblings, 1 reply; 8+ messages in thread
From: Juri Artamonov @ 2010-09-22 13:08 UTC (permalink / raw)
  To: John Hendy, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2844 bytes --]

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.hendy@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 <jartamonov@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
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 4451 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ditaa usage
  2010-09-22 13:08   ` Juri Artamonov
@ 2010-09-22 13:17     ` Erik Iverson
  2010-09-22 13:40       ` Juri Artamonov
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Iverson @ 2010-09-22 13:17 UTC (permalink / raw)
  To: Juri Artamonov; +Cc: emacs-orgmode

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.hendy@gmail.com
> <mailto:jw.hendy@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
>     <jartamonov@gmail.com <mailto:jartamonov@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ditaa usage
  2010-09-22 13:17     ` Erik Iverson
@ 2010-09-22 13:40       ` Juri Artamonov
  2010-09-22 13:56         ` Giovanni Ridolfi
  2010-09-22 17:24         ` Achim Gratz
  0 siblings, 2 replies; 8+ messages in thread
From: Juri Artamonov @ 2010-09-22 13:40 UTC (permalink / raw)
  To: Erik Iverson, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 4358 bytes --]

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 <eriki@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.hendy@gmail.com
>> <mailto:jw.hendy@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
>>    <jartamonov@gmail.com <mailto:jartamonov@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
>

[-- Attachment #1.2: Type: text/html, Size: 6465 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ditaa usage
  2010-09-22 13:40       ` Juri Artamonov
@ 2010-09-22 13:56         ` Giovanni Ridolfi
  2010-09-22 17:24         ` Achim Gratz
  1 sibling, 0 replies; 8+ messages in thread
From: Giovanni Ridolfi @ 2010-09-22 13:56 UTC (permalink / raw)
  To: Juri Artamonov; +Cc: emacs-orgmode

Juri Artamonov <jartamonov@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ditaa usage
  2010-09-22 13:40       ` Juri Artamonov
  2010-09-22 13:56         ` Giovanni Ridolfi
@ 2010-09-22 17:24         ` Achim Gratz
  2010-09-22 18:25           ` John Hendy
  1 sibling, 1 reply; 8+ messages in thread
From: Achim Gratz @ 2010-09-22 17:24 UTC (permalink / raw)
  To: emacs-orgmode

Juri Artamonov <jartamonov@gmail.com> writes:
> I would love to update but I have emacsW32 installed and don't know
> how to update orgmode inside of it.

In a nutshell, you don't.  You put the new version of org-mode into the
site-lisp directory where EMACS is installed and EMACS will use the new
version because it looks there first.  If you can't install into
site-lisp, you can put orgmode into some other place and prepend that
location to the load-path in your user startup file (.emacs in your
"Application and Settings" folder, IIRC).  Proper installation of
org-mode requires a working make and some other programs that you can
get with MSys (or Cygwin if you need a full POSIX environment).


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: Ditaa usage
  2010-09-22 17:24         ` Achim Gratz
@ 2010-09-22 18:25           ` John Hendy
  0 siblings, 0 replies; 8+ messages in thread
From: John Hendy @ 2010-09-22 18:25 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1713 bytes --]

On Wed, Sep 22, 2010 at 12:24 PM, Achim Gratz <Stromeko@nexgo.de> wrote:

> Juri Artamonov <jartamonov@gmail.com> writes:
> > I would love to update but I have emacsW32 installed and don't know
> > how to update orgmode inside of it.
>
> In a nutshell, you don't.  You put the new version of org-mode into the
> site-lisp directory where EMACS is installed and EMACS will use the new
> version because it looks there first.


This is true. I use Linux but went through setup on Win XP so that I'd be
able to help someone at work. My process:

- Grab org-mode 7.01 zip file: http://orgmode.org/org-7.01h.zip
- Put it in C:\Program Files\emacs23\org-7.01h (I installed emacs to
C:\Program Files\emacs23
- put this in init.el: (add-to-list 'load-path' "~/org-7.01h/lisp/")
and (add-to-list 'load-path' "~/org-7.01h/lisp/contrib/lisp/")

Works great. No need to even compile, though you can do that as well.


John



>  If you can't install into
> site-lisp, you can put orgmode into some other place and prepend that
> location to the load-path in your user startup file (.emacs in your
> "Application and Settings" folder, IIRC).  Proper installation of
> org-mode requires a working make and some other programs that you can
> get with MSys (or Cygwin if you need a full POSIX environment).
>
>
> Achim.
> --
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
>
> Factory and User Sound Singles for Waldorf rackAttack:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
>
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 2690 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-22 18:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-22 12:06 Ditaa usage Juri Artamonov
2010-09-22 12:23 ` John Hendy
2010-09-22 13:08   ` Juri Artamonov
2010-09-22 13:17     ` Erik Iverson
2010-09-22 13:40       ` Juri Artamonov
2010-09-22 13:56         ` Giovanni Ridolfi
2010-09-22 17:24         ` Achim Gratz
2010-09-22 18:25           ` John Hendy

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.