diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-26 00:39:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-26 00:39:42 +0000 |
commit | 0288945faa2fa7ad7b023fe54b2eefac37ba88f6 (patch) | |
tree | 32af5c6c77b6f3021b95f2566c376c6758e1388a /Master/texmf-dist/doc/generic/pst-gantt | |
parent | 8a3fcdbd97fc63bf814e0fe3c68a4bf65967db6d (diff) |
pst-gantt 0.21 (24feb10)
git-svn-id: svn://tug.org/texlive/trunk@17206 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-gantt')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-gantt/Changes | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.pdf | bin | 107522 -> 119854 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex | 106 |
3 files changed, 78 insertions, 30 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-gantt/Changes b/Master/texmf-dist/doc/generic/pst-gantt/Changes index c1d33e7d412..d5e4e4f6d74 100644 --- a/Master/texmf-dist/doc/generic/pst-gantt/Changes +++ b/Master/texmf-dist/doc/generic/pst-gantt/Changes @@ -1,4 +1,6 @@ ..... pst-gantt.tex +0.21 2010-02-23 - add optional arguments + ChartModulo and ChartModuloValue 0.20 2009-05-12 - first CTAN version diff --git a/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.pdf b/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.pdf Binary files differindex 88bc952e2fc..0fb61b9a4be 100644 --- a/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.pdf 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 index c5c64403b4c..cb75404a4d5 100644 --- a/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-gantt/pst-gantt-doc.tex @@ -6,8 +6,8 @@ \let\pstGanntFV\fileversion \usepackage{pstricks-add} \usepackage{lscape} -\lstset{pos=t,wide=true,language=PSTricks, - morekeywords={},basicstyle=\footnotesize\ttfamily} +\lstset{explpreset={pos=l,width=0.4\linewidth,overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe={}}, + escapechar=?} % \begin{document} @@ -29,17 +29,27 @@ 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} +\section{Environments and Macros} + +The main environemnt is \Lenv{PstGanttChart} with the following syntax: + +\begin{BDef} +\LBEG{PstGanttChart}\OptArgs\Largb{vertical units}\Largb{horizontal units}\\ +\ldots +\LEND{PstGanttChart}\\[5pt] +\Lcs{PstGanttTask}\OptArgs\Largb{Start}\Largb{End} +\end{BDef} + + +\begingroup \begin{LTXexample} \newpsstyle{Important}{fillstyle=solid,fillcolor=red} \newpsstyle{NotImportant}{fillstyle=vlines} @@ -52,10 +62,13 @@ of having older versions, go to \url{http://www.CTAN.org/} and load the newest v \PstGanttTask{5}{2} \end{PstGanttChart} \end{LTXexample} - +\endgroup +\xLkeyset{fillstyle=vlines}\xLenv{PstGanttChart}\xLcs{PstGanttTask}\xLkeyword{TaskStyle} +\xLkeyword{TaskInsideLabel} % Example 2 % +\begingroup \begin{LTXexample} \newpsstyle{Important}{fillstyle=solid,fillcolor=red} \newpsstyle{NotImportant}{fillstyle=vlines} @@ -68,59 +81,92 @@ of having older versions, go to \url{http://www.CTAN.org/} and load the newest v \PstGanttTask{5}{2} \end{PstGanttChart} \end{LTXexample} +\endgroup +\xLkeyset{fillstyle=vlines}\xLenv{PstGanttChart}\xLcs{PstGanttTask}\xLkeyword{TaskStyle} +\xLkeyword{TaskInsideLabel} \vspace{1cm} % % Example 3 % -\begin{LTXexample} +\begingroup +\begin{LTXexample}[pos=t] \newpsstyle{Important}{fillstyle=solid,fillcolor=red} \newpsstyle{NotImportant}{fillstyle=vlines} \begin{PstGanttChart}[unit=2,TaskOutsideLabelMaxSize=1, - ChartShowIntervals]{5}{7} + ChartShowIntervals]{5}{7} \PstGanttTask[TaskOutsideLabel={Task 1}]{0}{3} -\PstGanttTask[TaskOutsideLabel={Task 2},TaskUnitType=Day] - {15}{3} % 3 days starting at day 15 +\PstGanttTask[TaskOutsideLabel={Task 2},TaskUnitType=Day]{15}{3}%3 days start at 15 \PstGanttTask[TaskStyle=Important,TaskOutsideLabel={Task 3}, - TaskInsideLabel={\Large\textcolor{white}{% - \textbf{Important}}}]{2}{5} -\PstGanttTask[TaskStyle=NotImportant, - TaskOutsideLabel={Task 4}]{4}{2} + 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} +\endgroup +\xLkeyset{fillstyle=vlines}\xLenv{PstGanttChart}\xLcs{PstGanttTask}\xLkeyword{TaskStyle} +\xLkeyword{TaskOutsideLabel}\xLkeyword{TaskOutsideLabelMaxSize}\xLkeyword{ChartShowIntervals} +\xLkeyword{TaskInsideLabel}\xLkeyset{TaskUnitType=Day} % % 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 +\psset{unit=1cm} +\begin{LTXexample}[pos=t] +\begin{PstGanttChart}[yunit=1.5, + ChartUnitIntervalName=KW,ChartUnitBasicIntervalName=KW, + ChartModulo,ChartModuloValue=52, + TaskUnitIntervalValue=14,TaskUnitType=KW,ChartStartInterval=49, + ChartShowIntervals]{4}{8} + \PstGanttTask[TaskInsideLabel={Task 1}]{0}{1} + \PstGanttTask[TaskInsideLabel={Task 2}]{3}{4} \PstGanttTask[TaskInsideLabel={Task 3}]{2}{2} + \PstGanttTask[TaskInsideLabel={Task 4}]{3}{5} \end{PstGanttChart} \end{LTXexample} +\xLkeyword{ChartModulo} +\xLkeyword{ChartModuloValue} +\xLkeyword{ChartStartInterval} % % Example 5 % +\begin{LTXexample}[pos=t] +\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 start at 24 +\PstGanttTask[TaskInsideLabel={Task 3}]{2}{2} +\end{PstGanttChart} +\end{LTXexample} +\xLkeyset{TaskUnitType=Day}\xLkeyset{TaskUnitType=Month}\xLkeyset{ChartUnitIntervalName=Month} +\xLkeyset{TaskUnitIntervalName=Month}\xLkeyset{TaskUnitIntervalValue=Month}\xLkeyword{ChartShowIntervals} + +% +% Example 6 +% \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} +\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 start at 6 +\PstGanttTask[TaskInsideLabel={Task 3}]{2}{2} +\PstGanttTask[TaskInsideLabel={Task 4}]{3}{1} \end{PstGanttChart} \end{LTXexample} +\xLkeyword{yunit} +\xLkeyword{ChartUnitIntervalName=Year} +\xLkeyword{ChartUnitBasicIntervalName=Month} +\xLkeyword{TaskUnitIntervalValue=12} +\xLkeyword{TaskUnitType=Year} +\xLkeyword{ChartShowIntervals} |