尾註縮排等於參考書目

尾註縮排等於參考書目

我習慣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}}

相關內容