Search found 2 matches
- Thu Aug 13, 2009 8:00 am
- Forum: General
- Topic: Problems with newcommand and newenviornment
- Replies: 2
- Views: 1534
Re: Problems with newcommand and newenviornment
awesome, this worked great. thank you
- Thu Aug 13, 2009 1:49 am
- Forum: General
- Topic: Problems with newcommand and newenviornment
- Replies: 2
- Views: 1534
Problems with newcommand and newenviornment
Hi everyone
I would like to save myself some typing by creating a macro for typesetting sourcecode examples. I would like to do something like this:
\newcommand{\pythonCode}[1] {\begin{lstlisting}[backgroundcolor=\color{pythonColor}]}#1\end{lstlisting}}
or this:
\newenvironment{pythonCode}[0 ...
I would like to save myself some typing by creating a macro for typesetting sourcecode examples. I would like to do something like this:
\newcommand{\pythonCode}[1] {\begin{lstlisting}[backgroundcolor=\color{pythonColor}]}#1\end{lstlisting}}
or this:
\newenvironment{pythonCode}[0 ...