summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-18 18:22:48 +0000
committerKarl Berry <karl@freefriends.org>2009-05-18 18:22:48 +0000
commitd94921c034f3fdf580fd994df4691a4035a94067 (patch)
tree39e5fc828f266ab156d5873c9eb735acada83894 /Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex
parent9ec59a52efe9f9a4e9dbdfb47f893f66e718ab69 (diff)
new pstricks package pst-gantt (13may09)
git-svn-id: svn://tug.org/texlive/trunk@13210 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex199
1 files changed, 199 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex b/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex
new file mode 100644
index 00000000000..c5c64403b4c
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex
@@ -0,0 +1,199 @@
+%% $Id: pst-func-doc.tex 86 2009-01-29 10:34:00Z herbert $
+\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
+ headexclude,footexclude,oneside]{pst-doc}
+\usepackage[utf8]{inputenc}
+\usepackage{pst-gantt}
+\let\pstGanntFV\fileversion
+\usepackage{pstricks-add}
+\usepackage{lscape}
+\lstset{pos=t,wide=true,language=PSTricks,
+ morekeywords={},basicstyle=\footnotesize\ttfamily}
+%
+\begin{document}
+
+\title{\texttt{pst-gannt}}
+\subtitle{Gannt charts; v.\pstGanntFV}
+\author{Denis Girou\\Herbert Vo\ss}
+\docauthor{Herbert Vo\ss}
+\date{\today}
+\maketitle
+
+\tableofcontents
+
+\clearpage
+
+\begin{abstract}
+\noindent
+\LPack{pst-gannt} loads by default the following packages: \LPack{pst-node},
+\LPack{pst-grad}, \LPack{pst-xkey}, and, of course \LPack{pstricks}.
+All should be already part of your local \TeX\ installation. If not, or in case
+of having older versions, go to \url{http://www.CTAN.org/} and load the newest version.
+
+{\itshape If \LPack{pstricks-add} is loaded together with the package \LPack{pst-func} then the \Lkeyword{InsideArrow}
+ of the \Lcs{psbezier} macro doesn't work!}
+
+\vfill\noindent
+%Thanks to: \\
+%and last but not least \url{http://mathworld.wolfram.com}
+
+\end{abstract}
+
+
+
+\begin{LTXexample}
+\newpsstyle{Important}{fillstyle=solid,fillcolor=red}
+\newpsstyle{NotImportant}{fillstyle=vlines}
+\begin{PstGanttChart}{5}{7}
+\PstGanttTask{0}{3}
+\PstGanttTask{2}{1}
+\PstGanttTask[TaskStyle=Important,
+ TaskInsideLabel=Important]{2}{5}
+\PstGanttTask[TaskStyle=NotImportant]{4}{2}
+\PstGanttTask{5}{2}
+\end{PstGanttChart}
+\end{LTXexample}
+
+% Example 2
+%
+
+\begin{LTXexample}
+\newpsstyle{Important}{fillstyle=solid,fillcolor=red}
+\newpsstyle{NotImportant}{fillstyle=vlines}
+\begin{PstGanttChart}[yunit=2]{5}{7}
+\PstGanttTask{0}{3}
+\PstGanttTask{2}{1}
+\PstGanttTask[TaskStyle=Important,%
+ TaskInsideLabel=Important]{2}{5}
+\PstGanttTask[TaskStyle=NotImportant]{4}{2}
+\PstGanttTask{5}{2}
+\end{PstGanttChart}
+\end{LTXexample}
+
+\vspace{1cm}
+%
+% Example 3
+%
+
+\begin{LTXexample}
+\newpsstyle{Important}{fillstyle=solid,fillcolor=red}
+\newpsstyle{NotImportant}{fillstyle=vlines}
+\begin{PstGanttChart}[unit=2,TaskOutsideLabelMaxSize=1,
+ ChartShowIntervals]{5}{7}
+\PstGanttTask[TaskOutsideLabel={Task 1}]{0}{3}
+\PstGanttTask[TaskOutsideLabel={Task 2},TaskUnitType=Day]
+ {15}{3} % 3 days starting at day 15
+\PstGanttTask[TaskStyle=Important,TaskOutsideLabel={Task 3},
+ TaskInsideLabel={\Large\textcolor{white}{%
+ \textbf{Important}}}]{2}{5}
+\PstGanttTask[TaskStyle=NotImportant,
+ TaskOutsideLabel={Task 4}]{4}{2}
+\PstGanttTask[TaskOutsideLabel={Task 5}]{5}{2}
+\end{PstGanttChart}
+\end{LTXexample}
+
+
+%
+% Example 4
+%
+\begin{LTXexample}
+\begin{PstGanttChart}[yunit=2,ChartUnitIntervalName=Month,
+ TaskUnitIntervalValue=30,TaskUnitType=Month,
+ ChartShowIntervals]{3}{4}
+ \PstGanttTask[TaskInsideLabel={Task 1}]{0}{1}
+ \PstGanttTask[TaskInsideLabel={Task 2},TaskUnitType=Day]
+ {24}{40} % 40 days starting at day 24
+ \PstGanttTask[TaskInsideLabel={Task 3}]{2}{2}
+\end{PstGanttChart}
+\end{LTXexample}
+
+%
+% Example 5
+%
+\begin{LTXexample}
+\begin{PstGanttChart}[yunit=1.5,ChartUnitIntervalName=Year,
+ ChartUnitBasicIntervalName=Month,
+ TaskUnitIntervalValue=12,TaskUnitType=Year,
+ ChartShowIntervals]{4}{4}
+ \PstGanttTask[TaskInsideLabel={Task 1}]{0}{1}
+ \PstGanttTask[TaskInsideLabel={Task 2},TaskUnitType=Month]
+ {6}{24} % 24 months starting at month 6
+ \PstGanttTask[TaskInsideLabel={Task 3}]{2}{2}
+ \PstGanttTask[TaskInsideLabel={Task 4}]{3}{1}
+\end{PstGanttChart}
+\end{LTXexample}
+
+
+
+
+\begin{landscape}
+\definecolor{LightCyan} {rgb}{0.88,1.,1.}
+\definecolor{Orange} {rgb}{1.,0.65,0.}
+\definecolor{PaleGreen} {rgb}{0.6,0.98,0.6}
+\definecolor{Pink} {rgb}{1.,0.75,0.8}
+\psset{gradmidpoint=0,fillstyle=gradient,gradbegin=LightCyan,gradend=white}
+\newpsstyle{TaskStyleA}{gradbegin=cyan,gradend=blue}
+\newpsstyle{TaskStyleB}{gradbegin=red,gradend=Pink}
+\newpsstyle{TaskStyleC}{gradbegin=yellow,gradend=Orange}
+\newpsstyle{TaskStyleD}{gradbegin=green,gradend=PaleGreen}
+
+\begin{PstGanttChart}[yunit=2.5,xunit=3.5,ChartUnitIntervalName=Semaine,
+ ChartUnitBasicIntervalName=Jour,TaskUnitType=Jour,
+ TaskOutsideLabelMaxSize=14,ChartShowIntervals]{8}{43}
+ \psset{gradangle=90,TaskStyle=TaskStyleA}
+ \PstGanttTask[TaskOutsideLabel={\'Etude}]{0}{10}
+ \PstGanttTask[TaskOutsideLabel={R\'edaction dossier}]{6}{7}
+ \PstGanttTask[TaskOutsideLabel={Relecture et corrections}]{14}{2}
+ \PstGanttTask[TaskOutsideLabel={Soumission},TaskStyle=TaskStyleB]{17}{1}
+ \psset{TaskStyle=TaskStyleC}
+ \PstGanttTask[TaskOutsideLabel={R\'ealisation}]{25}{14}
+ \PstGanttTask[TaskOutsideLabel={Tests}]{35}{6}
+ \PstGanttTask[TaskOutsideLabel={V\'erification}]{39}{3}
+ \PstGanttTask[TaskOutsideLabel={Recette},TaskStyle=TaskStyleD]{42}{1}
+\end{PstGanttChart}
+\end{landscape}
+
+\begin{lstlisting}
+\definecolor{LightCyan} {rgb}{0.88,1.,1.}
+\definecolor{Orange} {rgb}{1.,0.65,0.}
+\definecolor{PaleGreen} {rgb}{0.6,0.98,0.6}
+\definecolor{Pink} {rgb}{1.,0.75,0.8}
+\psset{gradmidpoint=0,fillstyle=gradient,gradbegin=LightCyan,gradend=white}
+\newpsstyle{TaskStyleA}{gradbegin=cyan,gradend=blue}
+\newpsstyle{TaskStyleB}{gradbegin=red,gradend=Pink}
+\newpsstyle{TaskStyleC}{gradbegin=yellow,gradend=Orange}
+\newpsstyle{TaskStyleD}{gradbegin=green,gradend=PaleGreen}
+
+\begin{PstGanttChart}[yunit=2.5,xunit=3.5,ChartUnitIntervalName=Semaine,
+ ChartUnitBasicIntervalName=Jour,TaskUnitType=Jour,
+ TaskOutsideLabelMaxSize=14,ChartShowIntervals]{8}{43}
+ \psset{gradangle=90,TaskStyle=TaskStyleA}
+ \PstGanttTask[TaskOutsideLabel={\'Etude}]{0}{10}
+ \PstGanttTask[TaskOutsideLabel={R\'edaction dossier}]{6}{7}
+ \PstGanttTask[TaskOutsideLabel={Relecture et corrections}]{14}{2}
+ \PstGanttTask[TaskOutsideLabel={Soumission},TaskStyle=TaskStyleB]{17}{1}
+ \psset{TaskStyle=TaskStyleC}
+ \PstGanttTask[TaskOutsideLabel={R\'ealisation}]{25}{14}
+ \PstGanttTask[TaskOutsideLabel={Tests}]{35}{6}
+ \PstGanttTask[TaskOutsideLabel={V\'erification}]{39}{3}
+ \PstGanttTask[TaskOutsideLabel={Recette},TaskStyle=TaskStyleD]{42}{1}
+\end{PstGanttChart}
+\end{lstlisting}
+
+\section{List of all optional arguments for \texttt{pst-gantt}}
+
+\xkvview{family=pst-gantt,columns={key,type,default}}
+
+\bgroup
+\raggedright
+\nocite{*}
+\bibliographystyle{plain}
+\bibliography{pst-gantt-doc}
+\egroup
+
+\printindex
+
+
+
+\end{document}
+
+