
Eu uso várias enumerações em ambientes de teoremas. A fonte está em itálico, mas eu queria colocar os rótulos (para os quais uso letras) na vertical. Eu li que faço isso via \normalfont
e funciona. Mas vi que os rótulos não estão definidos de forma justificada. Aqui está uma foto:
Se olharmos mais de perto, podemos ver que (b) está definido alguns pixels mais à esquerda da borda esquerda:
Eu gostaria de ajustá-los e, de preferência, não codificados. Isso é possível?
Aqui está meu 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}
Responder1
Usando o enumitem
pacote com as opções wide=0pt, left=0pt
, resolve o problema do alinhamento.
\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}
Responder2
enumitem
fornece a align
chave, que você pode definir left
para que a enumeração seja alinhada à esquerda. No entanto, isso também pode exigir algum ajuste nas outras medidas da lista horizontal. O exemplo abaixo tenta replicar a saída para que fiquem semelhantes, o último apenas adicionando align=left
na mistura.
\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}
Você pode criar uma lista especificamente para isso adicionando
\newlist{theoremenum}{enumerate}{1}
\setlist[theoremenum]{%
label=\normalfont(\alph*),
align=left,
labelwidth=1em,
labelindent=0.8em,
labelsep=0.25em,
leftmargin=*
}
ao seu preâmbulo. Isso permite que você use
\begin{theoremenum}
\item ...
\item ...
...
\end{theoremenum}
sempre que você precisar desse tipo de enumeração/formatação.