Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

\textnumero and font encoding [closed]

I currently use the \textnumero sign in my LaTeX document. Therefore, I need to include the 'textcomp' package. When doing so I get a compiler error stating:

! Package textcomp Error: Symbol \texnumero not provided by
(textcomp) font family ptm in TS1 encoding.
(textcomp) Default family used instead.

\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{ucs}
\usepackage[latin1]{inputenc}
\usepackage[textcomp]

%... somewhere in the document
\textnumero ...

How can I get rid of this message? Can I set some other font or encoding for the number sign only?

Many Thanks,
Ovanes

like image 894
ovanes Avatar asked Nov 12 '09 09:11

ovanes


3 Answers

If you want to avoid the bother of changing fonts (for example, you want to keep times), try this:

\usepackage{txfonts}
\usepackage{times}
\newcommand{\ftextnumero}{{\fontfamily{txr}\selectfont \textnumero}}

...
\ftextnumero 1
...
like image 182
badroit Avatar answered Oct 18 '22 05:10

badroit


Ok, I got it. Changing to font which has this sign solved the issue.

\usepackage{savesym}
\usepackage{amsmath, amsfonts, amsthm, amssymb}
\savesymbol{iint}
\usepackage{txfonts} % this is the font
\restoresymbol{TXF}{iint}
\usepackage{ucs}
\usepackage[ansinew]{inputenc}



\usepackage{textcomp}

Note! savesym package is now needed to avoid errors, that iint is already defined.

Regards,
Ovanes

like image 1
ovanes Avatar answered Oct 18 '22 05:10

ovanes


this worked for me:

\usepackage[warn]{textcomp}

(taken from here)

like image 1
user36612 Avatar answered Oct 18 '22 05:10

user36612