我在 latex 文档中使用该natbib
软件包。参考书目样式为apalike
。bib 文件包含以下两个条目 - 一个是期刊文章,另一个是书籍,它们都有原始标题,其中单词的首字母大写。此外,两者都有url
链接。我的 latex 文档文件放在下面:它引用了两个来源,而参考文献部分存在一些问题:(1) 文章标题没有将单词的首字母大写,(2)url
这些来源被隐藏且未显示。这可以解决这两个问题吗?谢谢!
@article{sen1979,
ISSN = {00130133, 14680297},
URL = {http://www.jstor.org/stable/2231867},
author = {Amartya Sen},
journal = {The Economic Journal},
number = {355},
pages = {537--558},
publisher = {[Royal Economic Society, Wiley]},
title = {Personal Utilities and Public Judgements: Or What's Wrong With Welfare Economics},
urldate = {2024-01-19},
volume = {89},
year = {1979}
}
@book{beck2000,
title={What is Globalization?},
author={Ulrich Beck},
year={2000},
publisher={Polity},
url={http://www.jstor.org/...}
}
以下是简化文档的乳胶代码:
\documentclass[12pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage{natbib}
\usepackage{lipsum}
\title{LaTeX References: the \textit{natbib} Package}
\begin{document}
\maketitle
Some text from \citep{sen1979}. Also from \citep{beck2000}
\bibliographystyle{apalike}
\bibliography{Data/example}
\end{document}
答案1
希望这对您有帮助:
BIB 文件的内容
@article{sen1979,
ISSN = {00130133, 14680297},
URL = {http://www.jstor.org/stable/2231867},
author = {Amartya Sen},
journal = {The Economic Journal},
number = {355},
pages = {537--558},
publisher = {[Royal Economic Society, Wiley]},
title = {{P}ersonal {U}tilities and {P}ublic {J}udgements: {O}r {W}hat's {W}rong {W}ith {W}elfare {E}conomics},
urldate = {2024-01-19},
volume = {89},
year = {1979}
}
@book{beck2000,
title={What is {G}lobalization?},
author={Ulrich Beck},
year={2000},
publisher={Polity},
url={http://www.jstor.org/...}
}
TeX 文件从这里开始
\documentclass[12pt]{article}
\usepackage[utf8x]{inputenc}
%\usepackage{natbib}
\usepackage[natbibapa]{apacite}
\usepackage{lipsum}
\usepackage{hyperref}
\title{LaTeX References: the \textit{natbib} Package}
\begin{document}
\maketitle
Some text from \citep{sen1979}. Also from \citep{beck2000}
\bibliographystyle{apacite}
\bibliography{test}
\end{document}
在这里,我们保留了大写字母的分组,并使用了apacite
带有选项的包natbibapa