2
Vote

subfigures, tikz and latex compilation

description

SubFigures with Tikz to Latex lead to a failure when producing a pdf :
Rendering PDF failed: error: document.mdk:28: ! Undefined control sequence.
<argument> \pgf@matrix@last@nextcell@options
A minimal reproduction is here :
https://www.dropbox.com/sh/4vj5cal5fc2lqf7/AAAnI1Ja6mYZShsZbXGcu1LKa?dl=0

comments

nrolland wrote Feb 9 at 6:28 PM

It seems that internally tikz-cd does some unchecked substitutions, which do not happen sometimes, like when given to a macro...

http://tex.stackexchange.com/questions/1111/problem-with-defining-shortcuts-for-tikz-matrices

The real unsubstituted separator is \pgfmatrixnextcell and Madoko can handle the substitution ..

nrolland wrote Feb 9 at 6:50 PM

it's really a latex issue.


PS : pure latex solutions work as well. not sure how one is supposed to guess which command support which options, but...
~ Begin Figure
~ Begin SubFigureRow { vertical-align: bottom ;    }
~ SubFigure  
~~ Math
\begin{tikzcd}[column sep=large, ampersand replacement=\&]  
\mathcal{B}^{op}  \arrow[r, "fibre(q)" ] \&  Cat
\end{tikzcd}
~~
~
~ End SubFigureRow
~ End Figure
~ Figure { #LCUimage;  heigth:1000px;}
~~ Math
\begin{tikzpicture}[baseline= (a).base]
\node[scale=2,ampersand replacement=\&]  (a) at (0,0){
 \begin{tikzcd}[column sep=small, column sep=small]
              \mathcal{E} \arrow[d, "p" description] \arrow[dr, bend left,"\int", "\dashv"' ] \& \\
              \mathcal{B} \arrow[r, "id_{\mathcal{B}}"' ] \& \mathcal{B} \arrow[ul, "t" description]
                \end{tikzcd}
       };
\end{tikzpicture}
~~
~

jakeoung wrote Mar 29 at 6:44 AM

I am struggling with the similar problem..