\underline{} 是在内容下面划线,不是我想要的,比如 define a rariable like UAI _math. 谢了
d*e
2 楼
try \_
UAI
【在 i*******w 的大作中提到】 : \underline{} 是在内容下面划线,不是我想要的,比如 define a rariable like UAI : _math. : 谢了
i*w
3 楼
thanks, got it!
【在 d****e 的大作中提到】 : try \_ : : UAI
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
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}