이 상징들은 무엇입니까? (\ominus, \oslash이지만 90도 회전됨)

이 상징들은 무엇입니까? (\ominus, \oslash이지만 90도 회전됨)

아래 이미지에서 2번째와 4번째 기호는 무엇입니까?

  • 나에게는 1-st가 처럼 보이고 \ominus3-rd가 처럼 보입니다 \oslash. 그러나 나는 나머지 두 사람을 알아낼 수 없었다.

여기에 이미지 설명을 입력하세요

답변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과 같은 호환 패키지 의 명령 이름으로 지원됩니다.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}

여기에 이미지 설명을 입력하세요

관련 정보