我习惯endnote
将脚注作为尾注放在书末和natbib
参考书目中。因此,我希望两个列表具有相同的缩进。
我知道我可以这样设置尾注的缩进:
\def\enoteformat{\rightskip=0pt \leftskip=0pt \parindent=1.8em
\leavevmode\llap{\makeenmark}}
但想知道如何获取中使用的设置natbib
。
梅威瑟:
% endnotes
\usepackage{endnotes}
\let\footnote=\endnote
% bibliography
\usepackage[super, longnamesfirst, sort&compress]{natbib}
\setlength{\bibsep}{0.0pt}
\begin{document}
\endnote{testendnote} and \citep{testcite}
% the endnotes
\theendnotes
% the bibliography
\bibliographystyle{ieeetr}
\begin{thebibliography}{99}
\bibitem{testcite} Bloggs, J., The Journal of Stuff, 2012
\end{thebibliography}
\end{document}
答案1
读了你的评论我觉得你想要的是这样的:
可以通过以下方式获取:
\def\enoteformat{\rightskip=0pt \leftskip=21pt \parindent=-11pt
\leavevmode\llap{\makeenmark}\hspace*{11pt}}
完整代码:
\documentclass{article}
% endnotes
\usepackage{endnotes}
\let\footnote=\endnote
% bibliography
\usepackage[super, longnamesfirst, sort&compress]{natbib}
\setlength{\bibsep}{0.0pt}
\def\enoteformat{\rightskip=0pt \leftskip=21pt \parindent=-11pt
\leavevmode\llap{\makeenmark}\hspace*{11pt}}
\begin{document}
\endnote{testendnote some text some text some text some text some text some text some text some text some text some text} and \citep{testcite}
% the endnotes
\theendnotes
% the bibliography
\bibliographystyle{ieeetr}
\begin{thebibliography}{99}
\bibitem{testcite} Bloggs, J., The Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Journal of Stuff, 2012
\end{thebibliography}
\end{document}
原始答案
你是指这样的吗?
可以通过以下方式获得
\def\enoteformat{\rightskip=0pt \leftskip=10pt \parindent=0pt
\leavevmode\llap{\makeenmark}}