6

The following document renders a nice sequence diagram for me:

\documentclass[12pt,english]{scrartcl}

\usepackage{babel}
%\usepackage{pgfplots}


% Sequence diagrams:
\usepackage{tikz}
\usetikzlibrary{arrows,shadows} % for pgf-umlsd
\usepackage[underline=true,rounded corners=false]{pgf-umlsd}

\begin{document}

\begin{sequencediagram}
\newthread{a}{Client}
\newthread{b}{Server}
\mess{a}{X}{b}
\mess{a}{Y}{b}
\begin{call}{a}{$Z_a$}{b}{$Z_b$}\end{call}
\end{sequencediagram}

\end{document}

Good sequence diagram

But when I uncomment the line \usepackage{pgfplots}, the vertical lines and bars vanish:

Bad sequence diagram

In my real document I need the pgfplots package. So how can I make the two compatible?


I'm using MiKTeX 2.9 and TeXworks 0.4.4 r1003 on Windows XP SP2; pgf-umlsd 0.5 and pgfplots 1.6.1. I will also need it to work on an FC11 Linux system that's stuck at TeXLive 2007.


Update

Although I can't find an exact match in the pgf-umlsd issues list, issue 15 seems to describe the same conflict between pgf-umlsd and pgf-umlcd, and this was fixed in pgf-umlsd 0.7.

I locally updated the package to 0.7 in my Windows environment, but the problem persisted.

  • Both (with or without pgflots) yield identical results for me using TeXLive 2012. So, most likely you are using older packages. – Peter Grill Oct 29 '12 at 20:01
  • @PeterGrill: I managed to find some version numbers and edited them into the question. If versioning is an issue then that's a concern, as I'll also need this to work on an FC11 Linux system that's stuck at TeXLive 2007. – Lightness Races in Orbit Oct 29 '12 at 20:04
  • I guess you could try updating just the packages manually. – Peter Grill Oct 29 '12 at 20:11
  • Why not install TeXLive 2012 on the linux system? If you don't have root access, you can install it somewhere in your home directory. – Ian Thompson Oct 29 '12 at 20:16
  • 1
    Hmmm... I wish. More like I am waiting for an updated version of a package to show up: Incompatibility between currfile and enumitem?. – Peter Grill Oct 29 '12 at 21:41
5

Although I can't find an exact match in the pgf-umlsd issues list, issue 15 seems to describe the same conflict between pgf-umlsd and pgf-umlcd, and this was fixed in pgf-umlsd 0.7. However, updating pgf-umlsd to 0.7 did not solve the problem. I reverted it back to 0.5.

Updating pgfplots to 1.7 did solve the problem (due to a bug in 1.6.1 that the package author points out in the comments below).

Having done this, a cursory check shows that my usage of pgfplots doesn't appear to be broken anywhere in my real .tex files.

I had to perform this package update manually, but it works in both the Windows and FC11 Linux environments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.