RTSched: my first LaTeX package

This is a short post, just to let you know that my rtsched LaTeX package is now on CTAN.

If you are a real-time researcher, student or professor, you may appreciate it. It allows you to draw things like this:

with a few lines of LaTeX code. For example, the above diagram has been produced by the following LaTeX text:

\begin{RTGrid}{2}{20}
  \multido{\n=0+4}{5}{
    \TaskArrDead{1}{\n}{4}
    \TaskExecDelta{1}{\n}{1}}
  \multido{\n=0+6}{3}{
    \TaskArrDead{2}{\n}{6}}
  \TaskRespTime{2}{0}{4}  % draws the hatched rectangle in [0,4]
  \TaskExecution{2}{1}{4} % draws execution (over the previous rectangle)
  \TaskRespTime{2}{6}{4}  % draws the hatched rectangle in [6,10]
  \TaskExecution{2}{6}{8} % draws execution
  \TaskExecution{2}{9}{10} % draws execution
  \TaskRespTime{2}{12}{4} % draws the hatched rectangle in [12,16]
  \TaskExecution{2}{13}{16} % draws execution
\end{RTGrid}

Of course, you will find a list of examples and a little documentation coming along with the package. rtsched can also be used together with Beamer for making slides.

The package should be already available on MikTeX. Have fun!

3 thoughts on “RTSched: my first LaTeX package

  1. Pingback: Frattanto nella blogosfera #44 « Ok, panico

  2. This is tremendously useful! I require to simulate some scheduling algorithms, and this package is exactly what I need to do the job well, thank you!

    Reply
    • Thanks a lot. If you have comments for improving it, I will be happy to thake them into consideration. I am currently thinking of making some additional change. Also, I would like to know if you find problems due to the fact that is impossible to use pdflatex.

      Reply

Leave a reply to glipari Cancel reply