From: John Hendy <jw.hendy@gmail.com>
To: e.fraga@ucl.ac.uk
Cc: emacs-orgmode@gnu.org
Subject: Was tj3 --> tikz gantt chart
Date: Mon, 8 Nov 2010 16:46:34 -0600 [thread overview]
Message-ID: <AANLkTikV=MzA+NXTbPxa0UbtUQkoNATuoOzDmDfp=VtZ@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2010-11-08 22:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 22:46 John Hendy [this message]
2010-11-09 9:46 ` Was tj3 --> tikz gantt chart 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikV=MzA+NXTbPxa0UbtUQkoNATuoOzDmDfp=VtZ@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).