Parcourir la source

Added the possibility to specify the height of an execution rectangle.

Giuseppe Lipari il y a 11 ans
Parent
révision
bf520d7245
2 fichiers modifiés avec 8 ajouts et 5 suppressions
  1. 2
    2
      rtsched-doc.tex
  2. 6
    3
      rtsched.sty

+ 2
- 2
rtsched-doc.tex Voir le fichier

@@ -514,7 +514,7 @@ to highlight a portion of the schedule with \texttt{RTBox}:
514 514
       \TaskArrival{1}{\n}
515 515
       \TaskExecDelta{1}{\n}{2}}
516 516
     \TaskArrival{2}{10}
517
-    \TaskExecDelta{2}{10}{3}
517
+    \TaskExecDelta[exeheight=1.5]{2}{10}{3}
518 518
     \Activation{1}{8}{2}{10}
519 519
     \Label{6}{7}{$\delta$}
520 520
   \end{RTGrid}
@@ -525,7 +525,7 @@ to highlight a portion of the schedule with \texttt{RTBox}:
525 525
       \TaskArrival{1}{\n}
526 526
       \TaskExecDelta{1}{\n}{2}}
527 527
     \TaskArrival{2}{10}
528
-    \TaskExecDelta{2}{10}{3}
528
+    \TaskExecDelta[exeheight=1.5]{2}{10}{3}
529 529
     \Activation{1}{8}{2}{10}
530 530
     \Label{6}{7}{$\delta$}
531 531
   \end{RTGrid}

+ 6
- 3
rtsched.sty Voir le fichier

@@ -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)

Chargement…
Annuler
Enregistrer