3

使用時:

\begin{listing}
...
\caption{foo}
\end{listing}

キャプションには次のように表示されます: Listing x: foo. 単語を別の単語に置き換えるにはどうすればよいListingですか。

4

2 に答える 2

5

minted を使用している場合 (私は使用しており、私のソースはあなたのものに似ています)、試してみることをお勧めします。

\renewcommand{\listingscaption}{Some fancy listing}
于 2013-06-23T19:03:32.920 に答える
3

マニュアルを読んでみるといいかもしれません

http://mirror.switch.ch/ftp/mirror/tex/macros/latex/contrib/listings/listings.pdf

32ページ

\begin{listing}[caption=Some fancy listing]

または試す

\begin{listing}[title=Some fancy listing]

または試す

\renewcommand{\lstlistingname}{A funny listing}

私のために働く最小限の例:

\documentclass{article}

\usepackage{listings}
\renewcommand{\lstlistingname}{Something}

\begin{document}
Some text.
\begin{lstlisting}[caption=wwww]
xxxx
\end{lstlisting}
Some more text.
\end{document}
于 2012-05-29T11:38:39.480 に答える