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