\ textnumero and font encoding

I am currently using the \ textnumero character in my LaTeX document. Therefore, I need to enable the textcomp package. In doing so, I get a compiler error message:

! Textcomp package error: The \ texnumero character was not provided by the user (textcomp) of the ptm family in TS1 encoding.
(textcomp) Instead, the default family is used.

\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 a different font or encoding for the number sign only?

Many thanks,
Hovhannes

+7
special-characters latex
source share
3 answers

OK I understood. Changing the font that has this sign solved the problem.

 \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} 

Attention! The savesym package is now needed to avoid errors that iint is already defined.

Yours faithfully,
Hovhannes

+1
source share

If you want to avoid problems with changing fonts (for example, you want to save time), try the following:

 \usepackage{txfonts} \usepackage{times} \newcommand{\ftextnumero}{{\fontfamily{txr}\selectfont \textnumero}} ... \ftextnumero 1 ... 
+1
source share

this worked for me:

 \usepackage[warn]{textcomp} 

(taken from here )

+1
source share

All Articles