You are not logged in.

#1 2013-05-11 12:06:03

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Can't use 'courier' package in latex

Hello,
I have an issue with Texmaker. I want to use this configuration so all code listings are monospaced:

\usepackage{courier}
\lstset{showstringspaces=false,basicstyle=\footnotesize\ttfamily}

However while compiling I get this error:

!pdfTeX error: pdflatex (file pcrb8u): Font pcrb8u at 600 not found

If I don't use courier package I can compile documents to pdf but code listings are quite ugly.

I have installed textlive-core package which contains pcrb8u.tfm file. Do I need to install any another package?

Offline

#2 2013-05-11 23:27:45

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Can't use 'courier' package in latex

The standard way of listing code is lstlisting. You can choose monospaced font (and an arsenal of toget stuff) easily. Google it wink

Offline

Board footer

Powered by FluxBB