열거형의 수직 문자가 정렬되지 않았습니다.

열거형의 수직 문자가 정렬되지 않았습니다.

나는 정리 환경에서 여러 열거형을 사용합니다. 글꼴은 이탤릭체이지만 레이블(문자를 사용함)을 똑바로 세우고 싶었습니다. 나는 이것을 통해 이것을 수행한다는 것을 읽었 \normalfont으며 작동합니다. 그러나 라벨이 정당하게 설정되지 않은 것을 보았습니다. 여기 사진이 있습니다: 여기에 이미지 설명을 입력하세요

자세히 살펴보면 (b)가 왼쪽 왼쪽 가장자리에 몇 픽셀 더 설정되어 있음을 알 수 있습니다. 여기에 이미지 설명을 입력하세요

나는 그것들을 조정하고 싶고 하드 코딩하지 않는 것이 좋습니다. 그게 가능합니까?

내 MWE는 다음과 같습니다.

\documentclass[ngerman, fontsize=11pt, DIV=12 ,BCOR = 10mm, parskip=half-, twoside]{scrbook}

\usepackage{enumitem}
\usepackage{amsthm}

\newtheoremstyle{style:lemma}
{3pt}% Space above
{3pt}% Space below
{\itshape}% Body fonti
{}% Indent amount
{\bfseries}% Theorem head font
{.}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning ‘normal’)

\theoremstyle{style:lemma}
    \newtheorem{lemma}[]{Lemma}

\begin{document}
    \begin{lemma}
        There are several points to show. These are

    \begin{enumerate}[label = \normalfont(\alph*)]
        \item $a = b+1$
        \item $\sqrt{n} = 2$
        \item and the third.
    \end{enumerate}
\end{lemma}
\end{document}

답변1

enumitem옵션과 함께 패키지를 사용하면 wide=0pt, left=0pt정렬 문제가 해결됩니다.

\documentclass[ngerman, fontsize=11pt, DIV=12, BCOR=10mm, parskip=half-, twoside]{scrbook}

\usepackage{enumitem}
\usepackage{amsthm}

\newtheoremstyle{style:lemma}
{3pt}% Space above
{3pt}% Space below
{\itshape}% Body font
{}% Indent amount
{\bfseries}% Theorem head font
{.}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning ‘normal’)

\theoremstyle{style:lemma}
\newtheorem{lemma}[]{Lemma}

\begin{document}
    \begin{lemma}
        There are several points to show. These are

        \begin{enumerate}[label=\normalfont(\alph*), wide=0pt, left=0pt]
            \item $a = b+1$
            \item $\sqrt{n} = 2$
            \item and the third.
        \end{enumerate}
    \end{lemma}
\end{document}

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

답변2

enumitem열거형을 왼쪽 정렬하도록 align설정할 수 있는 키를 제공합니다 . left그러나 이를 위해서는 다른 수평 목록 측정값도 일부 조정해야 할 수 있습니다. 아래 예는 출력을 복제하여 유사하게 만들려고 시도하며 후자는 단지 align=left혼합에 추가됩니다.

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

\documentclass{article}

\usepackage{enumitem}
\usepackage{amsthm}

\newtheorem{lemma}{Lemma}

\begin{document}

\begin{lemma}
There are several points to show. These are
\begin{enumerate}[label=\normalfont(\alph*)]
  \item $a = b + 1$
  \item $\sqrt{n} = 2$
  \item and the third.
\end{enumerate}
\end{lemma}

\begin{lemma}
There are several points to show. These are
\begin{enumerate}[label=\normalfont(\alph*),align=left,labelwidth=1em,labelindent=0.8em,labelsep=0.25em,leftmargin=*]
  \item $a = b + 1$
  \item $\sqrt{n} = 2$
  \item and the third.
\end{enumerate}
\end{lemma}

\end{document}

다음을 추가하여 특별히 목록을 만들 수 있습니다.

\newlist{theoremenum}{enumerate}{1}
\setlist[theoremenum]{%
  label=\normalfont(\alph*),
  align=left,
  labelwidth=1em,
  labelindent=0.8em,
  labelsep=0.25em,
  leftmargin=*
}

당신의 전문에. 이를 통해 다음을 사용할 수 있습니다.

\begin{theoremenum}
  \item ...
  \item ...
  ...
\end{theoremenum}

그런 종류의 열거/형식 지정이 필요한 곳이면 어디든 가능합니다.

관련 정보