erro \begin{document} faltando

erro \begin{document} faltando

Estou recebendo um \begin{document}erro ausente, apesar de ter um \begin{document}no meu código.

Outros arquivos aqui (https://drive.google.com/drive/folders/0B4GteP8rSaosSGZDLTJrbFJlUWs?usp=sharing). Parece que a bibliografia causa problemas.

\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}

Responder1

Posso pensar em dois diagnósticos:

  • Você simplesmente não conseguiu carregar o biblatexpacote. (Uma razão para contemplar este cenário é que o seu documento não inclui uma \bibliographystyleinstrução; tal instrução é exigida pelo BibTeX, mas não pelo biblatex.) Se biblatexnão for carregada, a \bibliographyinstruçãoNão deveser colocado no preâmbulo. Se for uma simples falha ao carregar o biblatexpacote, carregue-o. Você também deve alterar a instrução

    \bibliography{bibfiles.d/.master,bibfiles.d/.psd,bibfiles.d/.Cook2012}
    

    para

    \addbibresource{bibfiles.d/.master.bib,bibfiles.d/.psd.bib,bibfiles.d/.Cook2012.bib}
    

    (Em biblatex, \bibliographyestá obsoleto.) Observe a adição das .bibextensões de nome de arquivo. Você ainda está planejando fornecer algumas \citeinstruções e uma \printbibliographyinstrução também, certo?

  • Você realmente não pretende carregar o biblatexpacote. Nesse caso, a \bibliographydirectiva não deve ser colocada no preâmbulo. Em vez disso, deverá ser colocado no corpo do documento, no local onde deverá ser colocada a bibliografia formatada. Você também precisará fornecer uma \bibliographystylediretriz adequada, é claro. E você também fornecerá algumas \citeinstruções, certo?

Aliás, todos os três bibarquivos realmente começam com um .(ponto)? Isso tornaria os "ocultos" se estivessem localizados em um sistema semelhante ao Unix.

informação relacionada