Redian新闻
>
怎么写下划线, like UAI_math
avatar
怎么写下划线, like UAI_math# TeX - TeX电子排版系统
i*w
1
\underline{} 是在内容下面划线,不是我想要的,比如 define a rariable like UAI
_math.
谢了
avatar
d*e
2
try \_

UAI

【在 i*******w 的大作中提到】
: \underline{} 是在内容下面划线,不是我想要的,比如 define a rariable like UAI
: _math.
: 谢了

avatar
i*w
3

thanks, got it!

【在 d****e 的大作中提到】
: try \_
:
: UAI

avatar
T*n
4
There is one problem with this approach, that you cannot search for
"UAI_math" in the PDF file because LaTeX defines \_ to be a drawn
line, not an _ character taken from a font.
I use this solution when I want the _ to be searchable in the PDF file:
\documentclass{article}
%\usepackage{times,mathptmx} % uncomment if prefer Times font
\DeclareRobustCommand\usfamily{%
\fontencoding{T1}\fontfamily{ptm}\selectfont
}
\DeclareTextFontCommand{\textus}{\usfamily}
\DeclareTextCommandDefault{\textunders

【在 d****e 的大作中提到】
: try \_
:
: UAI

avatar
d*e
5
记下了,多谢。

【在 T*******n 的大作中提到】
: There is one problem with this approach, that you cannot search for
: "UAI_math" in the PDF file because LaTeX defines \_ to be a drawn
: line, not an _ character taken from a font.
: I use this solution when I want the _ to be searchable in the PDF file:
: \documentclass{article}
: %\usepackage{times,mathptmx} % uncomment if prefer Times font
: \DeclareRobustCommand\usfamily{%
: \fontencoding{T1}\fontfamily{ptm}\selectfont
: }
: \DeclareTextFontCommand{\textus}{\usfamily}

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。