From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Was tj3 --> tikz gantt chart Date: Mon, 8 Nov 2010 16:46:34 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1255149824==" Return-path: Received: from [140.186.70.92] (port=36976 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFaU2-00033W-0L for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 17:46:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFaU0-0006Qg-7c for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 17:46:37 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:44263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFaTz-0006QU-QU for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 17:46:36 -0500 Received: by bwz16 with SMTP id 16so5336583bwz.0 for ; Mon, 08 Nov 2010 14:46:34 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org --===============1255149824== Content-Type: multipart/alternative; boundary=001636c5a76f6ea3b8049492650d --001636c5a76f6ea3b8049492650d Content-Type: text/plain; charset=ISO-8859-1 Hi Eric, While I like tj3, I was looking around for something on tikz/gantt and found something from the pgf mailing list I thought I'd pass along. Check it out. [1] I'll be tinkering more with this to see if some kind of table couldn't be used to bring in the right data to form a gantt chart with tikz in org-mode using babel. Where I'd like to go (for my purposes): - dates generated based on first/last task (or something else) - smart text placement (yours is varied to be next to the task; easier to go with the standard of putting them on the left in a colum?) - some kind of dependency denoting - varied fonts for top level vs. sub-level items - pretty it up I'll futz with this and see how it goes, but did want to post what I ran into. Here's the code from my org-mode file: --- #+begin_src latex :packages '(("" "tikz")) :file gantt.pdf \newcommand\ganttline[4]{% line, tag, start end \node at (0,#1) [anchor=base east] {#2}; \fill[blue] (#3/20,#1-.2) rectangle (#4/20,#1+.2);} \begin{tikzpicture}[y=-1cm] \draw[help lines] (0,4.5) grid (8,0.5); \ganttline{1}{Kickoff-Meeting}{20}{40} \ganttline{2}{Thinking}{45}{50} \ganttline{3}{Implementation}{50}{100} \ganttline{4}{Testing}{100}{140} \end{tikzpicture} #+end_src --- [1] http://osdir.com/ml/tex.pgf.user/2007-07/msg00008.html On Thu, Oct 14, 2010 at 1:24 AM, Eric S Fraga wrote: > For the recent project I had to prepare, I did have to generate a > GANTT chart. I tried using TJ2 via org but found the current > implementation not suitable for my way of working. Instead of using > TJ, either 2 or 3, I simply created my own chart using tikz in latex. > To make my life easier, I created a number of latex commands for this. > > I've now developed some code which will take an org table and create a > GANTT chart. Some of you may find this useful so I've attached an org > document with all the codes (emacs lisp + latex) along with an > example. I've also attached a PDF so you can see what I get. > > The codes are not necessarily easily customisable so they may not do > what you want. For the types of project proposals I have to prepare, > the level of detail I have here is sufficient. > > eric > > -- > Eric S Fraga > GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D > > _______________________________________________ > 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 > > --001636c5a76f6ea3b8049492650d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eric,


While I like tj3, I was looking = around for something on tikz/gantt and found something from the pgf mailing= list I thought I'd pass along. Check it out. [1] I'll be tinkering= more with this to see if some kind of table couldn't be used to bring = in the right data to form a gantt chart with tikz in org-mode using babel. = Where I'd like to go (for my purposes):

- dates generated based on first/last task (or somethin= g else)
- smart text placement (yours is varied to be next to the= task; easier to go with the standard of putting them on the left in a colu= m?)
- some kind of dependency denoting
- varied fonts for top le= vel vs. sub-level items
- pretty it up

I= 'll futz with this and see how it goes, but did want to post what I ran= into. Here's the code from my org-mode file:

---
#+begin_src latex :packages '((&= quot;" "tikz")) :file gantt.pdf
\newcommand\ganttl= ine[4]{% line, tag, start end
\node at (0,#1) [anchor=3Dbase east= ] {#2};
\fill[blue] (#3/20,#1-.2) rectangle (#4/20,#1+.2);}

\begin{tikzpicture}[y=3D-1cm]

\draw[help li= nes] (0,4.5) grid (8,0.5);

\ganttline{1}{Kickoff-M= eeting}{20}{40}
\ganttline{2}{Thinking}{45}{50}
\ganttline{3}{Implementation= }{50}{100}
\ganttline{4}{Testing}{100}{140}
\end{tikzpi= cture}
#+end_src
---

On Thu, Oct 14, 2010 at 1:24 AM, Eric S Fraga = <ucecesf@ucl.ac.u= k> wrote:
For the recent project I had to prepare, I = did have to generate a
GANTT chart. =A0I tried using TJ2 via org but found the current
implementation not suitable for my way of working. =A0Instead of using
TJ, either 2 or 3, I simply created my own chart using tikz in latex.
To make my life easier, I created a number of latex commands for this.

I've now developed some code which will take an org table and create a<= br> GANTT chart. =A0Some of you may find this useful so I've attached an or= g
document with all the codes (emacs lisp + latex) along with an
example. =A0I've also attached a PDF so you can see what I get.

The codes are not necessarily easily customisable so they may not do
what you want. =A0For the types of project proposals I have to prepare,
the level of detail I have here is sufficient.

eric

--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 =A0570D C891 93D8 FFFC F67D

_______________________________________________
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


--001636c5a76f6ea3b8049492650d-- --===============1255149824== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1255149824==--