我正在尝试在我的 Latex 文档中添加脚注,但出现未定义的控制序列错误。这是一个简单的例子:
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage[x11names,dvipsnames,svgnames,table]{xcolor}
% general incantations
\usepackage[export]{adjustbox}
\usepackage{afterpage}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{pdfpages}
\usepackage{algorithm2e}
\usepackage{array}
\usepackage{booktabs}
\usepackage[most]{tcolorbox}
\usepackage{calligra}
\usepackage{caption}
\usepackage{datetime}
\usepackage{dblfnote}
\usepackage{dirtytalk}
\usepackage{dsfont}
\usepackage{etex}
\usepackage{fancyhdr}
\usepackage{fix-cm}
\usepackage[T1]{fontenc}
\usepackage{textcomp,gensymb} %for \degree C symbol
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{listings}
\usepackage{transparent}
\usepackage[everyline=true,framemethod=tikz]{mdframed}
\usepackage{mparhack}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{parskip}
\usepackage{lscape}
\usepackage{pdflscape}
\usepackage{pdfpages}
\usepackage{placeins}
\usepackage[document]{ragged2e}
\hyphenpenalty=10000
% For diamond and club and space
%\usepackage{fdsymbol}
%Automated appendices
\usepackage[titletoc,title,header]{appendix} %advanced functionality
%language settings
\usepackage[utf8]{inputenc}
\usepackage[australian]{babel}
\usepackage{csquotes}
%page setup
%this where we adjust the binding offset, if relevant
\usepackage[a4paper]{geometry}
\usepackage{lastpage} % for page 1 of n footers
%cross referencing
\usepackage[hidelinks]{hyperref}
%\usepackage[colorlinks=false]{hyperref}
\usepackage{cleveref}
%maths stuff
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{mathrsfs}
\setcounter{secnumdepth}{5}
%lists
\usepackage{enumitem}
%working collaboratively
\usepackage[backgroundcolor=yellow]{todonotes}
% bibliography file using harvard
%\usepackage[style=authoryear-ibid,backend=biber]{biblatex}
%\usepackage[style=alphabetic,citestyle=authoryear,backend=biber]{biblatex}
\usepackage[style=alphabetic,citestyle=alphabetic,backend=biber]{biblatex}
\bibliography{bibliography.bib} % with extension
%glossary for acronyms
\usepackage[acronym,nonumberlist,toc,section=subsection,numberedsection=nolabel]{glossaries}
\makeglossaries
%line spacing
\linespread{1.25}
%$\heartsuit\varheart\diamondsuit\vardiamond\clubsuit\spadesuit$
\begin{document}
\footnote{text}
\section{Introduction}
\subsection{Subsection Examples}
I am a subsection
\subsubsection{Sub Subsection Example}
I am a sub subsection
\end{document}
感谢您的帮助。
答案1
该错误是由于与
\usepackage{dblfnote}
但由于您不使用该包,因此您可以直接将其删除。
\usepackage
还应删除其他几行,例如etex
永远不应使用,例如加载inputenc
两次graphicx
。