0

Is it possible to change the name of the lstlisting environment from the listing package?

1

1 Answer 1

3

Instead of changing the name, you could just define a new listings environment and use this instead:

\documentclass{article}

\usepackage{listings}

\lstnewenvironment{newname}[1][]{\lstset{#1}}{}

\begin{document}

\begin{newname}
source code
\end{newname}

\end{document}
1
  • OK, I'll do just that. Thanks Commented Apr 27 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .