
Ich hätte gern ein Symbol, das die exakte Überlappung zwischen \top
und \bot
darstellt, 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 \bottop
Kombinationen 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}
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}