使用表内的引用

使用表内的引用

我试图以表格方式分析我的参考书目,以获得以下输出:

在此处输入图片描述

为此,我使用以下代码

\documentclass{article}    
\usepackage{mathtools}
\usepackage{amsmath}    
\begin{document}      

\begin{tabular}{|l|l|l|l|}
\hline
reference & Charactersitic 1 & Charactersitic 2 & Charactersitic 3 \\ 
\hline
\cite{X} & method xx & method xy & method xz \\ 
\hline
\cite{Y} & method yx & method yy & method yz \\ 
\hline
\cite{Z} & method zx & method zy & method zz \\ 
\hline
\end{tabular}

\bibliographystyle{plain}
\bibliography{BibliographyTest}

\end{document}

参考书目在followinfBibliographyTest.bib文件中,如下所示:

@ARTICLE{X,
AUTHOR = {X. Author},
TITLE = {Title 1},
JOURNAL = {Journal of X},
YEAR = {1961},
volume = {16},
pages = {8--37},
} 

@BOOK{Y,
AUTHOR = {Y. Author},
TITLE = {Title 2},
PUBLISHER = {Publicher of Y},
YEAR = {2004},
edition = {2nd Edition},
}

@BOOK{Z,
AUTHOR = {Z. Author},
TITLE = {Title 3},
PUBLISHER = {Publicher of Z},
YEAR = {2004},
edition = {2nd Edition},
}

编译 -> Bibtex -> 编译不会产生任何错误或警告,而且,没有输出 PDF 文件!

有人可以帮忙吗?

答案1

您肯定是查看了错误的输出文件,或者以不正确的方式使用了 IDE。我从命令行编译了您的文件,并毫无问题地获得了以下内容:在此处输入图片描述

相关内容