Hi,
I am using the courier package in a very large document, for listing/verbatim/etc. I would like to keep using this package and I would like everything to remain exactly as it is at the moment.
I just want to make one small adjustment: I want my email at the start of the document to be displayed in the default CMU typewriter font (i.e. the way it would be displayed if I did not use the courier package and just used the \texttt command).
It seems like such a simple thing to do, but I cannot figure it out. I've been trying for hours.
I am using Latex => PS => PDF.
Thank you in advance,
Text Formatting ⇒ How to use two different typewriter fonts?
How to use two different typewriter fonts?
Last edited by gmiwenht on Sat Oct 23, 2010 3:05 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to use two different typewriter fonts?
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage[T1]{fontenc}\usepackage{courier}\begin{document}{\fontfamily{cmtt}\selectfont This is in Computer Modern Typewriter.}\texttt{This is in courier.}(Both are ugly. Ever considered beramono or inconsolata?)\end{document}
Re: How to use two different typewriter fonts?
Thank you, worked perfectly.
And I've never even heard of the other fonts!
And I've never even heard of the other fonts!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to use two different typewriter fonts?
Now that the problem is solved, please be so kind and mark the topic (and not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to use two different typewriter fonts?
See the LaTeX Font Catalogue: Subsection: Typewriter Fonts.gmiwenht wrote:Thank you, worked perfectly.
And I've never even heard of the other fonts!
Re: How to use two different typewriter fonts?
I will mark the topic as solved.
Sorry, I did not read the rules before I posted, as I should have.
Thank you again for the response, and for the font suggestions.
Sorry, I did not read the rules before I posted, as I should have.
Thank you again for the response, and for the font suggestions.