emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Was tj3 --> tikz gantt chart
@ 2010-11-08 22:46 John Hendy
  2010-11-09  9:46 ` Eric S Fraga
  0 siblings, 1 reply; 9+ messages in thread
From: John Hendy @ 2010-11-08 22:46 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode


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

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 <ucecesf@ucl.ac.uk> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 3531 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] 9+ messages in thread

end of thread, other threads:[~2011-08-30 19:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 22:46 Was tj3 --> tikz gantt chart John Hendy
2010-11-09  9:46 ` Eric S Fraga
2011-07-21 21:33   ` John Hendy
2011-07-27 12:40     ` Bastien
2011-08-03 23:18       ` John Hendy
2011-08-30 11:47     ` Eric S Fraga
2011-08-30 12:58       ` John Hendy
2011-08-30 19:29         ` Eric S Fraga
2011-08-30 19:39           ` John Hendy

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).