我在我的文件中使用以下命令:
\documentclass[a4paper, openright, 12pt, oneside]{book}
\usepackage[spanish,es-tabla]{babel}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage[onehalfspacing]{setspace}
\usepackage{fancyhdr}
\usepackage{enumerate}
\usepackage{float}
\usepackage{graphicx}
\usepackage{titling}
\usepackage{caption}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{colortbl}
\usepackage[paper = A4, pagesize]{typearea}
\usepackage{url}
\usepackage{cite}
\usepackage{longtable}
\usepackage{lscape}
\usepackage{array}
\usepackage{pdfpages}
\usepackage[colorlinks=true,linkcolor=blue, citecolor = cyan, filecolor = green]{hyperref}
\usepackage{import}
\usepackage{subfigure}
\usepackage{wrapfig}
\usepackage{verbatim}
\usepackage{titlesec}
\usepackage[hmargin=2cm,top=3cm,headheight=40pt,footskip=40pt]{geometry}
\usepackage{cleveref}[2012/02/15]
\usepackage[normalem]{ulem}
\usepackage[bottom]{footmisc}
\usepackage{eurosym}
\usepackage{tikz}
\usetikzlibrary{matrix}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{-50pt}{30pt}
\titleformat{\section}[block]
{\normalfont\large\bfseries}{\thesection}{10pt}{}
\pagestyle{fancy}
\fancyhead[LE, RO]{\thepage}
\fancyhead[RE]{\textsl{\leftmark}}
\fancyhead[LO]{\textsl{\leftmark}}
\setlength{\headheight}{16mm}
\renewcommand{\headrulewidth}{0.8pt}
\renewcommand{\footrulewidth}{0.4pt}
\crefformat{footnote}{#2\footnotemark[#1]#3}
\setlength{\parskip}{3mm}
\setlength{\parindent}{8mm}
\begin{document}
This is the first footnote\footnote{\label{note1}First note}.
This is, also, the first footnote \cref{note1}.
\end{document}
但使用 \cref 时得不到上标 1,但不知道为什么。
提前非常感谢您!