-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix \mess not being able to accept some commands #1
base: master
Are you sure you want to change the base?
Conversation
The newline between \node and node text in \messanother prevented TikZ parsing tricks that suspend command evalutation from working. In my use case, \ref inside \mess broke horribly,while working fine in messcall and call.
Can you provide a minimal example for the failure because as far as I can see you have not made a semantic change. |
Ah sure - I was using \lstinline (from lstlisting) in the \messanother and it kept breaking horribly until I made this change. Calls didn't break, that's how I divined what the difference is. |
You cannot use any verbatim material in |
Well, I was able to... and in \call's the verbatim material works fine as well. You're welcome to go ahead and try. |
Sure thing, here you go! This doesn't work, neither with nor without your patch. \documentclass{article}
\usepackage{pgf-umlsd}
\usepackage{listings}
\begin{document}
\begin{sequencediagram}
\newthread{a}{:Thread A}
\newthread[gray]{b}{:Thread B}
\mess[1]{a}{\lstinline|{|}{b}
\mess[1]{b}{\lstinline|#|}{a}
\end{sequencediagram}
\end{document}
There is no such thing. |
Oh you're right, my memory is hazy. The patch indeed didn't fix \lstinline, but it did fix \ref and \autoref usage in messages. (And I even written it in the MR message and still got it wrong!) |
No, pgf-umlsd/tex/latex/pgf-umlsd/pgf-umlsd.sty Lines 269 to 270 in 8766cc1
This library just has to be rewritten (like I already did for pgf-pie). |
The newline between \node and node text in \messanother prevented TikZ parsing tricks that suspend command evalutation from working.
In my use case, \ref inside \mess broke horribly,while working fine in messcall and call.