tikzcd 中的粗体箭头

tikzcd 中的粗体箭头

我想将 tikzcd 图中的部分箭头设为粗体,但不是全部。怎么做?比如,只将以下 MWE 中的水平箭头设为粗体:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz-cd}

\begin{document}



\[\begin{tikzcd}[column sep=small, row sep=small]
\ddots \arrow[rd] &                                             &                      &                                             & M_2 \arrow[rd, hook] &                                             &                      &                              &             &   \\
\cdots \arrow[r]  & F_3 \arrow[rr, "d_3"] \arrow[rd, two heads] &                      & F_2 \arrow[rr, "d_2"] \arrow[ru, two heads] &                      & F_1 \arrow[rd, two heads] \arrow[rr, "d_1"] &                      & F_0 \arrow[r, "\varepsilon"] & M \arrow[r] & 0 \\
                  &                                             & M_3 \arrow[ru, hook] &                                             &                      &                                             & M_1 \arrow[ru, hook] &                              &             &  
\end{tikzcd}\]

\end{document}

答案1

tikz-cd基于包tikz。theas 可以定义tikzcd图像元素的样式,就像纯tikz图片一样。具体如何改变tikzcd图像的形式,请参见tikz-cd 文档

\documentclass[varwidth,margin=3mm]{standalone}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta}

\begin{document}
\[
\tikzset{LA/.style = {draw=red, % just to demonstrate, where LA is used
                      line width=#1, -{Straight Barb[length=3pt]}},
         LA/.default=1pt
        }
\begin{tikzcd}[column sep=small, row sep=small]
\ddots \arrow[rd] &                                             &                      &                                             & M_2 \arrow[rd, hook] &                                             &                      &                              &             &   \\
\cdots \arrow[r,LA]  & F_3 \arrow[rr,LA=0.5pt, "d_3"] \arrow[rd, two heads] &                      & F_2 \arrow[rr, "d_2"] \arrow[ru, two heads] &                      & F_1 \arrow[rd, two heads] \arrow[rr, "d_1"] &                      & F_0 \arrow[r, "\varepsilon"] & M \arrow[r] & 0 \\
                  &                                             & M_3 \arrow[ru, hook] &                                             &                      &                                             & M_1 \arrow[ru, hook] &                              &             &
\end{tikzcd}
\]
\end{document}

在此处输入图片描述

相关内容