From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Code for feature for showing progress in lisp code for creation of Gantt charts Date: Fri, 25 May 2012 08:21:42 -0500 Message-ID: References: <646467803.782330.1337871654994.JavaMail.ngmail@webmail18.arcor-online.net> <756350209.602318.1337932165852.JavaMail.ngmail@webmail21.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXuSk-000121-To for emacs-orgmode@gnu.org; Fri, 25 May 2012 09:21:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXuSf-0002UR-EY for emacs-orgmode@gnu.org; Fri, 25 May 2012 09:21:50 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:44432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXuSf-0002U8-4F for emacs-orgmode@gnu.org; Fri, 25 May 2012 09:21:45 -0400 Received: by bkcjm19 with SMTP id jm19so887314bkc.0 for ; Fri, 25 May 2012 06:21:43 -0700 (PDT) In-Reply-To: <756350209.602318.1337932165852.JavaMail.ngmail@webmail21.arcor-online.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: julia.jacobson@arcor.de Cc: emacs-orgmode@gnu.org On Fri, May 25, 2012 at 2:49 AM, wrote: >> I can't seem to get this to compile. I assumed I was to C-c C-c on the >> elisp source block, which appears to have run, though this is in >> *Messages* buffer: >> >> ---------- >> executing Emacs-Lisp code block... >> >> (table (quote (("" "type" "label" "activity" "depends" "start" >> "duration" "end" "align" "progress") hline (1 "date" "Start" "" "" 0 >> "" 0 "" "") (2 "task" 1.1 "Lit =C2=A0 =C2=A0 =C2=A0 =C2=A0survey" "" 0 2= 2 "right" 75) (3 >> "task" 1.2 "experiments" "" 2 6 8 "" 40) (4 "milestone" "M1" "data >> collected" 3 8 "" 8 "" "") (5 "task" 1.3 "Report" 3 8 6 14 "" 30) (6 >> "date" "6 weeks" "" "" 14 "" 14 "" "") (7 "milestone" "M2" "Release" 5 >> 14 "" 14 "" "") hline (8 "task" 2.1 "Discuss" 5 14 1 15 "left" 90) (9 >> "task" 2.2 "Correct mistakes" 8 15 1 16 "left" 10) (10 "task" 2.3 "Add >> feedback" 5 14 2 16 "left" 50) (11 "date" "End" "" "" 16 "" 16 "" "") >> hline))) >> >> Initial: (( type label activity depends start duration end align >> progress) hline (1 date Start =C2=A0 0 =C2=A00 =C2=A0) (2 task 1.1 Lit = =C2=A0 =C2=A0 =C2=A0 =C2=A0survey >> 0 2 2 right 75) (3 task 1.2 experiments =C2=A02 6 8 =C2=A040) (4 milesto= ne M1 >> data collected 3 8 =C2=A08 =C2=A0) (5 task 1.3 Report 3 8 6 14 =C2=A030)= (6 date 6 >> weeks =C2=A0 14 =C2=A014 =C2=A0) (7 milestone M2 Release 5 14 =C2=A014 = =C2=A0) hline (8 task >> 2.1 Discuss 5 14 1 15 left 90) (9 task 2.2 Correct mistakes 8 15 1 16 >> left 10) (10 task 2.3 Add feedback 5 14 2 16 left 50) (11 date End >> 16 =C2=A016 =C2=A0) hline) >> >> Entries: ((1 date Start =C2=A0 0 =C2=A00 =C2=A0) (2 task 1.1 Lit =C2=A0 = =C2=A0 =C2=A0 =C2=A0survey =C2=A00 2 2 >> right 75) (3 task 1.2 experiments =C2=A02 6 8 =C2=A040) (4 milestone M1 = data >> collected 3 8 =C2=A08 =C2=A0) (5 task 1.3 Report 3 8 6 14 =C2=A030) (6 d= ate 6 weeks >> 14 =C2=A014 =C2=A0) (7 milestone M2 Release 5 14 =C2=A014 =C2=A0) hline = (8 task 2.1 >> Discuss 5 14 1 15 left 90) (9 task 2.2 Correct mistakes 8 15 1 16 left >> 10) (10 task 2.3 Add feedback 5 14 2 16 left 50) (11 date End =C2=A0 16 = =C2=A016 >> =C2=A0) hline) >> >> Ignoring non-list entry hline >> >> Ignoring non-list entry hline >> >> Code block evaluation complete. >> ---------- >> >> Then I used export to PDF via the normal method =3DC-d p=3D but just get= a >> blank PDF with a title, your name, and first section, "Time line." >> >> I checked and do have emacs-lisp enabled in my babel section. >> >> Suggestions? >> >> >> John > > > Hello John, > > Thanks for your answer. The key-combination C-c C-c unfortunately creates= the new additional block of code surrounded by the lines > #+RESULTS: > #+begin_latex > =C2=A0Here's the created LaTeX code > #+end_latex > right after the lisp function. > > This code block has to be moved just before the line beginning with > #+ =C2=A0 \\draw... > to get the order right again. Yup. That worked. I missed that results block (though I wouldn't have known where to put it anyway :) ) > > I tried to include the results of the evaluation of the lisp function the= re by placing > #+RESULTS: elispgantt > there (because there's a line saying #+source: elispgantt), but for unkno= wn reasons, > the results of code evaluation are always placed just after the elispgant= t function. > Any help to fix that is appreciated. > Really like it! There's got to be a way to put code block results where one wants. Kind like radio tables or something. I'm also sure one could figure out how to use only start and one of duration/end. It's definitely nice for just generating a quick and pleasing gantt chart. Thanks for sharing! John > Hopefully you can now compile my example, > Julia