我指的是https://tex.stackexchange.com/a/100001/113820格式化尾注。如何使尾注左对齐(不缩进第一个编号行,如 [1]、[2] 等)
答案1
您可以修改的重新定义\makeenmark
以在缩进空间中生成左齐平标签:
\documentclass{article}
\usepackage{endnotes,etoolbox}
\renewcommand{\notesname}{References}
% end note marker = superscripted number in brackets
\renewcommand\makeenmark{\textsuperscript{[\theenmark]}}
% in the endnotes, we change it without `\textsuperscript`, adding a space
\patchcmd{\theendnotes}
{\makeatletter}
{\makeatletter\renewcommand\makeenmark{\makebox[\parindent][l]{[\theenmark]}}}
{}{}
\begin{document}
\section{Introduction}
As traffic in Macao is a problem\endnote{hello}, we want to do the project
to find out the relationship of traffic among different sites\endnote{world}.
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
Again\endnote{x}
\theendnotes
\end{document}