높고 낮은 대시가 있는 정수 기호

높고 낮은 대시가 있는 정수 기호

Latex에서 다음 통합 기호를 어떻게 만드나요?

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

나는 적분과 극한을 만드는 방법을 알고 있습니다. 선을 따라 만드는 방법을 모르겠습니다.

답변1

항목의 코드 사용주요 값 적분 기호(매크로를 정의하는 \dashint)TeX FAQ시작점으로 두 개의 새로운 매크로를 정의하는 것은 상당히 간단합니다. \lowdashint\highdashint매크로는 "대시" 기호(실제로는 "마이너스" 기호)를 실제보다 각각 약간 더 낮고 약간 더 높게 배치합니다 \dashint.

아래 코드에서 매크로 \lowdashint\highdashint는 표시 스타일 및 텍스트 스타일 수학 모드에 대해서만 설정됩니다. (두 번째 수준은 물론이고 아래 첨자와 위 첨자 등 첫 번째 수준의 표현에서도 이러한 현상이 발생할 것이라고는 상상할 수 없습니다. 그러나 이 가정이 잘못된 경우 알려주시기 바랍니다.)

물론 스타일 선호도에 맞게 대시의 수직 위치( \lower및 명령의 인수 참조)를 자유롭게 변경해야 합니다.\raise

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

\documentclass{article}
\usepackage{booktabs,amsmath}
\def\Xint#1{\mathchoice
    {\XXint\displaystyle\textstyle{#1}}%
    {\XXint\textstyle\scriptstyle{#1}}%
    {\XXint\scriptstyle\scriptscriptstyle{#1}}%
    {\XXint\scriptscriptstyle\scriptscriptstyle{#1}}%
      \!\int}
\def\XXint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
    \vcenter{\hbox{$#2#3$}}\kern-.5\wd0}}
\def\dashint{\Xint-}

\def\Yint#1{\mathchoice
    {\YYint\displaystyle\textstyle{#1}}%
    {\YYYint\textstyle\scriptscriptstyle{#1}}%
    {}{}%
    \!\int}
\def\YYint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
    \lower1ex\hbox{$#2#3$}\kern-.46\wd0}}
\def\YYYint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
    \lower0.35ex\hbox{$#2#3$}\kern-.48\wd0}}
\def\lowdashint{\Yint-}

\def\Zint#1{\mathchoice
    {\ZZint\displaystyle\textstyle{#1}}%
    {\ZZZint\textstyle\scriptscriptstyle{#1}}%
    {}{}%
    \!\int}
\def\ZZint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
    \raise1.15ex\hbox{$#2#3$}\kern-.57\wd0}}
\def\ZZZint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
    \raise0.85ex\hbox{$#2#3$}\kern-.53\wd0}}
\def\highdashint{\Zint-}

\begin{document}
$\begin{array}{@{}lccc@{}}
\toprule
\text{Math mode} & \multicolumn{3}{c@{}}{\text{Integral symbol}}\\
\cmidrule(l){2-4}
& \texttt{\string\lowdashint} 
& \texttt{\string\highdashint}
& \texttt{\string\dashint} \\
\midrule
\texttt{\string\displaystyle} 
& \displaystyle \lowdashint_M f
& \displaystyle \highdashint_M f
& \displaystyle \dashint_M f \\[4ex]
\texttt{\string\textstyle} 
& \lowdashint_M f
& \highdashint_M f
& \dashint_M f \\
\bottomrule
\end{array}$
\end{document}

답변2

수학 문자를 통해 막대를 배치하는 한 가지 방법은 다음을 사용하는 것입니다. \ooalign.아래에 정의한 두 명령에서 첫 번째 숫자는 적분 기호에서 막대의 높이를 제어하고, 두 번째 숫자는 막대의 길이를 제어하고, 세 번째 숫자는 두께를 제어합니다. 바의.

\documentclass{article}

\newcommand{\stI}{%
\ooalign{\hidewidth $\int$\hidewidth\cr\rule[1.1ex]
{1ex}{.4pt}}}

\newcommand{\stII}{%
\ooalign{\hidewidth $\int$\hidewidth\cr\rule[-0.1ex]
{1ex}{.4pt}}}

\begin{document}
\[\stI_m f\]
\[\stII_m f(x)\]
\end{document}

멋지게 보이도록 하려면 다음 답변을 읽어보세요.큰 적분 기호

관련 정보