I was reading this post and encountered an error while trying to compile the following code:
\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{tikz}
\usetikzlibrary{babel}
\usepackage{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[]{\label{fig:fig1a}
\begin{tikzpicture}[scale=0.7]
\draw (0,0) circle (2cm);
\end{tikzpicture}
}\
\subfloat[]{\label{fig:fig1b}
\begin{tikzpicture}[scale=1.4]
\draw[->,very thick] (0,0) -- (1.9,0);
\end{tikzpicture}
}
\caption{}
\label{fig:fig1}
\end{figure}
\end{document}
I have tried to edit parts of the code, and it seems that the root of the problem is that an '>' in the tikz code ends the subfloat enviroment. It's there a way to fix this?

\usepackage[spanish]{babel}. As an alternative tosubfigyou might be interested in using thesubcaptionpackage. – leandriis Mar 07 '19 at 21:04\shorthandoff{<>}after\begin{document}. – Mar 07 '19 at 21:07subfigandsubcaption? – kraDracsO Mar 07 '19 at 22:04