I'd like to be able to scale some rather complex CDs using the scale
key, for example scale=0.5
. In the following MWE the scale
key seems to have no effect.
\documentclass{amsart}
\usepackage{tikz}
\usepackage{tikz-cd}
\usetikzlibrary{matrix}
\begin{document}
%% Uncomment/comment appropriately:
%\begin{tikzpicture}[column sep=1in,row sep=1in,scale=0.5in]
\begin{tikzpicture}[column sep=1in,row sep=1in]
\matrix (A) [matrix of math nodes]
{
A& B\\
C& D\\
};
\draw[->] (A-1-1) -- (A-1-2);
\draw[->] (A-1-1) -- (A-2-1);
\draw[->] (A-2-1) -- (A-2-2);
\draw[->] (A-2-2) -- (A-1-2);
\end{tikzpicture}
%% Uncommenting the scale option has no effect:
\begin{tikzcd}%[scale=0.5]
A\ar{r}\ar{d}&B\\
C\ar{r}&D\ar{u}\\
\end{tikzcd}
\end{document}
These are very simple examples, and I could easily alter the appropriate dimensions, but the CDs on which I am working are complex and carefully arranged -- I'd rather just be able to scale them if at all possible.
column sep
s androw sep
s are not scaleble in the same way as many other things in TikZ. You can however try something like\tikzset{scale seps/.style={column sep/.expanded={(#1)*(\pgfmatrixcolumnsep)}, row sep/.expanded={(#1)*(\pgfmatrixrowsep)}}}
.tikz-cd
also has a few named seps, e.g.row sep=large
.\[\small\begin{tikzcd} ... \end{tikzcd}\]
. In tex.stackexchange.com/questions/198499/…, more options for squeezing a wide diagram are discussed.