\ textnumero和字体编码

ova*_*nes 7 latex special-characters

我目前在我的LaTeX文档中使用\ textnumero符号.因此,我需要包含'textcomp'包.这样做时我得到一个编译器错误说明:

!包textcomp错误:符号\ texnumero不是由
TS1编码中的(textcomp)字体系列ptm 提供的.
(textcomp)改为使用默认系列.

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

%... somewhere in the document
\textnumero ...
Run Code Online (Sandbox Code Playgroud)

我怎样才能摆脱这条消息?我可以为数字符号设置其他字体或编码吗?

非常感谢,
Ovanes

ova*_*nes 1

好,我知道了。更改为带有此标志的字体解决了该问题。

\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}
Run Code Online (Sandbox Code Playgroud)

笔记!现在需要 savesym 包来避免错误,因为 iint 已经定义了。

问候,
奥瓦内斯