考虑以下示例,您可以看到文本标签后面有一个白色背景,与页面颜色不一致。有什么方法可以修复此行为吗?
\documentclass{article}
\usepackage{tikz-cd}
\pagecolor{yellow}
\begin{document}
\[
\begin{tikzcd}
X & X & \cdots & X \\
Y & Y & \cdots & Y
\arrow["T", from=1-1, to=1-2]
\arrow["S", from=2-1, to=2-2]
\arrow["\Phi"', from=1-1, to=2-1]
\arrow["\Phi", from=1-2, to=2-2]
\arrow["T", from=1-2, to=1-3]
\arrow["S", from=2-2, to=2-3]
\arrow["T", from=1-3, to=1-4]
\arrow["S", from=2-3, to=2-4]
\arrow["\Phi", from=1-4, to=2-4]
\arrow["\displaystyle\cdots"{description}, draw=none, from=1-3, to=2-3]
\end{tikzcd}
\]
\end{document}
答案1
填充旨在部分遮挡 中的箭头description
。使用方式background color=none
如下:
\documentclass[tikz, border=1cm]{standalone}
\usepackage{tikz-cd}
\pagecolor{yellow}
\begin{document}
\begin{tikzcd}
X & X & \cdots & X \\
Y & Y & \cdots & Y
\arrow["T", from=1-1, to=1-2]
\arrow["S", from=2-1, to=2-2]
\arrow["\Phi"', from=1-1, to=2-1]
\arrow["\Phi", from=1-2, to=2-2]
\arrow["T", from=1-2, to=1-3]
\arrow["S", from=2-2, to=2-3]
\arrow["T", from=1-3, to=1-4]
\arrow["S", from=2-3, to=2-4]
\arrow["\Phi", from=1-4, to=2-4]
\arrow["\displaystyle\cdots"{description}, background color=none, draw=none, from=1-3, to=2-3]
\end{tikzcd}
\end{document}