유사한 \hourglass 및 \lozengeminus 기호

유사한 \hourglass 및 \lozengeminus 기호

\hourglass유사한 (⧖) 및 \lozengeminus(⟠) 기호, 즉 동일한 삼각형을 얻을 수 있는 방법이 있습니까 ?

fdsymbolstix패키지를 모두 사용하면 \lozengeminus\hourglass.

목표는 하향 삼각형과 상향 삼각형을 갖는 두 개의 "반대" 연산자를 갖는 것입니다. 즉, 두 번째 연산자는 삼각형을 교환하여 얻습니다.

답변1

어쩌면 a를 tikzpicture명령으로 정의할 수도 있습니다. 그런 다음 생성하려는 두 기호의 크기를 제어할 수 있습니다.

\documentclass{article}
\usepackage{tikz}


\newcommand{\hour}[1]{%
    \begin{tikzpicture}
    \draw (0,0) -- (6pt,0) -- (0,12pt) -- (6pt,12pt) -- (0,0);
    \end{tikzpicture}
}

\newcommand{\loz}[1]{%
    \begin{tikzpicture} 
    \draw (0,6pt) -- (3pt,12pt) -- (6pt,6pt);
    \draw (0,6pt) -- (6pt,6pt);
    \draw (0,6pt) -- (3pt,0) -- (6pt,6pt);
    \end{tikzpicture}
}

\begin{document}

This is an example of \hour. 

This is an example of \loz.

\end{document}

이러한 구체적인 정의는 다음과 같습니다.

tikz 명령 출력의 정의

답변2

\triangle또 다른 옵션은 with 의 두 복사본으로 빌드하는 것입니다 stackengine.

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

\documentclass{article}
\usepackage{graphicx}
\usepackage{stackengine}
\begin{document}


$
\stackanchor[-4.1pt]{$\triangle$}{\rotatebox[origin=c]{180}{$\triangle$}} 
\stackanchor[0pt]{\rotatebox[origin=c]{180}{$\triangle$}}{$\triangle$}
$

\end{document}

답변3

picture수학 스타일에 따라 확장되는 모드가 포함된 또 다른 버전입니다 . 취향에 따라 너비/높이를 수정하세요(너비가 0.33333em으로 설정된 상태로 표시됨).

\documentclass{article}
\usepackage{amsmath}
\usepackage{pict2e}

\makeatletter
\newcommand{\lozengeminus}{%
  \mathbin{% a binary operation symbol
  \mspace{1mu}% some sidebearing
  \mathpalette\vinc@lozengeminus\relax}% the symbol
  \mspace{1mu}% some sidebearing
}
\newcommand{\vinc@lozengeminus}[2]{%
  \begingroup
  \settowidth{\unitlength}{$\m@th#1\mspace{6mu}$}% 1/3 of an em
  \begin{picture}(1,1.732)
  \vinc@linethickness{#1}
  \roundcap\roundjoin
  \Line(0.5,0)(1,0.866)(0.5,1.732)(0,0.866)(0.5,0)
  \Line(0,0.866)(1,0.866)
  \end{picture}%
  \endgroup
}
\newcommand{\hourglass}{%
  \mathbin{% a binary operation symbol
  \mspace{1mu}% some sidebearing
  \mathpalette\vinc@hourglass\relax}% the symbol
  \mspace{1mu}% some sidebearing
}
\newcommand{\vinc@hourglass}[2]{%
  \begingroup
  \settowidth{\unitlength}{$\m@th#1\mspace{6mu}$}% 1/3 of an em
  \begin{picture}(1,1.732)
  \vinc@linethickness{#1}
  \roundcap\roundjoin
  \Line(0,0)(1,1.732)(0,1.732)(1,0)(0,0)
  \end{picture}%
  \endgroup
}
\newcommand{\vinc@linethickness}[1]{%
  \linethickness{%
      \ifx#1\displaystyle 0.8\fontdimen8\textfont3\else
      \ifx#1\textstyle 0.8\fontdimen8\textfont3\else
      \ifx#1\scriptstyle0.8\fontdimen8\scriptfont3\else
      1\fontdimen8\scriptscriptfont3\fi\fi\fi
  }%
}
\makeatother

\begin{document}

$x+a\lozengeminus b$
$\scriptstyle x+a\lozengeminus b$
$\scriptscriptstyle x+a\lozengeminus b$

$x+a\hourglass b$
$\scriptstyle x+a\hourglass b$
$\scriptscriptstyle x+a\hourglass b$

\end{document}

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

답변4

패키지는 원하는 것에 가까운 것을 oplotsymbl제공합니다 .\rhombuslineh

\documentclass{article}
\usepackage{stix}
\usepackage{oplotsymbl}

\begin{document}

$\hourglass \rhombuslineh$

\end{document}

관련 정보