
コード内に\begin{document}
があるにもかかわらず、欠落エラーが発生します。\begin{document}
その他のファイルはこちら(https://drive.google.com/drive/folders/0B4GteP8rSaosSGZDLTJrbFJlUWs?usp=sharing)。参考文献が問題を引き起こしているようです。
\documentclass[11pt]{article}
\usepackage{ifthen}
\newboolean{PrintVersion}
\setboolean{PrintVersion}{false}
% CHANGE THIS VALUE TO "true" as necessary, to improve printed results for hard copies
% by overriding some options of the hyperref package below.
%\usepackage{nomencl} % For a nomenclature (optional; available from ctan.org)
\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
\usepackage[pdftex]{graphicx} % For including graphics N.B. pdftex graphics driver
\usepackage[pdftex,letterpaper=true,pagebackref=false]{hyperref} % with basic options
% N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing.
\hypersetup{
plainpages=false, % needed if Roman numbers in frontpages
pdfpagelabels=true, % adds page number as label in Acrobat's page count
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={uWaterloo\ LaTeX\ Thesis\ Template}, % title: CHANGE THIS TEXT!
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=blue, % color of internal links
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links
}
\ifthenelse{\boolean{PrintVersion}}{ % for improved print quality, change some hyperref options
\hypersetup{ % override some previously defined hyperref options
% colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black}
}{} % end of ifthenelse (no else)
\bibliography{bibfiles.d/.master,bibfiles.d/.psd,bibfiles.d/.Cook2012}
\begin{document}
fhjh hjkhj
hohilkj
\end{document}
答え1
2つの診断が考えられます:
パッケージの読み込みに失敗しました
biblatex
。(このシナリオを検討する理由は、ドキュメントに指示が含まれていないことです。そのような指示はBibTeXでは必要ですが、biblatexでは必要ありません。)が読み込まれていない\bibliographystyle
場合、指示biblatex
\bibliography
してはならないプリアンブルに配置する必要があります。パッケージのロードが単純に失敗した場合はbiblatex
、ロードしてください。また、命令を変更する必要があります。\bibliography{bibfiles.d/.master,bibfiles.d/.psd,bibfiles.d/.Cook2012}
に
\addbibresource{bibfiles.d/.master.bib,bibfiles.d/.psd.bib,bibfiles.d/.Cook2012.bib}
(biblatex では
\bibliography
非推奨です。) ファイル名拡張子が追加されていることに注意してください。まだいくつかの手順と説明も.bib
提供する予定ですか?\cite
\printbibliography
パッケージをロードするつもりはありません
biblatex
。その場合、\bibliography
ディレクティブはプリアンブルに配置しないでください。代わりに、ドキュメントの本文、つまりフォーマットされた参考文献を配置する場所に配置する必要があります。もちろん、適切なディレクティブも提供する必要があります\bibliographystyle
。また、いくつかの\cite
指示も提供する必要がありますよね?
ちなみに、3 つのbib
ファイルはすべて本当に.
(ドット) で始まっていますか? これらが Unix 系システムにある場合、これらは「隠しファイル」になります。