![格式化尾注或参考文献](https://linux22.com/image/340685/%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%B0%BE%E6%B3%A8%E6%88%96%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE.png)
我指的是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}