有沒有結合 \top 和 \bot 的 Latex 符號?

有沒有結合 \top 和 \bot 的 Latex 符號?

我想要一個\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}

相關內容