1

Compiling this code

\documentclass[a4paper,12pt,twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman,english]{babel}

%MATHEMATICS
\usepackage{mathbbol}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}

\usepackage{tikz-cd}

\begin{document}
\begin{center}
\begin{tikzcd}[column sep=huge]
F(X)   \arrow[r,"F(X)"]\arrow[d,"F(X)"]&F(X)\arrow[d,"F(X)"]\\
F(X)\arrow[r,"X^{{\mathcal D}}_{F(X),F(Y)}"]&F(X)
\end{tikzcd}
\end{center}
\end{document}

I got the error 'Undefined controll sequence \end{tikzcd}'. And the reuslt looks not good at all. How can I fix that problem?

  • 1
    Add \usetikzlibrary{babel} after \usepackage{tikz-cd}. –  Jul 29 '18 at 16:56
  • It worked, thank you! But why do I have to do this? –  Jul 29 '18 at 17:00
  • 1
    Well, perhaps look here for more information. It has to do with the catcodes (I do not like this term, would prefer tigercodes ;-), i.e. the quotes become active and bla bla bla. Long story short: load the library and it works. ;-) –  Jul 29 '18 at 17:04
  • 3
    I'm voting to close this question as off-topic because it is solved by comments: adding tikz library babel solve the problem. – Zarko Jul 29 '18 at 19:04

0 Answers0