如何删除数字但保留参考书目中的缩进?但不使用 BibTex,只需在 LaTeX 中手动操作即可

如何删除数字但保留参考书目中的缩进?但不使用 BibTex,只需在 LaTeX 中手动操作即可

现在,我的代码如下所示:

\begin{thebibliography}{99}

\label{AJ91}
\bibitem{AJ91}Angrist, J. and Krueger, A. (1991). \textit{Does compulsory school attendance affect schooling and earnings?} Quarterly Journal of Economics, \textbf{106}(4), 979--1014.

\label{BP88}
\bibitem{BP88}Bairoch, P. (1988). \textit{Cities and Economic Development: From the Dawn of History to the Present}. Chicago: University of Chicago Press.

\label{BC07}
\bibitem{BC07}Brokaw, C. (2007). \textit{Commerce in Culture: The Sibao Book Trade in the Qing and Republican Periods}. Cambridge, MA: Harvard University Asia Center.

\label{CC55}
\bibitem{CC55}Chang, C. (1955). \textit{The Chinese Gentry: Studies on Their Role in Nineteenth-Century Chinese Society}. Seattle: University of Washington Press.

\end{thebibliography}

输出如下:

在此处输入图片描述

但我希望它看起来像这样,所以没有数字,但有缩进:

在此处输入图片描述

答案1

原则上thebibliography只是一个花哨的enumerate环境,并且\bibitem/\cite类似于\label/,\ref带有一个覆盖标签输出的选项。(通常它们会产生编号的引用,但如果您使用可选参数\bibitem,即\bibitem[<label>]{<key>}条目将在文本中<key>被引用为“[ ]”。)<label>

生成的参考列表的列表格式(缩进、项间距离等)thebibliography主要由您的文档类控制。其他软件包natbib(无需 BibTeX 即可使用,但需有手册thebibliography)可能会接管并改变一切。

如果您想要在文本引用中使用作者年份,以及合适的作者年份参考书目(不带数字,但有缩进),您可以尝试加载该apalike包。它最初打算与 BibTeX 样式一起使用apalike,但也可以与手册一起使用thebibliography

该包改变了参考书目列表环境thebibliography和的输出,\cite以便更好地适应作者年份引用。您只需要在可选参数中给出所需的引用输出\bibitem(并摆弄以\@cite删除一些括号)。

\documentclass[british]{article}
\usepackage[T1]{fontenc}

\usepackage{apalike}
\makeatletter
\def\@cite#1#2{#1\if@tempswa , #2\fi}
\makeatother


\begin{document}
Lorem \cite{AJ91}

\begin{thebibliography}{9}
\bibitem[Angrist and Krueger (1991)]{AJ91}Angrist, J. and Krueger, A. (1991). \textit{Does compulsory school attendance affect schooling and earnings?} Quarterly Journal of Economics, \textbf{106}(4), 979--1014.

\bibitem[Bairoch (1988)]{BP88}Bairoch, P. (1988). \textit{Cities and Economic Development: From the Dawn of History to the Present}. Chicago: University of Chicago Press.

\bibitem[Brokaw (2007)]{BC07}Brokaw, C. (2007). \textit{Commerce in Culture: The Sibao Book Trade in the Qing and Republican Periods}. Cambridge, MA: Harvard University Asia Center.

\bibitem[Chang (1955)]{CC55}Chang, C. (1955). \textit{The Chinese Gentry: Studies on Their Role in Nineteenth-Century Chinese Society}. Seattle: University of Washington Press.
\end{thebibliography}
\end{document}

Lorem Angrist 和 Krueger (1991)

如果你想要更好地控制引用,并选择同时引用“(<author><year>)”和“ <author><year>)”,你可以按照以下说明进行thebibliography兼容natbib我的答案书目环境可以提供 APA 样式吗?

相关内容