Zulip Chat Archive

Stream: FLT

Topic: tikzcd


Kevin Buzzard (May 01 2025 at 14:37):

I put a commutative diagram in the blueprint, and I've just noticed that currently it's not compiling (I'm on train WiFi, can someone else confirm that it doesn't compile for them?)

Screenshot 2025-05-01 at 15.35.43.png

It's in section 8 of the blueprint, about half way down this page.

The weird (to me) thing is that I can compile the blueprint locally with no errors or complaints about tikz. What have I done wrong?

Aaron Liu (May 01 2025 at 14:39):

Me too
image.png

Kevin Buzzard (May 01 2025 at 14:41):

FWIW I have \usepackage{tikz-cd} in print.tex and I seem to have both \usepackage{tikz-cd} and \usepackage{tikz} in web.tex (and I freely confess to not having a clue about LaTeX). Maybe I'm asking "what's the correct modern way to draw diagrams in LaTeX (and which will work in PlasTex)"? Google seems to give contradictory answers.

Michael Rothgang (May 01 2025 at 14:55):

I've used tikzcd in pdflatex and it worked well. I don't know if that works in plastex. @Patrick Massot have you tried/ do you think a different package is better (which works with plastex)?

Patrick Massot (May 01 2025 at 14:56):

tikzcd is the answer.

Patrick Massot (May 01 2025 at 14:57):

I has been used massively in LTE so we know it works.

Patrick Massot (May 01 2025 at 14:57):

I don’t remember whether there is anything special to do. We should check LTE.

Pietro Monticone (May 01 2025 at 15:08):

I'll try to fix it later today.

I remember something like:

# Use this
\begin{center}
\begin{tikzcd}
...
\end{tikzcd}
\end{center}

# instead of this
\[
\begin{tikzcd}
...
\end{tikzcd}
\]

# or this
\begin{equation}
\begin{tikzcd}
...
\end{tikzcd}
\end{equation}

Pietro Monticone (May 01 2025 at 16:06):

I think we already solved this problem once in #Infinity-Cosmos

Pietro Monticone (May 01 2025 at 16:10):

No, it might be something else...

Let me check.

Pietro Monticone (May 01 2025 at 17:07):

I'm not exactly sure about what's going on here: none of the solutions I adopted in the past worked:

  • This doesn't seem to be the issue
  • This doesn't seem to be the issue

@Patrick Massot do you have any idea?

Ruben Van de Velde (May 01 2025 at 18:12):

Does it actually work locally or does it fail silently?

Ruben Van de Velde (May 01 2025 at 18:12):

Maybe it's just not installed in ci

Patrick Massot (May 01 2025 at 19:43):

I opened a PR fixing the issue.

Patrick Massot (May 01 2025 at 19:44):

It seems nobody ever tried the combination of using tikzcd (or any other package requiring to using the Imager framework instead of simply using html+mathjax) and changing depgraph colors…

Patrick Massot (May 01 2025 at 19:44):

Ruben Van de Velde said:

Does it actually work locally or does it fail silently?

It didn’t work locally, and had a a clear error message (at least clear to me…).

Pietro Monticone (May 01 2025 at 20:31):

Thank you so much, merged!


Last updated: May 02 2025 at 03:31 UTC