TeXShopProblem with tt typeface

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Post Reply
tedneeman
Posts: 2
Joined: Mon Feb 07, 2011 5:25 pm

Problem with tt typeface

Post by tedneeman »

Hi,

I can't get the typewrite typeface working in TeXShop. The error message says it can't load the pcrr7t font. What's that and how do I load it?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with tt typeface

Post by frabjous »

pcr is the postscript Courier font, and 7t is a certain size, I presume. You must be loading package that loads Courier instead of the default Computer Modern typewriter font. It's hard to believe you wouldn't have it installed, but as far as "loading it"... we don't even know how you are trying to load it. A minimal working example would be helpful here.
tedneeman
Posts: 2
Joined: Mon Feb 07, 2011 5:25 pm

Problem with tt typeface

Post by tedneeman »

Hi,

Thanks for your answer! I'm still trying to find my way around LaTeX... The problem turned out to be the times package, which I was using for Times New Roman. So I switched to the mathptmx package, which doesn't seem to work with the amsart document class. Why is that? It works fine if I switch to \documentclass{article}.

Code: Select all

\documentclass{amsart}

\usepackage{mathptmx}

\begin{document}

\begin{itemize}
\item hello
\begin{itemize}
\item \tt Courier text
\end{itemize}
\end{itemize}

\end{document}
Thanks!
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with tt typeface

Post by frabjous »

The \tt command and the times package are both obsolete. This is explained more funny in l2tabu.

However, that is most likely not your problem, since your sample works for me even if I change mathptmx back to times. I would guess that either there is something wrong with your postscript font package installation -- reinstalling the psnfss package might help -- or you're using the wrong font encoding, and changing it with the fontenc package, e.g., \usepackage[T1]{fontenc}, might help.
Post Reply