调整图表代码

调整图表代码

以下是我试图在背面编译的代码:

\begin{tikzcd}[row sep=huge]
H_{\bullet}(\Sigma X)
   \arrow[r,"c_*"]
   \arrow[dr,bend right,"\Delta"'] &
H_{\bullet}(\Sigma X\vee\Sigma X)
  \arrow[r,"(f\vee g)_*"]
  \arrow[d,shift right=0.5em,"j?"'] &
H_{\bullet}(Y) \\
& H_{\bullet}(\Sigma X)\oplus H_{\bullet}(\Sigma X)
  \arrow[u,shift right=0.5em,"i_{1*}\oplus i_{2*}"']
  \arrow[ur,bend right,"f_*\oplus g_*"']
\end{tikzcd}

但每次编译时都会出现编译错误,其中一些错误是:

1- 此部分的错误 $ \arrow[r,"c_“]$ 是以下错误:包 pgfkeys 错误:我不知道密钥 '”c_\par ' 我将忽略它。也许你拼错了。

2- 此部分 $ \arrow[dr,bend right,"\Delta"']$ 的错误是以下错误:包 xcolor 错误:未定义颜色“\Delta \T_1 \textquotedblleft'。”

3- 此部分的错误 $\arrow[r,"(f\vee g)*"]$ 是以下错误:包 pgfkeys 错误:我不知道密钥“”(f\vee g)*\par ' 我将忽略它。也许你拼错了。

4- 此部分 $\arrow[d,shift right=0.5em,"j?”']$ 的错误如下:包 xcolor 错误:未定义颜色“j? \T_1 \textquotedblleft'。”

这是我从一开始的文档:

\documentclass{article}
\usepackage[utf8]{inputenc}




\usepackage[T1]{fontenc}
\usepackage{lmodern}
% Sprache (neue deutsche Rechtschreibung)
\usepackage[ngerman]{babel}
% Mathematik
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz-cd}


\usepackage{mathtools}
\usepackage{commath}
\usepackage{bbm}

\usepackage[margin= 1 in]{geometry}

%\addtolength{\oddsidemargin}{-.875in}
    \addtolength{\evensidemargin}{-.575in}
    %\addtolength{\textwidth}{1.75in}

    \addtolength{\topmargin}{-.275in}
    \addtolength{\textheight}{- .1 in}

\title{M T}
\author{MA }
\date{April 2020}

\begin{document}

\maketitle

\section{If we have the following} 

**Also the following code compiles but without any maps on the arrows:**

\[
  \begin{tikzcd}[row sep=3em]
  & H_{\bullet}(Y)
     & \\
  & H_{\bullet}(\Sigma X\vee \Sigma X)
  \arrow[u,"(f\vee g)_*"] 
  & \\
  H_{\bullet}(\Sigma X)
  \arrow[uur,out=80,in=190,"f_*"]
  \arrow[r]
  \arrow[ur,"i_{1*}"]
  &
  H_{\bullet}(\Sigma X)\times H_{\bullet}(\Sigma X)
  \arrow[u,"i_{1*}\oplus i_{2*}"]
 &
  H_{\bullet}(\Sigma X) 
  \arrow[l]
  \arrow[uul,out=100,in=-10,"g_*"'] 
  \arrow[ul,"i_{2*}"']
  \\
  \end{tikzcd}
\]

任何有助于解决这些问题的帮助都将不胜感激!

提前致谢。

答案1

您需要添加

\usetikzlibrary{babel}

文档序言因为\usepackage[ngerman]{babel}改变一些符号的含义tikzpicture。通过添加 Ti 进行更正/恢复Z 库babel。MWE 的意思是:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
% Sprache (neue deutsche Rechtschreibung)
\usepackage[ngerman]{babel}
% Mathematik
\usepackage{mathtools, amssymb}
\usepackage{bbm}
\usepackage{commath}
% diagrams
\usepackage{tikz-cd}
\usetikzlibrary{babel} % <-----

\usepackage[margin= 1 in]{geometry}

%\addtolength{\oddsidemargin}{-.875in}
    \addtolength{\evensidemargin}{-.575in}
    %\addtolength{\textwidth}{1.75in}

    \addtolength{\topmargin}{-.275in}
    \addtolength{\textheight}{- .1 in}

\title{M T}
\author{MA }
\date{April 2020}

\begin{document}

\maketitle

\section{If we have the following}

**Also the following code compiles but without any maps on the arrows:**

\[
    \begin{tikzcd}[row sep=3em]
        & H_{\bullet}(Y)
            &       \\
        &   H_{\bullet}(\Sigma X\vee \Sigma X)
        \arrow[u,"(f\vee g)_{*}"]
                &   \\
H_{\bullet}(\Sigma X)
\arrow[uur,out=80,in=190,"f_*"]
\arrow[r]
\arrow[ur,"i_{1*}"]
        &   H_{\bullet}(\Sigma X)\times H_{\bullet}(\Sigma X)
            \arrow[u,"i_{1*}\oplus i_{2*}"]
            &   H_{\bullet}(\Sigma X)
            \arrow[l]
            \arrow[uul,out=100,in=-10,"g_*"']
            \arrow[ul,"i_{2*}"']    \\
    \end{tikzcd}
\]
\end{document}

在此处输入图片描述

相关内容