具有“ociamthesis”类和参考书目样式“ormsv080”的 Bibtex

具有“ociamthesis”类和参考书目样式“ormsv080”的 Bibtex

ociamthesis我正在使用类和参考书目样式撰写论文ormsv080。我有大量引用,当我编译如下所示的主文件时,我没有获得任何引用。对于所有引用,我都收到以下错误:

Citation `Gerchak1994' on page 3 undefined

如果我把其中一章作为独立文件运行,它就可以正常工作。该.bib文件与主文件和章节文件位于同一文件夹中。

请提出解决该问题的建议。

这是主文件:

%\documentclass[12pt]{ociamthesis}   % default square logo 
\documentclass[12pt,squarelogo]{ociamthesis} % use old belt crest logo
%\documentclass[12pt,shieldcrest]{ociamthesis} % use older shield crest logo

%load any additional packages
\usepackage{hyperref}
\usepackage{amssymb}
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{setspace}
\usepackage{pdflscape} 
\usepackage{graphviz}
\usepackage{caption}
\usepackage{bigstrut}
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage{caption}
%\usepackage{subcaption}
\usepackage{subfigure}

\bibpunct[, ]{(}{)}{,}{a}{}{,}%
 \def\bibfont{\small}%
 \def\bibsep{\smallskipamount}%
 \def\bibhang{24pt}%
 \def\newblock{\ }%
 \def\BIBand{and}%


\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{caption}
%\usepackage{subcaption}
\usepackage[margin=1in]{geometry}
\usepackage{verbatim}   % useful for program listings
\usepackage{color}      % use if color is used in text
\usepackage{subfigure}  % use for side-by-side figures
\usepackage{hyperref}   % use for hypertext links, including those to external documents and URLs
\usepackage{setspace}
\onehalfspacing

\setlength{\parskip}{10pt}
\setlength{\parindent}{0pt}

\newtheorem{Thm}{PROPOSITION}


\newtheorem{theos}{Theorem}

\newtheorem{hypos}{HYPOTHESIS}

%input macros (i.e. write your own macros file called mymacros.tex 
%and uncomment the next line)
%\include{mymacros}

\title{}     %your thesis title,
         %note \\[1ex] is a line break in the title

\author{}             %your name
\college{}  %your college

%\renewcommand{\submittedtext}{change the default text here if needed}
\degree{}     %the degree
\degreedate{}         %the degree date

%end the preamble and start the document
\begin{document}

%this baselineskip gives sufficient line spacing for an examiner to easily
%markup the thesis with comments
\baselineskip=18pt plus1pt

%set the number of sectioning levels that get number and appear in the contents
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}


\maketitle                  % create a title page from the preamble info
\include{dedication}        % include a dedication.tex file
\include{acknowlegements}   % include an acknowledgements.tex file
%\include{abstract}          % include the abstract

\begin{romanpages}          % start roman page numbering
\tableofcontents            % generate and include a table of contents
\listoffigures              % generate and include a list of figures
\listoftables
\end{romanpages}            % end roman page numbering

%now include the files of latex for each of the chapters etc

\include{Chapter1}
\include{Chapter2}
\include{Chapter3}
\include{Chapter4}
\include{Chapter5}


%now enable appendix numbering format and include any appendices
\appendix
\include{appendix1}
\include{appendix2}
\include{appendix3}

%next line adds the Bibliography to the contents page
\addcontentsline{toc}{chapter}{Bibliography}
%uncomment next line to change bibliography name to references
%\renewcommand{\bibname}{References}

\bibliographystyle{ormsv080}  %use the plain bibliography style
\bibliography{REF_SHELFSPACE}        %use a bibtex bibliography file refs.bib

\end{document}

答案1

您是否多次运行 bibtex 和 latex?我建议如下:

set name=Abschlussarbeit
set latex_cmd=-synctex=-1 -max-print-line=120 -interaction=nonstopmode %name%.tex

pdflatex %latex_cmd%
bibtex %name%
makeindex %name%.idx -t %name%.ilg -o %name%.ind
makeindex -s %name%.ist -t %name%.alg -o %name%.acr %name%.acn
makeindex -s %name%.ist -t %name%.glg -o %name%.gls %name%.glo
makeindex -s %name%.ist -t %name%.slg -o %name%.syi %name%.syg
pdflatex %latex_cmd%

相关内容