Tikz 图表已损坏

Tikz 图表已损坏

在上述代码下,我尝试编写下图。但是,该图完全损坏,无法正确显示。我应该在哪里改进,以及我应该输入什么样的代码才能正确显示它?

\documentclass[11pt,english]{smfart} \usepackage[OT2,T1]{fontenc}
\usepackage[english,francais]{babel} \usepackage{url,xspace,smfthm}
%\usepackage{amsthm} \usepackage{amsmath,amssymb,amsfonts}
\usepackage{mathtools} %\usepackage{amscd}%
\usepackage[dvipdfmx]{graphicx} \usepackage{tikz} \usepackage{tikz-cd}
\usepackage{enumitem} \usepackage{amsmath,amssymb,amsfonts,amscd}
\usepackage{amsthm} \DeclareSymbolFont{cyrletters}{OT2}{wncyr}{m}{n}
\DeclareMathSymbol{\Sha}{\mathalpha}{cyrletters}{"58}
\DeclareMathSymbol{\Zhe}{\mathalpha}{cyrletters}{"11}
\theoremstyle{definition} \newtheorem{definition}{Definition}
\newtheorem{lem}{Lemma} \newtheorem{cor}{Cor}
\newtheorem{remark}{remark}

\usetikzlibrary{cd,bbox}
\[
\begin{tikzcd}[ column sep={5em,between origins}, row sep=5ex, bezier
bounding box,% <-- https://tex.stackexchange.com/a/619994/ ] 0
\arrow[r] & \Sha(E/K)[2] \arrow[r] \arrow[d] & A[2] \arrow[r,"f"]
\arrow[d] & B[2] \arrow[r] \arrow[d] & \text{Coker}f \arrow[r]
\arrow[d,"g"] & 0 \\ 0 \arrow[r] & \Sha(E/K) \arrow[r] \arrow[d] & A
\arrow[r,"i"] \arrow[d] & B\arrow[r] \arrow[d] & {\widehat{E(K)}}^* \\
& \text{ker}j \arrow[r]
\arrow[rrruu,in=150,out=170,looseness=2.6,"\delta"] & \dfrac{A}{A[2]}
\arrow[r,"j"] & \dfrac{B}{B[2]} \end{tikzcd} \]$$

PS 但是删除 dvipdfmx 之后,下面之前没问题的图表就坏了,是什么问题呢?

{\footnotesize
\[\]
\require{}\begin{CD}
\text{ker}F@>>>\Sha(E/K)[2]@>>>
\text{ker}H\\
@VVV@VVV @VVV\\
H^1(\text{Gal}(L/K),E(L))@>\text{inf}>>H^1(G_K,E)[2]@>\text{res}>>\text{res}(H^1(G_K,E)[2])\\
@VVFV @VVGV @VVH V \\
 \bigoplus_{v\in M_K}H^1(\text{Gal}(L_w/K_v),E(L_w))}}@>a>>\bigoplus_{v\in M_K} {H^1(G_{K_v},E)}}[2]@>>>\bigoplus_{v\in M_K}{\text{res}(H^1(G_{K_v},E}})[2]) \\
@VVV @VbVV \\
\text{coker}F@>j>>\Zhe \\ \]}

答案1

通过适当的格式化和删除不兼容的软件包smfart,还可以使用

latex <filename> && dvipdfmx <filename>

我明白了,注意添加 TiZ 库babel

\documentclass[11pt,english]{smfart}
\usepackage[OT2,T1]{fontenc}
\usepackage[english,francais]{babel}
\usepackage{url,xspace,smfthm}
%\usepackage{amsthm}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{mathtools}
\usepackage[dvipdfmx]{graphicx}
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{enumitem}

\DeclareSymbolFont{cyrletters}{OT2}{wncyr}{m}{n}
\DeclareMathSymbol{\Sha}{\mathalpha}{cyrletters}{"58}
\DeclareMathSymbol{\Zhe}{\mathalpha}{cyrletters}{"11}
\DeclareMathOperator{\Coker}{Coker}

\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{lem}{Lemma}
\newtheorem{cor}{Cor}
\newtheorem{remark}{remark}

\usetikzlibrary{cd,bbox,babel}

\begin{document}
\[
\begin{tikzcd}[
  column sep={5em,between origins},
  row sep=5ex,
  bezier bounding box,% <-- https://tex.stackexchange.com/a/619994/
]
0 \arrow[r] &
\Sha(E/K)[2] \arrow[r] \arrow[d] &
A[2] \arrow[r,"f"] \arrow[d] &
B[2] \arrow[r] \arrow[d] &
\Coker f \arrow[r] \arrow[d,"g"] &
0
\\
0 \arrow[r] &
\Sha(E/K) \arrow[r] \arrow[d] &
A \arrow[r,"i"] \arrow[d] &
B\arrow[r] \arrow[d] & {\widehat{E(K)}}^* \\
& \ker j \arrow[r]
\arrow[rrruu,in=150,out=170,looseness=2.6,"\delta"]
 &
\dfrac{A}{A[2]} \arrow[r,"j"] & \dfrac{B}{B[2]}
\end{tikzcd}
\]

\end{document}

在此处输入图片描述

pdflatex如果你和你一起编译必须dvipdfmx加载时删除该选项graphicx

我还为“Coker”和“ker”添加了适当的格式。请勿用于\text此目的。

相关内容