\textnumero and font encoding

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


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


如果你想避免更改字体的麻烦(例如,你想保持时间),试试这个:

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

...
ftextnumero 1
...

this worked for me:

usepackage[warn]{textcomp}

(taken from here)

链接地址: http://www.djcxy.com/p/870.html

上一篇: 在github上标记消息

下一篇: \ textnumero和字体编码