programming-journal / programming

21 stars 15 forks source link

Alignment of enumitem with custom labels #39

Closed orestisfl closed 4 years ago

orestisfl commented 4 years ago

When using a custom label with the enumerate environment the labels can spill outside the left margin.

MWE:

% -*- coding: utf-8; -*-
\documentclass[english,submission]{programming}

\usepackage[inline]{enumitem}
\usepackage{lipsum}

\title{MWE}
\author{MWE}
\begin{document}

\begin{abstract}
abstract
\end{abstract}

\lipsum
{%
\setlength\leftmargini  {2.5em}% Seems to be the original default
\begin{enumerate}[label=RQ\arabic*:, ref=RQ\arabic*]
\item With
\item modified
\item margin
\end{enumerate}%
}%
\begin{enumerate}[label=RQ\arabic*:, ref=RQ\arabic*]
\item With
\item programming's
\item margin
\end{enumerate}%
\lipsum

\end{document}

% Local Variables:
% TeX-engine: luatex
% End:

Screenshot: screenshot

PDF: Programming.pdf

krono commented 4 years ago

Please do not use the enumitem Package safe for exceptional circumstance. Formal review would flag that.

orestisfl commented 4 years ago

Ok, thanks!