これらの記号は何ですか? (\ominus、\oslash ですが、90 度回転しています)

これらの記号は何ですか? (\ominus、\oslash ですが、90 度回転しています)

下の画像の 2 番目と 4 番目の記号は何ですか?

  • 私にとって、1 番目は のように見え\ominus、3 番目は のように見えます\oslash。しかし、他の 2 つはわかりませんでした。

ここに画像の説明を入力してください

答え1

\documentclass{standalone}
\usepackage{graphicx}
\begin{document}
    $\ominus$, \rotatebox[origin=c]{90}{$\ominus$}, $\oslash$ and \rotatebox[origin=c]{90}{$\oslash$}
\end{document}

結果

編集

下付き文字と上付き文字も考慮する campa の提案を見た後、ここでも以下を使用してこれが可能であることを示します\mathchoice下付き文字付き結果

\documentclass{article}
\usepackage{graphicx}

\newcommand\obslash{\ensuremath{\mathchoice%
    {\rotatebox[origin=c]{90}{$\oslash$}}% inline math
    {\rotatebox[origin=c]{90}{$\oslash$}}% display math
    {\rotatebox[origin=c]{90}{$\scriptstyle\oslash$}}% script
    {\rotatebox[origin=c]{90}{$\scriptscriptstyle\oslash$}}% scriptscript
}}
\newcommand\overt{\ensuremath{\mathchoice%
    {\rotatebox[origin=c]{90}{$\ominus$}}%
    {\rotatebox[origin=c]{90}{$\ominus$}}%
    {\rotatebox[origin=c]{90}{$\scriptstyle\ominus$}}%
    {\rotatebox[origin=c]{90}{$\scriptscriptstyle\ominus$}}%
}}

\begin{document}
    $\ominus$, \rotatebox[origin=c]{90}{$\ominus$}, $\oslash$ and \rotatebox[origin=c]{90}{$\oslash$}.
    It also scales correctly when used in sub-/superscripts:
    
    Text: $\ominus_{\ominus_{\ominus}}$, $\overt_{\overt_{\overt}}$, $\oslash_{\oslash_{\oslash}}$ and $\obslash_{\obslash_{\obslash}}$.
    \[
        \textrm{Display: } \ominus_{\ominus_{\ominus}}\textrm{, } \overt_{\overt_{\overt}}\textrm{, } \oslash_{\oslash_{\oslash}}\textrm{ and } \obslash_{\obslash_{\obslash}}\textrm{.}
    \]
\end{document}

答え2

unicode-mathこれら4つの文字はすべてUnicodeでサポートされており、以下のコマンド名や互換パッケージでサポートされています。stix2

 U+2296   U+29B6        U+2298   U+29B8
 \ominus  \circledvert  \oslash  \obslash

⊖ ⦶ ⊘ ⦸

ここに画像の説明を入力してください

\documentclass{article}

\usepackage{unicode-math}

\setmathfont{STIX Two Math}
\begin{document}

\[
a ^^^^2296 b  ^^^^29b6   c  ^^^^2298 d  ^^^^29b8
\]

\end{document}

答え3

の修正カンパの答えすべてのシンボルが同じ境界ボックスを取得することを保証するためです。

\documentclass{article}

\usepackage{graphicx} % for \rotatebox/\reflectbox
\usepackage{amsmath}  % for \binrel@/\binrel@@

\makeatletter
\newcommand*{\mathreflect}[1]{%
  \binrel@{#1}\binrel@@{\mathpalette\math@reflect{#1}}%
}
\newcommand*{\math@reflect}[2]{\reflectbox{\m@th$#1#2$}}
\newcommand*{\mathrotate}[3][]{%
  \binrel@{#3}\binrel@@{\vphantom{#3}\mathpalette\math@rotate{{#1}{#2}{#3}}}%
}
\newcommand*{\math@rotate}[2]{\math@@rotate#1#2}
\newcommand*{\math@@rotate}[4]{% #1=math style,#2=option,#3=angle,#4=symbol
  \sbox\z@{$\m@th#1#4$}%
  \smash{\makebox[\wd\z@]{\rotatebox[#2]{#3}{$\m@th#1#4$}}}%
}
\makeatother

\newcommand*{\obslash}{\mathreflect{\oslash}}
\newcommand*{\overt}{\mathrotate[origin=c]{90}{\ominus}}

\begin{document}

$\ominus$, $\overt$, $\oslash$, and $\obslash$

$a\ominus b$

$a\overt b$

$a\oslash b$

$a\obslash b$

$\overt_{\overt}\oslash_{\oslash}$

\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{0.1pt}
\fbox{$\ominus$}\kern-\fboxrule
\fbox{$\overt$}\kern-\fboxrule
\fbox{$\oslash$}\kern-\fboxrule
\fbox{$\obslash$}

\end{document}

ここに画像の説明を入力してください

答え4

からstmaryrdパッケージ(理論計算機科学で使用される記号):

\documentclass[11pt]{article}
\usepackage{stmaryrd}
\begin{document}
$\ominus$ and $\oslash$ % in LaTeX kernel

$\varominus$, $\varobar$, $\varoslash$ and $\varobslash$
\end{document}

ここに画像の説明を入力してください

関連情報