如何保持放大的 tikzcd 图的线中的方程编号?

如何保持放大的 tikzcd 图的线中的方程编号?

在下面的MWE

\documentclass{article}
\usepackage{tikz-cd}
\usepackage{adjustbox}

\begin{document}
\begin{equation}
\begin{tikzcd}  
    \cdot \arrow[r,"m"] \arrow[rr,"h", bend left=40]& \cdot \arrow[r,"e"] & \cdot \arrow[r,shift left=.75ex,"f"]
    \arrow[r,shift right=.75ex,swap,"g"] & \cdot
\end{tikzcd}
\end{equation}

\begin{equation}
\begin{tikzcd}[column sep=3.2em]  
    \cdot \arrow[r,"m"] \arrow[rr,"h", bend left=40]& \cdot \arrow[r,"e"] & \cdot \arrow[r,shift left=.75ex,"f"]
    \arrow[r,shift right=.75ex,swap,"g"] & \cdot
\end{tikzcd}
\end{equation}

\begin{equation}
\adjustbox{scale=1.5,center}{%
    \begin{tikzcd} 
    \cdot \arrow[r,"m"] \arrow[rr,"h", bend left=40]& \cdot \arrow[r,"e"] & \cdot \arrow[r,shift left=.75ex,"f"]
    \arrow[r,shift right=.75ex,swap,"g"] & \cdot
    \end{tikzcd}}
\end{equation}
\end{document}

我想放大tikz-cd(1) 的图表。第一个解决方案 (2) 使用column sep选项,不会放大代表图表对象的字母。第二个解决方案 (3) 使用 ,adjustbox几乎可以完成工作,只是方程编号溢出到下一行。那么,无论我为 的选项选择什么值,我如何才能将方程编号保持在正确的scale位置adjustbox

在此处输入图片描述

答案1

请参阅这个答案:https://tex.stackexchange.com/a/547908/101651

\documentclass{article}
\usepackage{tikz-cd}
\usepackage{adjustbox}
\tikzcdset{scale cd/.style={every label/.append style={scale=#1},
    cells={nodes={scale=#1}}}}
    
\begin{document}
\begin{equation}
\begin{tikzcd}  
    \cdot \arrow[r,"m"] \arrow[rr,"h", bend left=40]& \cdot \arrow[r,"e"] & \cdot \arrow[r,shift left=.75ex,"f"]
    \arrow[r,shift right=.75ex,swap,"g"] & \cdot
\end{tikzcd}
\end{equation}

\begin{equation}
    \begin{tikzcd}[scale cd=1.5] 
    \cdot \arrow[r,"m"] \arrow[rr,"h", bend left=40]& \cdot \arrow[r,"e"] & \cdot \arrow[r,shift left=.75ex,"f"]
    \arrow[r,shift right=.75ex,swap,"g"] & \cdot
    \end{tikzcd}
\end{equation}
\end{document}

在此处输入图片描述

相关内容