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
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
...
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
this worked for me:
\usepackage[warn]{textcomp}
(taken from here)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With