domingo, 27 de marzo de 2011

Some improvements for the gantt.sty file for LaTeX - The new commands for drawing milestones

Martin Kumm began the development of the gantt.sty package for drawing Gantt diagrams in an easy and elegant way. Until now, there was no command for drawing milestones, which are very important in any proyect. Furthermore, in the old version were some bugs when the unit for \ganttbarcon is less than 1 unit of the previous Gantt bar. In the following picture you can see the bugs of the version 1.2 of the gantt.sty package.





In the new version (1.3) I added two new commands: \ganttmilestone and \ganttmilestonecon for drawing milestones. In addition you can select the color of the milestone.

\ganttmilestone[color=]{label}{start}
\ganttmilestonecon[color=]{label}{start}


I made the group label text with a bold text by default, because it usually the groups represents stages of a proyect. If you don't want this feature, you can search the \bfseries command in the gantt.sty file and erase it.


5 comentarios:

  1. Hola Andrés!
    me he bajado el gantt.sty pero me da problemas diciendo que no encuentra este package. Donde debería de situarlo? De momento lo tengo en la carpeta C:\Archivos de programa\MiKTeX 2.8\tex\latex\pgf\frontendlayer como el tikz.sty
    Gracias

    ResponderBorrar
  2. Hola! no soy usuarios de Windows, pero hice una prueba en el pc de mi hermano y a mi reconoció el archivo gantt.sty si lo pones en la misma carpeta de donde está el archivo a compilar. No olvides utilizar el comando \usepackage{gantt} en el preámbulo.

    Respecto a instalar definitivamente el paquete encontré esta página http://en.wikibooks.org/wiki/LaTeX/Packages/Installing_Extra_Packages

    Espero que tengas éxito.

    Muchos saludos,

    Andrés

    ResponderBorrar
  3. Quiza pueda ser útil esta informacion:
    En Ubuntu se encuentra en /usr/share/texmf/tex/latex/base

    En Windows se encuentra en C:/Program Files/MikTeX2.9/tex/latex/base

    Saludos ;)

    ResponderBorrar
  4. ¡Excelente! Muy fácil de usar y muy elegante. ¡Gracias! era justo lo que necesitaba.

    ResponderBorrar
  5. ¡Excelente! ¡Gracias! Muy elegante y fácil de usar, era justo lo que necesitaba. Lo comento acá porque en la página de pluto me pide logging. Saludos.

    ResponderBorrar