Browse Source

Ajout de la command TaskMargin qui permet de spécifier un intervalle horizontal

abertout 9 years ago
parent
commit
dff08c0bae
1 changed files with 24 additions and 0 deletions
  1. 24
    0
      rtsched.sty

+ 24
- 0
rtsched.sty View File

@@ -489,7 +489,28 @@
489 489
 }
490 490
 
491 491
 
492
+%
493
+% TaskMargin
494
+% par 1: task
495
+% par 2: start time
496
+% par 3: finish time
497
+\newcommand{\TaskMargin}[4][nocommand=1]{
498
+\setkeys{RT}{#1}
499
+\@compute@yy{#2}
500
+\@compute@xx{#3}
501
+\@compute@xxx{#4}
502
+\advance \yy by .5\sy
503
+\draw [\RTLineColor, thick, \RTArrowStyle-\RTArrowStyle] (\xx,\yy) -- (\xxx,\yy);
504
+\advance \xx by \xxx \xx = .5\xx
505
+%\advance \yy by .5\RTExecHeight\sy
506
+\draw (\xx,\yy) node[above,font=\rtfont] {\RTNumberLabelSize \RTExecLabel};%\RTNumberLabelSize
507
+\@RTExecDefaultValues
508
+
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
492 512
 
513
+}
493 514
 %% %
494 515
 % % par 1: task
495 516
 % % par 2: first instant (arrival)
@@ -626,6 +647,9 @@
626 647
   \renewcommand<>{\FLine}[5][nocommand=1]{
627 648
     \only#6{\beameroriginal{\FLine}[#1]{#2}{#3}{#4}{#5}}
628 649
   }  
650
+  \renewcommand<>{\TaskMargin}[4][nocommand=1]{
651
+    \only#5{\beameroriginal{\TaskMargin}[#1]{#2}{#3}{#4}}
652
+  }
629 653
 }
630 654
 {\typeout{beamer not loaded}}
631 655
 

Loading…
Cancel
Save