Skip to main content
15 votes

Upright letters in enumeration are not set justified

enumitem provides the align key, which you can set to left to have the enumeration left-aligned. However, this may require some adjustment of the other horizontal list measurements as well. The ...
Werner's user avatar
  • 607k
13 votes
Accepted

How to set circled enumerate with different colours connected with lines

I propose a solution based on tcolorbox; the enumerate environment is modified into lenumerate which takes two arguments: the color and the distance from the text left margin to the vertical segment ...
Daniel N's user avatar
  • 6,142
12 votes
Accepted

Upright letters in enumeration are not set justified

Using the enumitem package with the options wide=0pt, left=0pt, it solves the problem of the alignment. \documentclass[ngerman, fontsize=11pt, DIV=12, BCOR=10mm, parskip=half-, twoside]{scrbook} \...
Sebastiano's user avatar
  • 56.7k
12 votes
Accepted

TeX variables become local within list environments?

All assignments are local by default (there are a few special TeX registers were is an exception). It means that if a TeX group ends then the register returns to its previous value valid when the ...
wipet's user avatar
  • 75.7k
10 votes
Accepted

Big right brace in enumerate environment

You can measure the height of the top aligned (without the brace) and the height of the aligned with the brace. Then lower the latter so the reference point agrees with the former. \documentclass[...
egreg's user avatar
  • 1.1m
10 votes
Accepted

Expand key-values with \def of \newcommand?

You can define new keys: \documentclass{article} \usepackage{enumitem} \SetEnumitemKey{alph}{label=#1\alph*), ref=#1\alph*} \begin{document} \begin{enumerate}[alph=A] \item abc\label{test} \end{...
Ulrike Fischer's user avatar
10 votes

TeX variables become local within list environments?

As wipet explained, assignments to TeX count registers are local to the current group. All LaTeX environments create groups. This includes list environments, but you would see the same effect if you ...
cfr's user avatar
  • 208k
7 votes
Accepted

Add a space after itemize only if no text follows

Would this do? \documentclass{article} \usepackage{enumitem} \setlength{\parskip}{10ex} \setlength{\parindent}{0pt} \newenvironment{enumerateD}{\begin{enumerate}[topsep=-\parskip]} {\end{enumerate}\...
Willie Wong's user avatar
  • 25.7k
7 votes

How can I make this kind of list 1., 1.1, 1.1.1, ... and 1.2, 1.2.1, 1.2.1.1, ...?

This is similar to @Stephen's answer but picking up the current section number for the first level of your lists, and also changing the behaviour of enumerate instead of defining a new list. \...
Skillmon's user avatar
  • 61.6k
7 votes
Accepted

Why does the enumerate margin change when specifying item format?

enumerate is a very simple package but I think its behaviour here is more or less as expected. The standard code has some fixed margins specified for each level and these margins are large enough to ...
David Carlisle's user avatar
6 votes
Accepted

Changing indent level within one enumerate

One way to do this would be to use a nested list, and share the top level counter: \documentclass[11pt]{article} \usepackage{enumitem} \newlist{ilist}{enumerate}{2} \setlist*[ilist]{leftmargin=*} \...
Alan Munn's user avatar
  • 221k
6 votes

How can I make this kind of list 1., 1.1, 1.1.1, ... and 1.2, 1.2.1, 1.2.1.1, ...?

The enumitem package provides an interface called label*=<commands>. \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label*=\arabic*.] \item Maarakennuksen ...
Stephen's user avatar
  • 4,589
6 votes
Accepted

How to create an enumerate environment with Case 1, Case 2,

Just for example you can use this: \documentclass[12pt]{article} \usepackage{showframe} %%%% <------optional to show margins \usepackage{geometry} %%%% <------optional to have the right margins \...
Sebastiano's user avatar
  • 56.7k
5 votes
Accepted

Have the same symbol for the items of a list when nested in another list or enumeration

You can use \makeatletter \let\@enumdepth\@itemdepth \makeatother This makes the counters the same, so incrementing one also increments the other, rather than just setting one counter to the value ...
David Carlisle's user avatar
5 votes

How to number the enumerations in a proof environment?

In the following code, I assume that you want the normal enumeration outside of proof environments. It exactly does what you want and doesn't rely on the enumitem package (although it's the right ...
Gargantuar's user avatar
  • 1,241
5 votes

Building a Table by Enumerating Rows

An anternative using tabularray and functional packages. It is not very lightweight, but the programation is, imho, easier to follow. \documentclass{article} \usepackage{xcolor} \usepackage{tabularray}...
Mane32's user avatar
  • 2,319
5 votes

conditional enumerate labels

If it's fine to use an environment for the individual exercises, the following can be used (it'll detect if you use either \begin{enumerate} or \begin {enumerate} inside it): \documentclass{article} \...
Skillmon's user avatar
  • 61.6k
5 votes

conditional enumerate labels

You can use “properties” and properly named environments, rather than the generic enumerate. I define a new property that records the value of the counter subquestion at the end of an exercise ...
egreg's user avatar
  • 1.1m
4 votes
Accepted

How suppress new paragraph after item's description in enumerate-with-description?

I suggest an obscure solution. We measure the width of the \descitem parameter, then we leave the horizontal mode and return to the vertical mode. The first letter of the next text opens horizontal ...
wipet's user avatar
  • 75.7k
4 votes

Big right brace in enumerate environment

With tikzmark library of tikz package. For nice braces are employed decorations.pathreplacing and calligraphy too: \documentclass[fleqn, 12pt]{article} \usepackage{mathtools} \usepackage{tikz} \...
Zarko's user avatar
  • 300k
4 votes

Issue an error when item is used outside itemize or enumerate

Classically, theorems, verbatim, center, etc were all defined as single item lists so, as you note, \item does not give an error. That would be fixable but if you use the new (experimental) code for ...
David Carlisle's user avatar
4 votes

How to use enumerate environment for a equation

Employing the machinery of the multicols package seems like overkill for the material at hand. Here's a solution that employs side-by-side minipage environments, each containing a two-item enumerate ...
Mico's user avatar
  • 515k
4 votes
Accepted

How to obtain a letter in a cross reference / list counter with letters (alph)?

When using enumitem, don't redefine \labelenumi but use the user interface of the package, e.g., either: \documentclass[12pt]{exam} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{...
cabohah's user avatar
  • 14.1k
4 votes

How to have the enumerate label left aligned

One simple solution is to put the matrix inside a minipage: \documentclass[12pt,a4paper]{article} \usepackage{nicematrix} \begin{document} \begin{enumerate} \item \begin{minipage}{\linewidth} \...
Alan Munn's user avatar
  • 221k
4 votes
Accepted

Tikz use custom label in enumeration causes line spacing to be too large

Perhaps something like this. It tells the tikz nodes size to be ignored (overlay), then make space for it in the design of the list. \documentclass{article} \usepackage{tikz} \newcommand*\zzzz[1]{ ...
daleif's user avatar
  • 55.2k
4 votes
Accepted

Putting an enumerated list on an equation counter

The following ports the answer that campa pointed out to use the \newlist formulation defined by the enumitem package, and so will be compatible with its spacing commands, following OP's request. \...
Willie Wong's user avatar
  • 25.7k
4 votes
Accepted

How to number the enumerations in a proof environment?

I wouldn't use enumerate (directly) for the job. Maybe you find yourself in need to use a “real enumerate” in your proofs. \documentclass[reqno,11pt]{amsart} \usepackage{enumitem} \newtheorem{theorem}...
egreg's user avatar
  • 1.1m
4 votes

Building a Table by Enumerating Rows

With a very simple user level syntax (the code is admittedly not so simple): \documentclass{article} \ExplSyntaxOn \NewDocumentEnvironment{enumtabular}{ob} {% #1 = optional column specifications %...
egreg's user avatar
  • 1.1m
4 votes
Accepted

End-to-end numeration of exercises in book

Set your "end-to-end enumeration" as a series, which you can then resume at any time. \documentclass{article} \usepackage{enumitem} \begin{document} Global list % Set first enumeration ...
Werner's user avatar
  • 607k
3 votes

Big right brace in enumerate environment

Come out this idea as a workaround. Depends on your real useage, this method may not be working. There must be a better solution. Using tabular env to type the equations in different rows and using ...
Tom's user avatar
  • 7,733

Only top scored, non community-wiki answers of a minimum length are eligible