Gibt es ein Latex-Symbol, das \top und \bot kombiniert?

Gibt es ein Latex-Symbol, das \top und \bot kombiniert?

Ich hätte gern ein Symbol, das die exakte Überlappung zwischen \topund \botdarstellt, sodass es wie die römische Zahl „Ⅰ“ aussieht. Ich habe nach einem bestimmten Symbol gesucht, aber nichts gefunden. Und die Überlappungstechniken in diesem und anderen Foren sind ein wenig verwirrend.

Kann mir jemand helfen?

Antwort1

Der folgende Code implementiert diese \bottopKombinationen unter Berücksichtigung des aktuellen Mathematikstils:\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}

Ergebnis

Antwort2

Aushttp://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdfhier ist eine mögliche Implementierung:

\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}

verwandte Informationen