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

Re: latex: how to output the ¢ (cent) symbol



On Tue, Sep 14, 1999 at 11:54:28AM -0400, Michael Laing wrote:
> 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

Perhaps you should try with output T1 encoding.

Not sure but it should be
\usepackage[T1]{times}
instead of
> \usepackage{times}

Good luck.

-- 

    Dejan Muhamedagic
    UNIX and Linux Support

   Quant-X Service &                         Ph:  (+43) 4212 90555-0
   Consulting Ges.m.b.H.                     Fax: (+43) 4212 90555-20
   http://www.quant-x.com                    Email: support@quant-x.com


Reply to: