3
votes
1answer
69 views

Spacing looks wrong in listings when using fixed columns

When I use columns=fixed to present my listings, the letters are spaced too far apart. Why is that? \documentclass{article} \usepackage{listings} \lstset{columns=fixed, basicstyle=\ttfamily}} ...
12
votes
1answer
7k views

Using listing for displaying Matlab code

I'm trying to display matlab code in a LaTeX document and the comments are typeset with an ugly space between letters: \documentclass{article} \usepackage{listings} \lstset{language=Matlab} ...