【问题标题】:Latex listings: title above the listing should be different than the title in the list of listingsLatex 列表:列表上方的标题应与列表列表中的标题不同
【发布时间】:2018-03-28 11:25:37
【问题描述】:

您可以像这样在 Latex 中创建列表

\begin{lstlisting}[caption={foo}]
    test
\end{lstlisting}

listing上面写着“foo”,listing里面也写着“foo”。

我希望在列表中写成“bar”而不是“foo”。我该怎么做?

【问题讨论】:

    标签: latex listings


    【解决方案1】:

    找到了:

    \begin{lstlisting}[caption={[bar]foo}]
        test
    \end{lstlisting}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-27
      • 1970-01-01
      • 1970-01-01
      • 2019-11-28
      • 2019-02-02
      • 1970-01-01
      相关资源
      最近更新 更多