Skip to content
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

incompatibility with the tikz library external #16

Open
jonas-frey opened this issue Aug 24, 2023 · 2 comments
Open

incompatibility with the tikz library external #16

jonas-frey opened this issue Aug 24, 2023 · 2 comments

Comments

@jonas-frey
Copy link

Is there a reason that tikz-cd is incompatible with the tikz library external? I think it would be really helpful if one could buffer compiled diagrams to improve recompilation times, similar to xypic's \CompileMatrices.

@astoff
Copy link
Owner

astoff commented Aug 25, 2023

I guess the reason is exactly the one explained in first answer to the stackexchange question. Perhaps in the 9 years since it was written, a better solution to this issue is available. I haven't tried.

Probably the most/only reasonable solution would be to extend the externalization library to allow custom environment names. It seems that the search for \begin{tikzpicture} ... \end{tikzpicture} is hard-coded.

@Qrrbrbirlbel
Copy link

Qrrbrbirlbel commented Sep 4, 2024

I've proposed a solution in A665688 which adjusts the tikzcd environment so it is allowed inside a tikzpicture environment without creating its own TikZ picture. (This would also allow more than one CDs in one TikZ picture.) This puts the tikzcd environment on the same level of PGFPlots' axis environment.

Somewhere on their Github, a member of the PGF/TikZ team mentions that the external library is bugged and will not get fixed soon, if at all.
Nowadays, the memoize package is a much more versatile tool. It's a beast on its own (the manual has over 130 pages) but in most cases it should be simple to use (see the other answer in my link).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants