latex: code highlighting debugged

I changed something that it works now, but it is also more ugly. Please build it and check before merging that everything is still as you like it. Looks are certainly a nice to have, but if we could make all the code blocks beautiful again, I also wouldn't mind. I won't go hunting for such details currently, though.