Feed on

you might want to use monospaced strings in latex to reproduce things like filenames. (where monospace refers to fonts like courier, where every character takes up the same amount of line space.)

here’s an example of how to do it:

The matrix $C_{i,j}$ is calculated in the uploaded file

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

6 Responses to “write in a monospace font (i.e. courier) in latex”

  1. on 10 Jun 2010 at 3:52 pm Amit

    great!! thanks !

  2. on 13 Nov 2010 at 3:05 pm Hannah

    Thank you!

  3. on 20 Feb 2011 at 5:54 pm Christopher Martin


    The matrix $C_{i,j}$ is calculated in the uploaded file
    {\tt loadComplex.m}.

  4. on 28 Mar 2011 at 5:44 pm Tom

    Thanks, just what I was looking for :-)

  5. on 29 Dec 2011 at 12:28 pm Luke

    Perfect. Thank you!

  6. on 24 May 2014 at 3:11 am mmoorpg

    I do not have the slightest idea

Did I get this wrong? Let me know!

Trackback URI | Comments RSS