Graphics, Figures & TablesHow to make research proposal including a gantt style chart?

Information and discussion about graphics, figures & tables in LaTeX documents.
SKKhan
Posts: 5
Joined: Sat Aug 01, 2015 8:08 am

How to make research proposal including a gantt style chart?

Post by SKKhan »

I make the research proposal for my higher studies, now I am interested to make the timeframe/gantt style chart in the end of my research prposal to explain them how I start my research work and explain them.

Code: Select all

\documentclass[12pt]{article}

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \usepackage{pgfgantt}

 \newganttchartelement*{mymilestone}{
 mymilestone/.style={
 shape=isosceles triangle,
 inner sep=0pt,
 draw=cyan,
 top color=white,
 bottom color=cyan!50
 },
 mymilestone incomplete/.style={
 /pgfgantt/mymilestone,
 draw=yellow,
 bottom color=yellow!50
 },
 mymilestone label font=\slshape,
 mymilestone left shift=0pt,
 mymilestone right shift=0pt
 }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 \usepackage{amscd}
 \usepackage{amsmath}
 \usepackage{amssymb}
 \usepackage{amsthm}


 \usepackage{epsfig}
 \usepackage{verbatim}
 \usepackage{graphicx}
 \usepackage{amsthm}
 \pagestyle{empty}
 \usepackage{color}
 %\usepackage[all,dvips]{xy}
 \newcommand{\sign}[1]{%
 \begin{tabular}[t]{@{}l@{}}
 \makebox[1.5in]{\dotfill}\\
 \strut#1\strut
 \end{tabular}%
 }
 \newcommand{\Date}{%
 \begin{tabular}[t]{@{}p{1.5in}@{}}
 \\[-2ex]
 \strut Date: \dotfill\strut
 \end{tabular}%
 }

 \setlength{\textheight}{8.5in} \setlength{\topmargin}{0.0in}
 \setlength{\headheight}{0.0in} \setlength{\headsep}{0.0in}
 \setlength{\leftmargin}{0.5in}
 \setlength{\oddsidemargin}{0.0in}
 %\setlength{\parindent}{1pc}
 \setlength{\textwidth}{6.5in}
 %\linespread{1.6}

 \newtheorem{definition}{Definition}
 \newtheorem{problem}{Problem}

 \newtheorem{theorem}{Theorem}[section]
 \newtheorem{lemma}[theorem]{Lemma}
 \newtheorem{note}[theorem]{Note}
 \newtheorem{corollary}[theorem]{Corollary}
 \newtheorem{prop}[theorem]{Proposition}

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 \begin{document}
 \thispagestyle{empty}

 \bigskip
 \bigskip

 \centerline{\textbf{\Large{Research Proposal}}}

 \bigskip
 \bigskip


 \noindent \textbf{Name:} %Your name goes here.
  ABCD

 \bigskip

 \noindent \textbf{Field of the Project:} %Write your majors, minors or  GECs.
 Computer Science.

 \bigskip

 \noindent \textbf{Project Title:} %Write a brief description of the topic you wish to work on. This should be done in 40 words or less.
  Subject
 \bigskip

 \noindent\textbf{Abstract of the Project:} %Remove the comment (percentage) symbol in front of the appropriate category:
  Abstract
 %double with another major.

 \bigskip

 \noindent\textbf{State of the Art:}%Remove the comment (percentage) symbol in front of the appropriate category:


\bigskip

\noindent \textbf{Description of the Project:} %Write the name of any professor(s) you think you might want to work with on this topic. You may leave this section blank if you don't know.

\bigskip

\noindent \textbf{Expected results and practical/technical/commercial outcomes:}


\bigskip

\begin{thebibliography}{99}

\end{thebibliography}

\begin{ganttchart}[
 milestone/.append style={fill=orange}]{1}{12}
 vgird,
 hgird,
\gantttitle{2014}{12}
\gantttitle{2015}{12}\\

%\gantttitle{2016}{12}
%\gantttitle{2017}{12} \\
%Second Group 1
\gantttitlelist{1,...,12}{1}
\gantttitlelist{1,...,12}{1} \\
\ganttgroup{Group 1}{1}{7} \\
\ganttbar{Task 1}{1}{2} \\
\ganttlinkedbar{Task 2}{3}{7} \ganttnewline
\ganttmilestone{Milestone}{7} \ganttnewline
\ganttmymilestone{New milestone}{8} \ganttnewline
\ganttbar{Final Task}{9}{12}\\
\ganttlink{elem2}{elem3}
\ganttlink{elem3}{elem4}
\ganttlink{elem4}{elem5}
%Second Group 2
\ganttgroup{Group 2}{14}{16} \\
\ganttbar{Task 1}{14}{15} \\
\ganttlinkedbar{Task 2}{16}{17} \ganttnewline
\ganttmilestone{Milestone}{18} \ganttnewline
\ganttmymilestone{New milestone}{20} \ganttnewline
\ganttbar{Final Task}{19}{24}
\ganttlink{elem6}{elem7}
\ganttlink{elem8}{elem9}
\ganttlink{elem9}{elem10}
\ganttlink{elem10}{elem11}
\end{ganttchart}






\vspace{2cm}
\noindent
%\begin{minipage}[t]{0.4\linewidth}
%    \raggedright
%    \sign{Supervisor}
%    \par
%    Mr.\,L. L. Silva\par 
%    Department of Computing and Information Systems, \par
%    Faculty of Applied Sciences, \par
%    University of Moratuwa
%  \end{minipage}%
\hfill
\begin{minipage}[t]{0.4\linewidth}
\sign{Signature of the Supervisor $\&$ Stamp}
\Date

\end{minipage}

 \end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to make research proposal including a gantt style chart?

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

Thank you for sharing your code. It's already a nice chart. I compiled it, and here is an image to show readers the status of your code:
gantt-chart.png
gantt-chart.png (20.6 KiB) Viewed 12171 times
So you made that chart. Do you have a specific question regarding it?

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to make research proposal including a gantt style chart?

Post by Johannes_B »

This is a crosspost to TeX.SX.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to make research proposal including a gantt style ch

Post by Stefan Kottwitz »

Ah, I see. There was some discussion as nobody seemed to understand the specific question. People don't like the "do it all for me" questions there. ;-)

If you would like to tackle the problem here: where is the first problem? Do you need month names? A caption? Do you get an error message if you try <what>? Do you want us to type text? ;-) Just tell us specific problems where we could help.

Stefan
LaTeX.org admin
SKKhan
Posts: 5
Joined: Sat Aug 01, 2015 8:08 am

Re: How to make research proposal including a gantt style ch

Post by SKKhan »

I make the research proposal for my higher studies which is simple for me to make it. Now I want to make the gantt chart in the end of following research proposal. I am going to share the following link to show you research proposal. http://www.slideshare.net/lightonphiri/ ... h-proposal

I think you will understand the problem.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to make research proposal including a gantt style chart?

Post by Stefan Kottwitz »

I understand the goal.
SKKhan wrote:Now I want to make the gantt chart in the end of following research proposal.
Great, so feel free to ask any specific question in the process of making the chart. Such as posting the current status of your chart and telling, which specific problem you may encounter.

Stefan
LaTeX.org admin
SKKhan
Posts: 5
Joined: Sat Aug 01, 2015 8:08 am

Re: How to make research proposal including a gantt style ch

Post by SKKhan »

Now my plan to make the gantt chart for 4-years and my code is not working for 4-year. It is possible for you to merge the following code with my research proposal code.
http://tex.stackexchange.com/questions/ ... t-in-label
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to make research proposal including a gantt style ch

Post by Stefan Kottwitz »

I gladly help with specific LaTeX questions or problems, even if they would be complicated.

I just don't do commissioned work for whole complex projects in my rare spare time for free.

Stefan
LaTeX.org admin
SKKhan
Posts: 5
Joined: Sat Aug 01, 2015 8:08 am

How to make research proposal including a gantt style chart?

Post by SKKhan »

Code: Select all

\documentclass[12pt]{article}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[square, numbers, comma, sort & compress]{natbib}
\usepackage[table]{xcolor}
\usepackage{multirow}
\usepackage{rotating}

% make sure the table still fits on the page:
\usepackage[margin=1.5cm]{geometry}

% the `MonthLetters' start with S (september):
\newcommand*\MonthLetters{SONDJFMAMJJ}
% that makes forty months until the end of 2016 ...
\newcommand*\NumMonths{40}
% ... namely 4 for 2013 and 12 for the subsequent ones ...
\newcommand*\YearMonths{4,12,12,12,}
% ... and the first year still being 2013:
\newcommand*\FirstYear{2013}

\makeatletter
\newcommand*\YearHeadRow{%
  \expandafter\TL@year@head\number\numexpr\FirstYear\expandafter\relax\expandafter\@nil\YearMonths\@nil
}
\def\TL@year@head#1\@nil#2,#3\@nil{%
  &\multicolumn{#2}{c|}{#1}%
  \ifx\\#3\\\else
    \TL@after@fi\TL@year@head\number\numexpr#1+1\relax\@nil#3\@nil
  \fi
}
\newcommand*\YearMonthSep[1]{%
  \cline{\numexpr#1+1\relax-\numexpr#1+\NumMonths\relax}%
}
\newcommand*\MonthHeadRow{%
  \expandafter\TL@month@head\expandafter\@ne\expandafter\@nil\MonthLetters\@nil
}
\def\TL@month@head#1\@nil#2#3\@nil{%
  &#2%
  \ifnum\NumMonths>#1 %
    \TL@after@fi\TL@month@head\number\numexpr#1+1\relax\@nil#3#2\@nil
  \fi
}
\newcount\TL@block@first
\newcount\TL@block@last
\newcommand*\NewBlock[3]{%
  \xglobal\colorlet{TL@block}{#1}%
  \global\TL@block@first\numexpr#2-1\relax
  \global\TL@block@last\numexpr#3+1\relax
  \ignorespaces
}
\newcounter{TL@group}
\newcounter{TL@task}[TL@group]
\renewcommand*\theTL@task{\theTL@group.\arabic{TL@task}}
  \newcommand*\Task[1]{%
  \stepcounter{TL@task}%
  \theTL@task&#1%
  \TL@cell\@ne
  \\\hline
}
\newcommand*\NewGroup{%
  \stepcounter{TL@group}%
}
\def\TL@cell#1{%
  &%
  \ifnum#1>\TL@block@first
    \ifnum#1<\TL@block@last
      \cellcolor{TL@block}%
    \fi
  \fi
  \ifnum\NumMonths>#1 %
    \expandafter\TL@cell\expandafter{\number\numexpr#1+1\expandafter}%
  \fi
}
\def\TL@after@fi#1\fi{\fi#1}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{amscd}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}


\usepackage{epsfig}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{amsthm}
\pagestyle{empty}
\usepackage{color}
%\usepackage[all,dvips]{xy}
\newcommand{\sign}[1]{%
  \begin{tabular}[t]{@{}l@{}}
  \makebox[1.5in]{\dotfill}\\
  \strut#1\strut
  \end{tabular}%
}
\newcommand{\Date}{%
  \begin{tabular}[t]{@{}p{1.5in}@{}}
  \\[-2ex]
  \strut Date: \dotfill\strut
  \end{tabular}%
}

\setlength{\textheight}{8.5in} \setlength{\topmargin}{0.0in}
\setlength{\headheight}{0.0in} \setlength{\headsep}{0.0in}
\setlength{\leftmargin}{0.5in}
\setlength{\oddsidemargin}{0.0in}
%\setlength{\parindent}{1pc}
\setlength{\textwidth}{6.5in}
%\linespread{1.6}

\newtheorem{definition}{Definition}
\newtheorem{problem}{Problem}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{note}[theorem]{Note}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{prop}[theorem]{Proposition}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\thispagestyle{empty}

\bigskip
\bigskip

\centerline{\textbf{\Large{Research Proposal}}}

\bigskip
\bigskip


\noindent \textbf{Name:} %Your name goes here.
ABCD

\bigskip

\noindent \textbf{Field of the Project:} %Write your majors, minors or GECs.
Computer Science.

\bigskip

\noindent \textbf{Project Title:} %Write a brief description of the topic you wish to work on. This should be done in 40 words or less.
Subject
\bigskip

\noindent\textbf{Abstract of the Project:} %Remove the comment (percentage) symbol in front of the appropriate category:
Abstract
%double with another major.

\bigskip

\noindent\textbf{State of the Art:}%Remove the comment (percentage) symbol in front of the appropriate category:


\bigskip

\noindent \textbf{Description of the Project:} %Write the name of any professor(s) you think you might want to work with on this topic. You may leave this section blank if you don't know.

\bigskip

\noindent \textbf{Expected results and practical/technical/commercial outcomes:}
%List the courses which are relevant; you don't need to list every mathematics course you have ever taken.

\bigskip

\begin{thebibliography}{99}

\end{thebibliography}

\setlength\tabcolsep{1pt}
  \begin{table}
    \caption{Proposed Reseacrh Timeline}
    \label{minetimeline}
    \begin{tabular}{|c|p{120pt}|*{\NumMonths}{c|}} \hline
      \multirow{2}{*}{\#} & \multirow{2}{*}{Tasks} \YearHeadRow \\
      \YearMonthSep{2}
      & \MonthHeadRow \\ \hline
      %%%%%%%%%%%%
      \NewGroup
      \NewBlock{blue}{1}{\NumMonths}
      \Task{Literature Review}
      %%%%%%   1  %%%%%%%
      \NewGroup
      \NewBlock{yellow}{1}{2}
      \Task{Confirmation Exam}
      %%%%%%   6   %%%%%%% 4
      \NewGroup
      \NewBlock{gray}{3}{5}
      \Task{PIV setup}
      \Task{PIV on $c/t = 7$ with \& without splitter plate}
      \NewBlock{gray}{5}{6}
      \Task{PIV data analysis \& comparison}
      \Task{Explanation of Feedback Loop}
      %%%%%%   10    %%%%%%% 5
      \NewGroup
      \NewBlock{green}{7}{9}
      \Task{LDV construction of c/t vs St; $c/t = 3-12$}
      \Task{LDV results analysis}
      \NewBlock{green}{5}{12}
      \Task{PIV experiment on $c/t = 8-9$ and construction}
      \Task{LDV \& PIV data analyze \& comparison}
      \Task{Stepwise variation explanation}
%      \Row{Publication 01}
      %%%%%%     8    %%%%%%% 3
      \NewGroup
      \NewBlock{orange}{7}{12}
      \Task{Construction of plates with different geometries}
      \NewBlock{orange}{12}{15}
      \Task{PIV on square edges with \& without splitter, aerofoil leading-square trailing edge with \& without splitter}
      \NewBlock{orange}{15}{16}
      \Task{PIV data analyze and comparison}
%      \Row{Publication 02}
      %%%%%%%   7    %%%%%%  3
      \NewGroup
      \NewBlock{blue}{17}{18}
      \Task{PIV with global oscillation with \& without perturbation}
      \NewBlock{blue}{18}{20}
      \Task{PIV with separate perturbation on aerofoil leading edge \& aerofoil trailing edge}
      \Task{Perturbation data analyze and comparison}
%      \Row{Publication 03}
      %%%%%%%%%%     4     %%%%%%%%%%%    2
      \NewGroup
      \NewBlock{green}{15}{21}
      \Task{Pressure probe construction}
      \NewBlock{green}{20}{22}
      \Task{Pressure measurement on $c/t$ = 7 with \& without splitter plate}
      \Task{Pressure data analyze}
%      \Row{Publication 04}
      %%%%%%%%%    1     %%%%%%%%%%%%
      \NewGroup
      \NewBlock{red}{18}{25}
      \Task{Thesis writing}
    \end{tabular}
  \end{table}






\vspace{2cm}
\noindent
  %\begin{minipage}[t]{0.4\linewidth}
%    \raggedright
%    \sign{Supervisor}
%    \par
%    Mr.\,L. L. Silva\par
%    Department of Computing and Information Systems, \par
%    Faculty of Applied Sciences, \par
%    University of Moratuwa
%  \end{minipage}%
  \hfill
  \begin{minipage}[t]{0.4\linewidth}
    \sign{Signature of the Supervisor $\&$ Stamp}
    \Date

  \end{minipage}






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%






\end{document}
Run the following code. Which I merge it
Last edited by Stefan Kottwitz on Sat Aug 01, 2015 4:17 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to make research proposal including a gantt style ch

Post by Stefan Kottwitz »

I did run the code. Maybe landscape is better suited than portrait mode, it looks a bit jammed.

Stefan
LaTeX.org admin
Post Reply