![样式文件:siam.bst 数据库文件 #1:/Users/itz/Desktop/Salemoche/ZHdK/BA/Thesis/References/ba.bib 警告——ref:swan 中的日志为空](https://linux22.com/image/366644/%E6%A0%B7%E5%BC%8F%E6%96%87%E4%BB%B6%EF%BC%9Asiam.bst%20%E6%95%B0%E6%8D%AE%E5%BA%93%E6%96%87%E4%BB%B6%20%231%EF%BC%9A%2FUsers%2Fitz%2FDesktop%2FSalemoche%2FZHdK%2FBA%2FThesis%2FReferences%2Fba.bib%20%E8%AD%A6%E5%91%8A%E2%80%94%E2%80%94ref%3Aswan%20%E4%B8%AD%E7%9A%84%E6%97%A5%E5%BF%97%E4%B8%BA%E7%A9%BA.png)
我正在努力研究乳胶以完成我的学士论文,但不得不花大约 3 个小时处理这个参考书目主题却没有任何进展,所以请问有人能帮助我吗?我尝试了很多方法,得到了各种各样的错误,但所有这些错误都来自 bibtex 编译器。
这是我的 .tex 文档,基本上是从教程中复制过来的,我不认为我犯了错误,因为它也不能与最低限度一起使用,但你永远不知道
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[hidelinks]{hyperref} % clickable references
\usepackage[numbers,sort&compress]{natbib} % order reference numbers
\usepackage{graphicx} % import images
\usepackage{float} % control float positions
\usepackage{lipsum}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Gabriel Bach}
\begin{document}
\begin{titlepage}
\begin{center}
\line(1,0){200}\\
[1cm]
Hello, World! \\
\line(1,0){200}\\
\begin{flushright}
\textsc{
Gabriel
Bach\\
ZHdK
}
\end{flushright}
\end{center}
\end{titlepage}
% Front Matter _________________________________
\section*{Summary} % *removes numbering in title
blabliblu
\addcontentsline{toc}{section}{\numberline{}Summary}
\pagenumbering{roman}
\cleardoublepage % moves everything after to a new page
% List of Figures _________________________________
\listoffigures
\cleardoublepage
\addcontentsline{toc}{section}{\numberline{}List of Figures}
% Table of Contents _________________________________
\tableofcontents
\thispagestyle{empty} % remove page number
\cleardoublepage
\setcounter{page}{1}
% Body _________________________________
\section{Introduction}\label{intro}
\pagenumbering{arabic}
Hello, World!
Blablablabla aösdjfaösdifj aösdifjasöodifjaw efoöaiejwöfoa weöfoijaoösdfijeaöwofi aöoeifj ölaksdjf aöosi dfaölsdfj öo \cite{ref:swan}
\newpage
\section{Bla bli blu}\label{scnd__paragraph}
ölkasjdfölaisjdf öaoisjdflö aösdijf asödifj fsdlf
\subsection{subsection}
\begin{figure}[h] % h for here
\centering
\caption[This is my optional Caption]{this is my real caption}
\end{figure}
\subsubsection{subsubsection}
you can find this on page \pageref{intro}
This is the reference \cite{ref:swan} % cite key from bibdesk
\begin{itemize}
\item Hey
\item 'sup
\begin{itemize}
\item asdöf
\end{itemize}
\end{itemize}
\cleardoublepage
% Bibliography _________________________________
\bibliographystyle{siam}
\bibliography{/Users/itz/Desktop/Salemoche/ZHdK/BA/Thesis/References/ba}
\addcontentsline{toc}{section}{\numberline{}References}
\cleardoublepage
% Appendix _________________________________
\appendix
\section{Appendix}
\addcontentsline{toc}{section}{\numberline{}Apendix}
\end{document}
我首先使用 bibdesk 编译了我的文件,然后尝试编写自己的文件,最后使用了 mendeley,但都失败了
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% Created for user at 2017-12-03 15:43:59 +0100
%% Saved with string encoding Unicode (UTF-8)
@article{ref:swan,
Author = {Nassim Nicholas Taleb},
Date-Added = {2017-12-02 16:40:54 +0000},
Date-Modified = {2017-12-02 16:41:25 +0000},
Title = {The Black Swan: The Impact of the Highly Improbable},
Year = {2007},
Bdsk-File-1 = {YnBsaXN0MDDUAQIDBAUGJCVYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoKgHCBMUFRYaIVUkbnVsbNMJCgsMDxJXTlMua2V5c1pOUy5vYmplY3RzViRjbGFzc6INDoACgAOiEBGABIAFgAdccmVsYXRpdmVQYXRoWWFsaWFzR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I1xOU0RpY3Rpb25hcnmiIiBfEA9OU0tleWVkQXJjaGl2ZXLRJidUcm9vdIABAAgAEQAaACMALQAyADcAQABGAE0AVQBgAGcAagBsAG4AcQBzAHUAdwCEAI4A5ADpAPEDZwNpA24DeQOCA5ADlAObA6QDqQO2A7kDywPOA9MAAAAAAAACAQAAAAAAAAAoAAAAAAAAAAAAAAAAAAAD1Q==}}
有人能告诉我我做错了什么吗?
答案1
对于每个 BibTeX 条目类型,正在使用的参考书目样式指定哪些字段是 (a) 必需的、(b) 可选的或 (c) 忽略的(即,所有既不是必需的也不是可选的字段)。
唯一具有没有必填字段,因此只有可选和忽略的字段,是@misc
“包罗万象”的条目类型。
号码siam
布样式自 1987 年以来几乎没有变化,其参赛类型有以下正式规范@article
:
- 必填字段:
author
、title
、journal
和year
; - 可选字段:
volume
、number
、pages
和note
; - 忽略字段:所有其他字段
条目类型@article
只适用于在期刊上发表的文章。如果您展示的是一本书,那么使用@article
条目类型显然是不正确的。由于条目(不出所料)缺少字段journal
,BibTeX 会发出警告。
当然,更合适的条目应该是:
@book{ref:swan,
author = "Nassim Nicholas Taleb",
title = "The Black Swan: The Impact of the Highly Improbable",
year = 2007,
publisher = "Random House",
address = "New York",
}
使用siam
书目样式和 类型的条目时@book
,字段author
或editor
、title
和year
是publisher
必需的;字段volume
、number
、series
、edition
和note
是可选的;所有其他字段将被忽略。例如,即使您提供了一个isbn
字段,它也会由siam
书目样式忽略。(其他较新的书目样式不会忽略该isbn
字段。)