
Utilizo varias enumeraciones en entornos de teoremas. La fuente está en cursiva, pero quería colocar las etiquetas (para las cuales uso letras) en posición vertical. Leí que hago esto vía \normalfont
y funciona. Pero vi que las etiquetas no están justificadas. Aquí hay una foto:
Si miramos más de cerca, podemos ver que (b) está configurado algunos píxeles más hacia el borde izquierdo:
Me gustaría ajustarlos y, preferiblemente, no codificados. ¿Es eso posible?
Aquí está mi 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}
Respuesta1
Usando el enumitem
paquete con las opciones wide=0pt, left=0pt
, resuelve el problema de la alineación.
\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}
Respuesta2
enumitem
proporciona la align
clave, que puede configurar left
para que la enumeración esté alineada a la izquierda. Sin embargo, esto también puede requerir algún ajuste de las otras medidas de la lista horizontal. El siguiente ejemplo intenta replicar el resultado para que sean similares; el último simplemente agrega align=left
la mezcla.
\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}
Puede crear una lista específicamente para esto agregando
\newlist{theoremenum}{enumerate}{1}
\setlist[theoremenum]{%
label=\normalfont(\alph*),
align=left,
labelwidth=1em,
labelindent=0.8em,
labelsep=0.25em,
leftmargin=*
}
a su preámbulo. Esto le permite utilizar
\begin{theoremenum}
\item ...
\item ...
...
\end{theoremenum}
dondequiera que necesite ese tipo de enumeración/formato.