Re: [請益] 有關底線下加文字
※ 引述《shuya.bbs@ptt.cc (If Only)》之銘言:
> 在使用 \underbrace{abc}_{123}時
> 123會出現在abc的正下方 並且字體小一些
> 但使用底線\underline{def}_{456}時
> 456則會出現在def的右下方
> 不知道是否有方法能強迫456出現在def的底線下方呢??
> 類似這樣
> def
> ── <---底線 (畫的很醜 >"<)
> 456
\makeatletter
\newcommand{\myunderline}[1]{\mathop{\vtop{\m@th\ialign{##\crcr
$\hfil\displaystyle{#1}\hfil$\crcr\noalign{\kern2\p@\nointerlineskip}
\hrulefill\crcr\noalign{\kern2\p@}}}}\limits}
\makeatother
\myunderline{def}_{456}
--
一個神聖的目標是很危險的。當一個目標變得神聖時,
要達到這個目標的手段往往會變得很卑下。(林語堂.快樂的天才)
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: edt1023.sayya.org
推
06/10 09:32, , 1F
06/10 09:32, 1F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章