我无法成功编辑书目

我无法成功编辑书目

我有两个问题:(1)我想更改包含以下内容的使用包 file contents (2)我想了解我应该使用哪种类型的样式与 natbib,因为我的样式不兼容。我使用的是版本 3.14159265-2.6-1.40.20(TeX Live 2019)。

这些是我输入的代码:


\begin{filecontents}{aporia99.bib}
    @book{moore2004principia,
        author = "Moore, G.E.",
        title = " Principia Ethica",
        year = "2004",
        publisher = "Dover Publications",
    }

\end{filecontents}

\documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[round]{natbib}  
\usepackage{bibentry}         
\nobibliography* 

\begin{document}

\author{Antonio Freiles}
\title{Can emotions give us access to values?}
\maketitle

\begin{abstract}
\noindent 

this would be \cite{moore2004principia}




\end{abstract}

\section{Introduction} 
\noindent 
Before proceeding with my inquiry 


\bibliography{aporia99}

\bibliographystyle{apalike}

\end{document}

答案1

我不确定这是否真的是一个答案,但这是试图挽救这个问题而不是关闭它......

创建两个文件。首先是 whatever.tex:

\documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[round]{natbib}

\begin{document}

\author{Antonio Freiles}
\title{Can emotions give us access to values?}
\maketitle

\begin{abstract}
\noindent
this would be \cite{moore2004principia}
\end{abstract}

\section{Introduction}
\noindent
Before proceeding with my inquiry

\bibliography{aporia99}
\bibliographystyle{apalike}
\end{document}

然后,aporia99.bib:

@book{moore2004principia,
        author = "Moore, G.E.",
        title = " Principia Ethica",
        year = "2004",
        publisher = "Dover Publications",
}

然后做:

pdflatex whatever
bibtex whatever
pdflatex whatever
pdflatex whatever

这对我有用,并产生了作者年份引用:“这将是摩尔(2004)”。

相关内容