书目和引用问题

书目和引用问题

这是 latex 文件 (论文) 的 MWE。

\documentclass[11pt, a4paper, oneside]{Thesis} % Paper size, default font size and one-sided paper
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{lmodern}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{csquotes}
\usepackage{multirow}
\usepackage[para]{threeparttable}
\usepackage{etoolbox}
\apptocmd{\AA}{\xspace}{}{}
\usepackage{adjustbox}
\usepackage{ae,aecompl}
\usepackage{amssymb}    % Extra maths symbols
\usepackage{wasysym}
\usepackage{xcolor}
\usepackage{textcomp}
\usepackage{xspace}

%\usepackage{subcaption} %incompatible with subfig
\graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
\usepackage[round, sort, numbers]{natbib} % Use the natbib reference 

\label{Bibliography}

\lhead{\emph{Bibliography}} % Change the page header to say "Bibliography"

\bibliographystyle{apalike} % Use the "custom" BibTeX style for formatting the Bibliography

\bibliography{Bibliography} % The references (bibliography) information 

我的 .bib 文件格式是(这是从 NASA.ADS 截取的,没有做任何更改

@ARTICLE{Wilhiteetal:2005ApJ,
    author = {{Wilhite}, Brian C. and {Vanden Berk}, Daniel E. and {Kron}, Richard G. and
    {Schneider}, Donald P. and {Pereyra}, Nicholas and
    {Brunner}, Robert J. and {Richards}, Gordon T. and
    {Brinkmann}, Jonathan V.},
    title = "{Spectral Variability of Quasars in the Sloan Digital Sky Survey. I. Wavelength Dependence}",
    journal = The Astrophysical Journal,
    keywords = {Galaxies: Active, Galaxies: Quasars: General, Techniques: Spectroscopic, Astrophysics},
    year = "2005",
    month = "Nov",
    volume = {633},
    number = {2},
    pages = {638-648},
    doi = {10.1086/430821},
    archivePrefix = {arXiv},
    eprint = {astro-ph/0504309},
    primaryClass = {astro-ph},
    adsurl = {https://ui.adsabs.harvard.edu/abs/2005ApJ...633..638W},
    adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

当我编译该文件时,pdf 输出是 Wilhite et al. (33)

问 1.我不希望文本中出现数字 (33),我只希望出现作者姓名和年份。编译时不会显示年份。我希望论文中的所有参考文献都像 Wilhite et al. (2005) 那样,即作者 (年份) 格式。

在参考书目部分

[Wilhite et al.] Wilhite, B. C., Vanden Berk, D. E., Kron, R. G., Schneider, D. P., Pereyra,
N., Brunner, R. J., Richards, G. T., and Brinkmann, J. V. Spectral Variability of
Quasars in the Sloan Digital Sky Survey. I. Wavelength Dependence.

问2.我希望参考文献有编号并附上期刊详细信息。只有少数参考文献(例如下面的参考文献)才有这种情况。

[52] Warwick, R. S., Done, C., and Smith, D. A. (1995). The soft X-ray spectrum of NGC
4151 revisited. Monthly Notices of the Royal Astronomical Society, 275(4):1003–1016.

我想要所有符合上述格式的参考文献。

这是使用 \bibliographystyle{chicago} 时的输出 在此处输入图片描述

答案1

选择参考书目样式很棘手。幸运的是,这里有优秀的《选择 BibTeX 样式》,列出了各种各样的风格,并按照其名义主题进行分类,同时提供了大量的示例。

  • 我用的\bibliographystyle{chicago}作者和名字在文中。
  • 然后参考文献给出了日记帐详细信息
  • 然而,我不需要一个号码在参考文献中,因为文本中无论如何都不会提到这个数字。如果您需要,可以添加序言以在参考文献中添加数字。

以下示例对我有用

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{etoolbox}
\newcounter{bibcount}

\usepackage{natbib}

\makeatletter 
\patchcmd{\@lbibitem}{\item[}{\item[\hfil\stepcounter{bibcount}{\thebibcount.}}{}{}
\setlength{\bibhang}{2\parindent}
\renewcommand\NAT@bibsetup%
[1]{\setlength{\leftmargin}{\bibhang}\setlength{\itemindent}{-\parindent}%
    \setlength{\itemsep}{\bibsep}\setlength{\parsep}{\z@}}
\makeatother

\bibliographystyle{chicago}

\title{Bibliography management: \texttt{natbib} package}
\date{}

\begin{document}

    \maketitle

    This document is an example of \texttt{natbib} package citing \cite{latexcompanion}. 

    \bibliography{sample}

\end{document}

sample.bib

@book{latexcompanion,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The \LaTeX\ Companion",
    year      = "1993",
    publisher = "Addison-Wesley"
}

在此处输入图片描述

相关内容