Permalink
Browse files

sf -> factor

  • Loading branch information...
1 parent 9134512 commit cd512c6c7bcf7920eaf2ae9fe31a33c7ddd2470f @reviczky reviczky committed Sep 15, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 doc/context/third/gantt/gantt.txt
  2. +3 −3 tex/context/third/gantt/gantt-s-mp.tex
@@ -12,7 +12,7 @@ Here is a short description of the environments and commands:
The gantt environment draws the canvas of a gantt figure.
\startgantt[…]{no of Tasks to plot}{no of time slots}
The optional argument […] can be filled in a key=value syntax, using one or more of the following keys:
-* sf - MetaPost scale factor (default: 1)
+* factor - MetaPost scale factor (default: 1)
* xunitlength - length of one time slot (default: 1cm)
* style - fontsize of labels (default: \tf)
* titlestyle - fontsize of title section (default: \tfx)
@@ -50,7 +50,7 @@
\getparameters[\????gantt][#1]}
\setupgantt
- [sf=1,
+ [factor=1,
xunitlength=1cm,
style=\tf,
titlestyle=\tfx,
@@ -80,7 +80,7 @@
% drawledgerline - Switch to enable/disable the drawing of horizontal ledger lines (default value: false)
\long\def\dostartgantt[#1]#2#3%
{\getparameters[\????gantt][#1]%
- \gdef\gantt!sf{\@@@@ganttsf}
+ \gdef\gantt!factor{\@@@@ganttfactor}
\gdef\gantt!ganttunitlength{\@@@@ganttxunitlength}
\gdef\gantt!style{\getvalue{@@ganttstyle}}
\gdef\gantt!titlestyle{\getvalue{@@gantttitlestyle}}
@@ -123,7 +123,7 @@
{\startMPdrawing
% debug
% draw bbox currentpicture withcolor .625red;
- currentpicture := currentpicture scaled \gantt!sf;
+ currentpicture := currentpicture scaled \gantt!factor;
\stopMPdrawing
\MPdrawingdonetrue\getMPdrawing
\resetMPdrawing

0 comments on commit cd512c6

Please sign in to comment.