수학 모드에서 하이픈 기호가 없는 하이픈 넣기

수학 모드에서 하이픈 기호가 없는 하이픈 넣기

하이픈 기호 "-"가 나타나지 않고 수학 모드에서 수식을 분리할 수 있기를 바랍니다. 수학 모드 없이 ""와 함께 작동한다는 것을 알고 있습니다.

다음 공식을 사용하세요.

$Algorithms = (Generate, Add, Delete, Setup, Calculate)$

하이픈을 사용하면 문제가 되지 않습니다.

$Algorithms\- = (Generate,\- Add,\- Delete,\- Setup,\- Calculate)$

그러나 이것은 작동하지 않습니다:

$Algorithms"" = (Generate,"" Add,"" Delete,"" Setup,"" Calculate)$

대신 ""가 표시됩니다.

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

도움을 주셔서 감사합니다 !!

답변1

\mathrm단어를 감싸 거나 유사한 명령을 사용하지 않고 수학 모드에서 단어를 사용하면 안 됩니다 .

쉼표 뒤에 줄바꿈을 허용하려면 다음을 사용하세요.

,\linebreak[0]

그건 그렇고, ""는 다른 언어의 약어 babel-german이지만 그 목적은 귀하가 주장하는 것과 다르며 귀하가 발견했듯이 수학 모드에서는 작동하지 않습니다.

어쨌든 이렇게 긴 수식은 디스플레이에 표시하는 것이 더 좋습니다.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

Some words to see what happens
$\mathrm{Algorithms} = (\mathrm{Generate}, \mathrm{Add},
  \mathrm{Delete},\linebreak[0] \mathrm{Setup},\linebreak[0] \mathrm{Calculate})$ and other words
$\mathrm{Algorithms} = (\mathrm{Generate}, \mathrm{Add},
  \mathrm{Delete}, \mathrm{Setup},\linebreak[0] \mathrm{Calculate})$ and other words

But it's better in a display
\[
\mathrm{Algorithms} = (\mathrm{Generate}, \mathrm{Add},
  \mathrm{Delete}, \mathrm{Setup}, \mathrm{Calculate})
\]
so no splitting problem appears.

\end{document}

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

관련 정보