Browse Source

Add of TaskInterval command

abertout 9 years ago
parent
commit
019bedf63f
1 changed files with 8 additions and 9 deletions
  1. 8
    9
      rtsched.sty

+ 8
- 9
rtsched.sty View File

490
 
490
 
491
 
491
 
492
 %
492
 %
493
-% TaskMargin
493
+% TaskInterval : specify an interval with an horizontal double arrow
494
 % par 1: task
494
 % par 1: task
495
 % par 2: start time
495
 % par 2: start time
496
 % par 3: finish time
496
 % par 3: finish time
497
-\newcommand{\TaskMargin}[4][nocommand=1]{
497
+% par 4: label
498
+
499
+\newcommand{\TaskInterval}[5][nocommand=1]{
498
 \setkeys{RT}{#1}
500
 \setkeys{RT}{#1}
499
 \@compute@yy{#2}
501
 \@compute@yy{#2}
500
 \@compute@xx{#3}
502
 \@compute@xx{#3}
503
 \draw [\RTLineColor, thick, \RTArrowStyle-\RTArrowStyle] (\xx,\yy) -- (\xxx,\yy);
505
 \draw [\RTLineColor, thick, \RTArrowStyle-\RTArrowStyle] (\xx,\yy) -- (\xxx,\yy);
504
 \advance \xx by \xxx \xx = .5\xx
506
 \advance \xx by \xxx \xx = .5\xx
505
 %\advance \yy by .5\RTExecHeight\sy
507
 %\advance \yy by .5\RTExecHeight\sy
506
-\draw (\xx,\yy) node[above,font=\rtfont] {\RTNumberLabelSize \RTExecLabel};%\RTNumberLabelSize
507
-\@RTExecDefaultValues
508
+\draw (\xx,\yy) node[above,font=\rtfont] {\RTTaskLabelSize #5};%
508
 
509
 
509
- % \advance \xx by \xxx \xx = .5\xx
510
-  %\advance \yy by .5\RTExecHeight\sy
511
-  %\draw (\xx,\yy) node[font=\rtfont] {\RTNumberLabelSize \RTExecLabel};%\RTNumberLabelSize
510
+\@RTExecDefaultValues
512
 
511
 
513
 }
512
 }
514
 %% %
513
 %% %
647
   \renewcommand<>{\FLine}[5][nocommand=1]{
646
   \renewcommand<>{\FLine}[5][nocommand=1]{
648
     \only#6{\beameroriginal{\FLine}[#1]{#2}{#3}{#4}{#5}}
647
     \only#6{\beameroriginal{\FLine}[#1]{#2}{#3}{#4}{#5}}
649
   }  
648
   }  
650
-  \renewcommand<>{\TaskMargin}[4][nocommand=1]{
651
-    \only#5{\beameroriginal{\TaskMargin}[#1]{#2}{#3}{#4}}
649
+  \renewcommand<>{\TaskInterval}[5][nocommand=1]{
650
+    \only#6{\beameroriginal{\TaskInterval}[#1]{#2}{#3}{#4}{#5}}
652
   }
651
   }
653
 }
652
 }
654
 {\typeout{beamer not loaded}}
653
 {\typeout{beamer not loaded}}

Loading…
Cancel
Save