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