编辑

编辑

我正在使用 tamplate Tufte 样式撰写论文,这是我在 Latex 中的第一个文档。我尝试添加第一个,\cite但遇到了问题。

以下是代码:

主要.tex:

\documentclass{tufte-book}

% uncomment this line if you prefer colored hyperlinks (e.g., for onscreen viewing)
\hypersetup{colorlinks} 

% get chapter and section numbers {is the depth}
\setcounter{secnumdepth}{1}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Book metadata
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{A Tufte-Style Book\thanks{Thanks to Edward R.~Tufte for his inspiration.}}
\author[The Tufte-LaTeX Developers]{The Tufte-LaTeX\ Developers}
\publisher{Publisher of This Book}

%\usepackage{microtype}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Just some sample text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For nicely typeset tabular material
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{booktabs}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For graphics / images
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth, totalheight=\textheight, keepaspectratio}
\graphicspath{{graphics/}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The fancyvrb package lets us customize the 
% formatting of verbatim environments.  
% We use a slightly smaller font.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Prints argument within hanging parentheses (i.e., parentheses that take
% up no horizontal space).  Useful in tabular environments.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\hangp}[1]{\makebox[0pt][r]{(}#1\makebox[0pt][l]{)}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Prints an asterisk that takes up no horizontal space.
% Useful in tabular environments.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\hangstar}{\makebox[0pt][l]{*}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Prints a trailing space in a smart way.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xspace}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some shortcuts for Tufte's book titles.  
% The lowercase commands will produce the initials of the book title in italics.  
% The all-caps commands will print out the full title of the book in italics.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\vdqi}{\textit{VDQI}\xspace}
\newcommand{\ei}{\textit{EI}\xspace}
\newcommand{\ve}{\textit{VE}\xspace}
\newcommand{\be}{\textit{BE}\xspace}
\newcommand{\VDQI}{\textit{The Visual Display of Quantitative Information}\xspace}
\newcommand{\EI}{\textit{Envisioning Information}\xspace}
\newcommand{\VE}{\textit{Visual Explanations}\xspace}
\newcommand{\BE}{\textit{Beautiful Evidence}\xspace}

\newcommand{\TL}{Tufte-\LaTeX\xspace}

% other useful code...

\usepackage{makeidx}
\makeindex

\begin{document}

    \frontmatter
    %\input{./frontespizio/frontespizio} 
    \input{./ringraziamenti/ringraziamenti}
    \tableofcontents
    \listoffigures
    \listoftables   

    \mainmatter
    \input{./capitoli/0}
    \input{./capitoli/1}

    % bibliografia
    \bibliography{./bibliografia/bibliography}
    \bibliographystyle{plainnat}

    %\printindex
\end{document}

1.文本

In the book\cite{ColinWare_InformationVisualization} bla bla bla
% other lines
@book{ColinWare_InformationVisualization,
    author = {Colin Ware},
    title = {Information visualization - Perception for design},
    date = {2012},
    edition = {3},
}

bibliografia/bibliography.bib

@BOOK{ColinWare_InformationVisualization,
    author = {Colin Ware},
    title = {Information visualization: Perception for design},
    year = {2012},
    publisher = {Morgan Kaufmann},
    month = {June},
    edition = {Third},
    isbn = {978-0123814647}
}

我收到此错误:

riga 57: Missing $ inserted. @book{ColinWare_
riga 62: Extra }, or forgotten $. }
riga 188: Missing $ inserted.
: shell escape is disabled, so I can only detect \ifwindows.
: Marginpar on page 11 moved.
riga 20: Citation `ColinWare_InformationVisualization' undefined
: Marginpar on page 12 moved.
riga 22: Overfull \hbox (5.29193pt too wide) in paragraph
riga 31: Reference `fig:fullfigCatCenter' on page 12 undefined
: `h' float specifier changed to `ht'.
riga 41: Underfull \hbox (badness 10000) in paragraph
riga 57: Overfull \hbox (2.93614pt too wide) in paragraph
riga 57: Overfull \hbox (0.60222pt too wide) in paragraph
: There were undefined citations.
: There were undefined references.

在此处输入图片描述

谢谢!

编辑

我删除了里面的这段代码1.tex

@book{ColinWare_InformationVisualization,
    author = {Colin Ware},
    title = {Information visualization - Perception for design},
    date = {2012},
    edition = {3},
}

但现在页边空白处什么都没有,只有书号,没有书名。

在此处输入图片描述

此外,论文底部的参考书目也没有出现。

相关内容