列挙中の縦書き文字は両端揃えになっていません

列挙中の縦書き文字は両端揃えになっていません

私は定理環境でいくつかの列挙を使用しています。フォントはイタリックですが、ラベル (文字を使用) を垂直に設定したいと考えていました。私はこれを実行すると読みましたが\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}

そのような列挙/フォーマットが必要な場所ならどこでも。

関連情報