
我想要一個\top
與 和之間完全重疊的符號,\bot
使其看起來像羅馬數字“Ⅰ”。我搜尋了一個特定的符號,但什麼也沒找到。這個論壇和其他論壇中的重疊技術有點令人困惑。
有人能幫我嗎?
答案1
以下程式碼實現了\bottop
結合併\bot
尊重\top
當前數學風格:
\documentclass{article}
\makeatletter
\newcommand*{\bottop}{%
\mathpalette\@bottop{}%
}
\newcommand*{\@bottop}[2]{%
% #1: math style
% #2: unused
\rlap{$#1\bot\m@th$}% put \bot to the right without moving the current point
\top
}
\makeatother
\begin{document}
\[ \bottop \scriptstyle \bottop \scriptscriptstyle \bottop \]
\end{document}
答案2
從http://tug.ctan.org/info/symbols/compressive/symbols-a4.pdf這是一個可能的實作:
\documentclass{article}
\def\topbotatom#1{\hbox{\hbox to 0pt{$#1\bot$\hss}$#1\top$}}
\newcommand*{\topbot}{\mathrel{\mathchoice{\topbotatom\displaystyle}
{\topbotatom\textstyle}
{\topbotatom\scriptstyle}
{\topbotatom\scriptscriptstyle}}}
\begin{document}
$\topbot$
\end{document}