[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

latex: how to output the ¢ (cent) symbol



I have a potato system with all the usual latex stuff on it.

I am working with a lot of latin1 (ISO-8859-1) text and need to output
the ¢ (cent) symbol, which is latin1 character number 162 (0xa2). How
can I do that? Almost all other characters work fine with the latin1
input encoding.

Here's a little example document.

\documentclass[10pt,letterpaper]{letter}
\usepackage[latin1]{inputenc}
\usepackage{times}
\begin{document}
Yo Günther, a nickle is \$0.05 or 5¢.
\end{document}

Running latex gives me this output:

plum:~$ latex cent.tex
This is TeX, Version 3.14159 (Web2C 7.3.1)
(cent.tex
LaTeX2e <1998/12/01> patch level 1
Babel <v3.6x> and hyphenation patterns for american, french, german,
ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/letter.cls
Document Class: letter 1999/02/09 v1.2z Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/inputenc.sty beta test version
(/usr/share/texmf/tex/latex/base/latin1.def))
(/usr/share/texmf/tex/latex/psnfss/times.sty) (cent.aux)
(/usr/share/texmf/tex/latex/psnfss/ot1ptm.fd)

! LaTeX Error: Command \textcent unavailable in encoding OT1.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.5 Yo G^^fcnther, a nickle is \$0.05 or 5^^a2
                                              .
? 

Thanks for your help and/or pointers!

ml


Reply to: