revtex4-1 中的 BibTex 问题;没有显示 [重复] 的引用

revtex4-1 中的 BibTex 问题;没有显示 [重复] 的引用

这是一个基本问题。我搜索并阅读了大量问题,但仍然不知道我的问题是什么,因为我不明白如何正确使用 bibtex。我将解释到目前为止发生的一切。

我有一个名为“magneto.tex”的 tex 文件,第一次运行后出现了“magnetoNotes.bib”,我猜想需要更改该文件以引用内容,因此我开始在其中添加参考资料。现在我不认为这样做是可行的,因为每当我编译 tex 时,“magnetoNotes.bib”的权重为 0 字节...因此我创建了一个名为“biblio.bib”的新文件,其中包含参考资料,现在我使用它来引用。

一开始,将我的参考文献放在“magnetoNotes.bib”中大多数情况下都会起作用,然后我所做的是在 .bib 文件上运行 bibtex,然后在我的 .tex 上运行 bibtex 和快速编译。一开始,当参考文献很少时,它会做得很好,但现在我的参考文献更多了,它只显示“?”。搜索了这意味着什么,它说过程中有一个错误,正确的做法是先在 latex 中编译,然后在 bibtex 中编译,然后再在 latex 中编译。如果错误仍然存​​在,.bbl 文件会给出错误提示...检查了我的文件夹(首先删除了不是这两个文件的所有内容,然后在 .bib 上将我的文件作为 bibtex 运行,在 .tex 上运行快速编译),但没有 .bbl 文件,这意味着我实际上并没有根据我正在查看的问题/答案运行 bibtex。显然,这意味着我必须在 .tex 文件中运行 bibtex(阅读时我完全不明白这一点)。所以我想我可能必须按该顺序编译 .tex 文件而不是 .bib 文件。

现在,执行该操作(快速编译,bibtex,.tex 上的快速编译)并使用新的 biblio.bib 文件作为参考书目,我得到了错误

! Package inputenc Error: Unicode char \u8:− not set up for use with LaTeX. 

并且引用仍然显示“?”。

我不知道哪里出了问题。使用快速编译,因为无法在 Latex 中编译,由于 .png 图像而出现错误...如果我在 .tex 文件上执行 pdflatex、bibtex、pdflatex,我也会收到同样的错误。

我不知道这一切意味着什么,也不知道我现在做的是否正确。我读了几乎所有教你如何使用 bibtex 的页面,但还是不明白。

我的文档类别是

\documentclass[aip, apl, reprint, numerical]{revtex4-1}
\usepackage[utf8]{inputenc}
\usepackage[spanish,english]{babel}
\usepackage{graphicx}

\setcitestyle{numbers,square}

\begin{document}

\section{Introduction: }
bla bla \cite{Kitanovski1}


\bibliographystyle{unsrt}
\bibliography{biblio} 

\end{document}

参考书目中的内容很少:

     @Inbook{Kitanovski1,
     author="Kitanovski, Andrej
     and Tu{\v{s}}ek, Jaka   
     and Tomc, Urban  
     and Plaznik, Uro{\v{s}}
     and O{\v{z}}bolt, Marko
     and Poredo{\v{s}}, Alojz",
     title="The Thermodynamics of Magnetocaloric Energy Conversion",
     bookTitle="Magnetocaloric Energy Conversion: From Theory to Applications",
     year="2015",
     publisher="Springer International Publishing",
     address="Cham",
     pages="1--21",
     isbn="978-3-319-08741-2",
     doi="10.1007/978-3-319-08741-2_1",
     url="http://dx.doi.org/10.1007/978-3-319-08741-2_1"
     }

     @article{weiss,
     author = "Weiss P 
     and Piccard A",
     title = "Lé phénoméne magnétocalorique",
     journal = "J. Phys (Paris)",
     year = "1917",
     volume = "7",
     number = " ",
     pages = "103-109"
     }

其中大部分是文章,还有一些参考书籍。

答案1

(评论太长,因此作为答案发布。)

使用 latex、bibtex 和 latex 编译以下文档时没有遇到任何错误再两次

请注意,我已更正author第二条条目的字段,此外,还将第一条条目的条目类型从 更改为 。此外,由于参考书目样式不支持除数字之外的@inbook任何@incollection引文unsrt调用样式,因此我从指令中省略了该选项\documentclass。最后,我注释掉了多余的指令\setcitestyle{numbers,square}

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{biblio.bib}
     @Incollection{Kitanovski1,
     author="Kitanovski, Andrej and Tu{\v{s}}ek, Jaka   
        and Tomc, Urban and Plaznik, Uro{\v{s}}
        and O{\v{z}}bolt, Marko and Poredo{\v{s}}, Alojz",
     title="The Thermodynamics of Magnetocaloric Energy Conversion",
     bookTitle="Magnetocaloric Energy Conversion: From Theory to 
        Applications",
     year="2015",
     publisher="Springer International Publishing",
     address="Cham",
     pages="1--21",
     isbn="978-3-319-08741-2",
     doi="10.1007/978-3-319-08741-2_1",
     url="http://dx.doi.org/10.1007/978-3-319-08741-2_1"
     }
     @article{weiss,
     author = "Weiss, P. and Piccard, A.",
     title = "Lé phénoméne magnétocalorique",
     journal = "J. Phys (Paris)",
     year = "1917",
     volume = "7",
     number = " ",
     pages = "103-109"
     }
\end{filecontents}

\documentclass[aip, apl, reprint]{revtex4}
\usepackage[utf8]{inputenc}
\usepackage[spanish,english]{babel}
\usepackage{graphicx}
\bibliographystyle{unsrt}

%\setcitestyle{numbers,square}  % redundant

\begin{document}
\cite{Kitanovski1}, \cite{weiss}

\bibliography{biblio} 
\end{document}

相关内容