I am pretty new on TikZ and I want to create a diagram for my measure class. I created the following picture:
\documentclass{standalone}
\usepackage{float}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.5]
%Mis espacios
\node (A) at (0,3) {$(\Omega, \mathscr{F},\mu)$};
\node (B) at (3,3) {$(\Omega',\mathscr{F}')$};
\node (C) at (3,0) {$(\mathbb{R}^1,\mathscr{R}^{1})$};
%Los mapas
\draw [thick,->] (A) to node[midway,above] {$T$} (B);
\draw [thick,->] (B) to node[midway,right] {$f$} (C);
\draw [dashed,thick,->] (A) to node[midway,above left, yshift=-13 pt] {$T \circ f$} (C);
\end{tikzpicture}
\end{document}
However I am having problems with the executions of the code since the label of compositions appears over the arrow and the arrow tips do not appear.
The following code includes all the packages I have originally in case some package is not compatible with my picture.
%Colores
\usepackage{xcolor}
%Evita problemas con tildes y caracteres especiales
\usepackage[utf8]{inputenc}
%Secciones con formato
\usepackage{sectsty}
%Formato del Documento
\usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
%Formato de entornos de enunciados matemáticos
\usepackage{amsthm}
%amsmath + más simbolos utiles
\usepackage{mathtools}
%Cosas en Español
\usepackage[spanish]{babel}
%Hipervínculos
\usepackage{hyperref}
%Letras de conjuntos notables
\usepackage{dsfont}
%Más simbolos matemáticos útiles
\usepackage{amssymb}
%Inclusión de imágenes
\usepackage{graphicx}
%Hipervínculos
\usepackage{hyperref}
%Comentarios largos
\usepackage{comment}
%Citas y Referencias
\usepackage{apacite}
%Editando las etiquetas de las numeraciones
\usepackage{enumitem}
%Caritas
\usepackage{wasysym}
%Interlineado
\usepackage{setspace}
%tablas acomodadas
\usepackage{float}
%Rotar en Tabla
\usepackage{multirow}
%Encabezado y pie de página
\usepackage{fancyhdr}
%cancelaciones
\usepackage{cancel}
%Letras caligraficamente perfectas
\usepackage{mathrsfs}
%Graficas poderosa
\usepackage{tikz}
Also, I would like to include the error that appears on my original document:
Argument of \language@active@arg> has an extra }.
Runaway argument?
Missing \endcsname inserted.
babel
TikZ library in your complete document. Add in your preamble\usetikzlibrary{babel}
to fix some issues that appear when using TikZ and babel at the same time.