2016-02-06 65 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](小寫)。