\textnumero and font encoding [closed]
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this questionI 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 pro开发者_高级运维vided 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,
OvanesIf 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)
精彩评论