|
@@ -3,7 +3,7 @@
|
3
|
3
|
\typeout{'rtsched' style for Latex and PSTricks}
|
4
|
4
|
\typeout{Easily draw real-time schedules in TeX/Latex.}
|
5
|
5
|
\typeout{(c) 2005, Giuseppe Lipari, Pisa, Italy (g.lipari@sssup.it)}
|
6
|
|
-\typeout{Version 1.1}
|
|
6
|
+\typeout{Version 1.2beta}
|
7
|
7
|
|
8
|
8
|
\RequirePackage{multido}
|
9
|
9
|
\RequirePackage{pstricks}
|
|
@@ -30,6 +30,7 @@
|
30
|
30
|
\def\RTDefAxisInvisible{0}
|
31
|
31
|
\def\RTDefLineWidth{1pt}
|
32
|
32
|
\def\RTDefLineStyle{solid}
|
|
33
|
+\def\RTDefExecHeight{1}
|
33
|
34
|
|
34
|
35
|
\def\RTExecLabel{\ }
|
35
|
36
|
\def\RTTaskSymbol{\RTDefTaskSymbol}
|
|
@@ -46,6 +47,7 @@
|
46
|
47
|
\def\RTRowLabelOffset{\RTDefRowLabelOffset}
|
47
|
48
|
\def\RTLineWidth{\RTDefLineWidth}
|
48
|
49
|
\def\RTLineStyle{\RTDefLineStyle}
|
|
50
|
+\def\RTExecHeight{\RTDefExecHeight}
|
49
|
51
|
|
50
|
52
|
\define@key{RT}{height}[\RTNullWindowHeight]{\def\RTWindowHeight{#1}}
|
51
|
53
|
\define@key{RT}{width}[10cm]{\def\RTWindowLength{#1}}
|
|
@@ -66,6 +68,7 @@
|
66
|
68
|
\define@key{RT}{axis}[\RTDefAxisInvisible]{\def\RTAxisInvisible{#1}}
|
67
|
69
|
\define@key{RT}{lw}[\RTDefLineWidth]{\def\RTLineWidth{#1}}
|
68
|
70
|
\define@key{RT}{style}[\RTDefLineStyle]{\def\RTLineStyle{#1}}
|
|
71
|
+\define@key{RT}{exeheight}[\RTDefExecHeight]{\def\RTExecHeight{#1}}
|
69
|
72
|
|
70
|
73
|
%%
|
71
|
74
|
%% temporaries
|
|
@@ -293,7 +296,7 @@
|
293
|
296
|
\setkeys{RT}{#1}%
|
294
|
297
|
\@compute@yy{#2}
|
295
|
298
|
\@compute@xx{#3}
|
296
|
|
- \yyy = \yy \advance \yyy by \sy
|
|
299
|
+ \yyy = \yy \advance \yyy by \RTExecHeight\sy
|
297
|
300
|
\@compute@xxx{#4}
|
298
|
301
|
\psframe[fillstyle=\RTTaskFill,fillcolor=\RTTaskColor,linecolor=\RTLineColor](\xx,\yy)(\xxx,\yyy)
|
299
|
302
|
\advance \xx by \xxx \xx = .5\xx
|
|
@@ -440,7 +443,7 @@
|
440
|
443
|
\setkeys{RT}{#1}%
|
441
|
444
|
\@compute@yy{#2}
|
442
|
445
|
\@compute@xx{#3}
|
443
|
|
- \yyy = \yy \advance \yyy by \sy
|
|
446
|
+ \yyy = \yy \advance \yyy by \RTExecHeight\sy
|
444
|
447
|
%\@compute@xxx{#4}
|
445
|
448
|
\xxx = \xx \advance \xxx by #4\sx
|
446
|
449
|
\psframe[fillstyle=\RTTaskFill,fillcolor=\RTTaskColor,linecolor=\RTLineColor](\xx,\yy)(\xxx,\yyy)
|