From mboxrd@z Thu Jan 1 00:00:00 1970 From: julia.jacobson@arcor.de Subject: Re: Code for feature for showing progress in lisp code for creation of Gantt charts Date: Fri, 25 May 2012 09:49:25 +0200 (CEST) Message-ID: <756350209.602318.1337932165852.JavaMail.ngmail@webmail21.arcor-online.net> References: <646467803.782330.1337871654994.JavaMail.ngmail@webmail18.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXpH8-00072F-K6 for emacs-orgmode@gnu.org; Fri, 25 May 2012 03:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXpH6-0006aD-NZ for emacs-orgmode@gnu.org; Fri, 25 May 2012 03:49:30 -0400 Received: from mail-in-04.arcor-online.net ([151.189.21.44]:44855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXpH6-0006a3-Cb for emacs-orgmode@gnu.org; Fri, 25 May 2012 03:49:28 -0400 In-Reply-To: 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: jw.hendy@gmail.com Cc: emacs-orgmode@gnu.org > 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 survey" "" 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 0 0 ) (2 task 1.1 Lit survey > 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) > > Entries: ((1 date Start 0 0 ) (2 task 1.1 Lit survey 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) > > Ignoring non-list entry hline > > Ignoring non-list entry hline > > Code block evaluation complete. > ---------- > > Then I used export to PDF via the normal method =C-d p= 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 Here'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 #+ \\draw... to get the order right again. I tried to include the results of the evaluation of the lisp function there by placing #+RESULTS: elispgantt there (because there's a line saying #+source: elispgantt), but for unknown reasons, the results of code evaluation are always placed just after the elispgantt function. Any help to fix that is appreciated. Hopefully you can now compile my example, Julia