I'm using the listings package for my sourcecodes, and among other things to control the display of those, I'm using \lstset, obviously.
Now, When setting numberstyle, I've set them to \sffamily\tiny\color{gray}. Now this all works alright, because those all works as switches inside an environment. But what If I need the numbers inside an environment?
Namely, I'd like to raise the numbers a little with \raisebox{}{}. But how do I put the line number in question into that command? Basically, they have to go into the second set of curly braces.
How do I do that?
As requested, here's the example:
\documentclass[a4paper, 11pt]{scrartcl}
\usepackage{listings}
\lstset{
numbers=left,
numberstyle=\sffamily\tiny,
}
\begin{document}
\begin{lstlisting}[title=test]
for i:=maxint to 0 do
begin
{ do nothing }
end;
Write("Case insensitive")
WritE("Pascal keywords.")
a = 'a' -- comment
\end{lstlisting}
\end{document}
As you can see, I've set numberstyle to the switches I want to, but how am I supposed to put an environment in there, where the number is supposed to be put into?
