소스 검색

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

abertout 9 년 전
부모
커밋
dff08c0bae
1개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. 24
    0
      rtsched.sty

+ 24
- 0
rtsched.sty 파일 보기

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
 % % par 1: task
515
 % % par 1: task
495
 % % par 2: first instant (arrival)
516
 % % par 2: first instant (arrival)
626
   \renewcommand<>{\FLine}[5][nocommand=1]{
647
   \renewcommand<>{\FLine}[5][nocommand=1]{
627
     \only#6{\beameroriginal{\FLine}[#1]{#2}{#3}{#4}{#5}}
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
 {\typeout{beamer not loaded}}
654
 {\typeout{beamer not loaded}}
631
 
655
 

Loading…
취소
저장