It's the first time that i write i this forum so i hope i've choose the right topic.
I'm writing my math-thesis using latex.
I've to create a triangolar diagram to show the composition law of three functions.
So i use this code:
Code: Select all
\begin{tikzcd}[column sep=small] & S^{'} \arrow[dl,dashrightarrow] \arrow[dr] & \\ S \arrow{rr} & & C \end{tikzcd}
but the program produces an error when i insert the code to label the arrow:
Code: Select all
\begin{tikzcd}[column sep=small] & S^{'} \arrow[dl,dashrightarrow,"\epsilon"] \arrow[dr] & \\ S \arrow{rr} & & C \end{tikzcd}
Code: Select all
! Undefined control sequence.
\it@cwm ->\let \it@@next
\relax \ifcat \noexpand \it@temp a\def \it@@next {...
l.395 ...[dr] & \\ S \arrow{rr} & & C \end{tikzcd}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Code: Select all
\documentclass[oneside,italian]{book}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{units}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{esint}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\theoremstyle{definition}
\newtheorem*{defn*}{\protect\definitionname}
\theoremstyle{remark}
\newtheorem*{rem*}{\protect\remarkname}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{tikz-cd}
\AtBeginDocument{
\def\labelitemi{i}
\def\labelitemii{\(\bigtriangledown\)}
\def\labelitemiv{i)}
}
\makeatother
\usepackage{babel}
\providecommand{\definitionname}{Definizione}
\providecommand{\remarkname}{Osservazione}
STRANGE FACT:
I've copied only the diagram text with the label code
\epsilon
in a new file and it works???? Are there some packages that create the error?I've found that setting the language to english instead of italian all works. When i change language, i use italian, there is the extra babel package. i think the problem is this but i cannot say why.
Any ideas?