2016-02-06 62 views
0

我遇到LaTeX不显示数字列表和列表清单的问题。我不知道问题出在哪里。文档不显示数字列表(LaTeX)

我与TeXstudio工作和代码定义如下:

\begin{document} 

\begin{lstlisting}[caption={Testcode is here}\label{lst:Testcode is here},frame=single] 
//here is the code 
\end{lstlisting} 

\begin{figure}[H] 
    \centering 
    \includegraphics[width=0.5\textwidth]{pic1.jpg} 
    \caption{That is a pic} 
    \label{fig: That is a pic} 
\end{figure} 

\listoffigures 

\lstlistoflistings 

\end{document} 

两个列表保持为空。谁能告诉我问题是什么?

+1

你使用了什么'\ documentclass'?也许你可以给社区提供一个[最小工作示例(MWE)](http://goo.gl/dtPzv),而不仅仅是你的文档代码(序言可能在你当前的问题中扮演重要角色)。 – Werner

回答

0

我能够通过对文件进行这些修改来生成数字列表; 这两行添加到文件的开始:

\documentclass{article} 
\usepackage{listings} 

然后,改变[H][h](小写)。