Questions tagged [enumitem]
{enumitem} is a package that provides user control over the layout of the three basic list environments: {itemize}, {enumerate}, and {description}.
1,285 questions
6
votes
1
answer
122
views
Centering a displayed equation in an enumerate environment
I am using a template which somehow changes the spacing of a displaystyle equation inside an enumerate environment, so it is centered with respect to the full page, instead of the text in the ...
0
votes
1
answer
30
views
Align itemize items with the first item, in a theorem
I have an itemize environment inside of a theorem. The first item begins after the theorem's label, and the ones below it begin at the paragraph's left boundary.
How can I align the items start points,...
4
votes
1
answer
72
views
When to use the `AddEnumerateCounter` in enumitem?
I want a custom itemize style of counter as below:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,patterns}
\definecolor{sintefblue}{RGB}{38, 113, 142}
\usepackage{enumitem}
\...
3
votes
1
answer
61
views
Custom labels with enumitem and hyperref
I'm creating enumerate lists with the enumitem package.
Sometimes, I want a single item with a custom label. The basic functionality is provided by \item[customlablename], but it has shortcomings. A ...
3
votes
2
answers
106
views
Custom list using enumitem leads to incorrect referencing
Problem
After my waltzing around in enumitem land, I've run into another issue: referencing items from my custom list.
If I write a few items in my custom list, and I reference them (using the usual \...
1
vote
0
answers
51
views
pdflatex says package says "File enumitem.sty not found." despite the file being present in TeX Live Utility
I was working on a document with the enumitem package, and I recieved the following error when building my document.tex file via the command pdflatex document.tex
! LaTeX Error: File `enumitem.sty' ...
1
vote
1
answer
42
views
Formatting of custom list using enumitem messing up argument check
Problem
I want to create a custom list that works like an enumerate list, except that if the optional argument is supplied (i.e., \item[...]), I want the optional argument to be appended to the label ...
1
vote
3
answers
43
views
Inserting a specific content after all items in enumerate
The text above is as desired, but I want the rule to be inserted after all items automatically
My MWE
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\...
1
vote
1
answer
45
views
Enumitem: Align several paragraphs of a same item
Consider the following description list:
\begin{description}
\item[Some term]
A first line of definition.
A second paragraph of definition.
\item[Some other term]
A first line of ...
0
votes
0
answers
45
views
LaTeX Error: Counter too large [duplicate]
I'm getting a LaTeX Error: "Counter too large" when trying to write a list that surpass the letter z. I'm using the package enumitem and alphalph. I've tried a various number of alternatives ...
2
votes
1
answer
30
views
Make caption's left-justified margin relative to itemize item's leftmargin?
Given the minimal example below, the Listing 1 is correct in that it's left-justified and lines up with the indented listing.
However, when a listing is inside an itemize item, even though the listing ...
0
votes
1
answer
37
views
Missing number, treated as zero for \setcounter
So I was writing something, but got the error "Missing number, treated as zero". However, the command was inserted correctly, so I don't know what I'm doing wrong.
\begin{enumerate}
\...
4
votes
2
answers
195
views
How to make the colon same align
From this code.
\begin{enumerate}[align=left,label=(\arabic*) :]
\item x
\item x
\item x
\item x
\item x
\item x
\item x
\item x
\item x
\item x
\item x
\...
0
votes
0
answers
64
views
Add an asterisk left of an enumerate code review to expl3
In @egreg solution to Compilation problems with custom enumeration, he provides the following definitions:
\documentclass{article}
\usepackage{enumitem,color}
\setlist[enumerate]{before=\...
3
votes
1
answer
116
views
Environment for enumerate environment
Consider the following MWE:
\documentclass[letterpaper,twoside]{article}
\usepackage{xcolor}
\makeatletter
\reversemarginpar
\@mparswitchfalse%
\makeatother
\newcommand{\itemans}[1]{{\color{red}\item #...
0
votes
0
answers
38
views
preventing items in an enumerate environment from being split across pages while also ensuring adequate spacing in latex?
i’m working on worksheets for my physics class in latex, and i'm using the enumerate environment to list problems for students. after each problem, i need to provide enough space (e.g., 2 inches) for ...
2
votes
1
answer
62
views
On Footnotes Originating within an Mdframed Environment
Consider the code:
\documentclass[12pt]{book}
\usepackage[utf8]{inputenc}
\textheight=3.75in
\let\thempfootnote\thefootnote % To get numerical footnotemark inside the box environment.
\usepackage{...
2
votes
1
answer
55
views
Trying to resume a different type of list when I've defined different enumerate lists
I've defined two new different lists, but I want to be able to resume the numeration of one in the other, the lists I've defined are:
\usepackage{enumitem}
\newlist{cuestion}{enumerate}{1}
\setlist[...
3
votes
2
answers
132
views
Keeping Enumitem Item Number within the Shadowbox
Consider the code:
\documentclass[12pt]{book}
\usepackage[margin=0.5in,paperwidth=5.5in,paperheight=8.25in]{geometry}
\usepackage{enumitem,lipsum}
\usepackage{fancybox}
\usepackage{varwidth}
\begin{...
4
votes
1
answer
49
views
More vertical space after description and enumitem?
With the following example, I would like to slightly increase the vertical spacing between the description item and the text. I did not find such option in the documentation. Is there a way?
\...
2
votes
1
answer
69
views
Text in item doesn't align properly after math mode in enumitem
while making a numbered list (I'm using the enumitem package), I noticed how my code doesn't let text be properly indented after returning from math mode. Normally, text would be properly aligned in ...
2
votes
2
answers
208
views
On Putting Parentheses Around Item Numbers with Enumitem
Consider the code (which makes use of the enumerate package):
\documentclass[12pt]{book}
\usepackage{enumerate}
%\usepackage{enumitem}
\begin{document}
\thispagestyle{empty}
\begin{enumerate}[ {(}1{)}...
2
votes
1
answer
111
views
Color an item in an enumerated list (continued; not a duplicate)
I'd like to color some (but not all) item numbers in an enumerate environment (package enumitem). I followed
an approach mentioned here, but it fails if only the item number is to be colored:
\...
2
votes
2
answers
118
views
Enumitem + color labels + multiline = bug?
In enumitem, suppose that I do style=multiline and use custom labels and then set font to be some color specification. Then the custom labels appear below the baseline. As you see, it does not happen ...
1
vote
1
answer
66
views
Indentation and text wrapping in lists
I intend to create lists where the list index is indented, but the text is flush with left and right margins, and further text wraps around the list index. Currently, this is what happens using ...
0
votes
0
answers
12
views
How to Ensure Period Appears in LaTeX List but Not in References, While Keeping Hyperref on the Entire Label? [duplicate]
I have created custom enumerated lists in LaTeX using the enumitem package, and I want the period to appear in the list but not in the references when using \ref or \cref. Additionally, I want the ...
0
votes
2
answers
43
views
Even horizontal spacing in enumitem inline lists
I would like to have an equally (horizontally-)spaced inline list, like
(1) 0.4 (some spaces) (2) 12.372 (some spaces),
so that each [item and its spaces] will take account of the same ...
0
votes
0
answers
49
views
Latex-- how does one unbold a cross reference? [duplicate]
I don't know why this question has been closed without a satisfactory response. The referenced ''already answered' post does not address my issue. I have no problem getting a reference in bold. My ...
5
votes
2
answers
242
views
Problem with enumeration in Texlive 2023
In older versions of Texlive the following code
\documentclass[12pt,a4paper, twoside, openany]{memoir}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{...
0
votes
1
answer
23
views
Using hyperref creates compile error with custom subcounters
Minimal Working Example
Consider the following code:
\documentclass{article}
% \usepackage{hyperref} % Uncomment causes compile error
\usepackage{cleveref}
\usepackage{enumitem}
\newlist{main}{...
2
votes
3
answers
76
views
Creating worksheets with answers at the end
Several years ago, I asked two questions trying to generate an automated way to make student worksheets with answer keys (Writing enumitem's to a file and
How do I reference the current enumerant ...
0
votes
2
answers
53
views
How to configure enumitem such that lists look like indented paragraphs?
How can I configure enumitem such that lists look like this:
Preceeding text.
(1) First item consisting of some text consisting of
at least two lines.
(2) Second item indented.
Further text....
4
votes
2
answers
247
views
Align enumerate label with left margin
This should be a simple one, hopefully.
I like to align the label of the items in my enumerate environment with the left margin. I can do this with the option [labelsep = *] from the enumitem package. ...
0
votes
0
answers
43
views
Nested enumeration levels (enumitem package) : localisation i.e. where am I?
I have nested enumerate levels. I wish to know "where I am". I mean, in part II.1. or in I.3.a) etc.
I tried to explore the information I can get with '**\labelenumi-\labelenumii-\...
0
votes
0
answers
111
views
Issues with rubric and enumitem in CV template using curve
I was working on the following CV template and learnt a bit about the \documentclass{curve} and how it is used for CV writing in LaTex.
Specifically, among the various sections of that template the ...
0
votes
1
answer
39
views
Adjust margins and spacing of enumerate environment with the enumitem package
I have an ordered list of items that I want to behave exactly like sections.
\documentclass[letterpaper]{article}
\usepackage[sfdefault]{roboto}
\usepackage{enumitem}
\usepackage[utf8]{inputenc}
\...
1
vote
0
answers
33
views
Adjust enumitem labelwidth dynamically to match widest label [duplicate]
I'm trying to typeset a set of ingredient lists using enumitem where I have ingredient amounts as labels and ingredients as the items. I would like each list to have labelindent=10pt and a labelsep=...
1
vote
0
answers
46
views
Descriptions in a description
I am trying to write a format like this
\documentclass{article}
\usepackage{enumitem}
\usepackage{enumerate}
\setlist[description]{
style=nextline,
}
\begin{document}
\begin{description}
\...
0
votes
1
answer
18
views
questionnaire with no page break between question and answer's first 2~3 lines
here is a question - answer like document where at the end of the first page there is a page break right after a question.
I want that page breaking is not allowed between the question and the ...
2
votes
1
answer
135
views
How to make Cyrillic alphabet numbering in enumerate with enumitem and polyglossia
I found that there is \asbuk provided by polyglossia, but it doesn't work. This is my mwe:
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage[babelshorthands, ...
0
votes
1
answer
76
views
How can I fully justify spaces inside enumitem description labels?
I will start with a picture that says more than a thousand words:
\documentclass{article}
\usepackage{enumitem}
\usepackage{blindtext}
\begin{document}
What I currently see is this:
\begin{...
4
votes
2
answers
301
views
TeX capacity exceeded, sorry [grouping levels=255] while using enumerate
I do not know why I got this error while using the enumerate environment. The error does not show up if I use the itemize environment.
Please help.
\documentclass[aspectratio=169]{beamer}
\mode<...
6
votes
1
answer
66
views
Extra indentation added in enumitem after item 10
I am creating a legal document with numbered clauses. To get this I am using an enumitem. I have the desired format and indentation I want, but when the number of items reaches 10 or higher, extra ...
2
votes
1
answer
40
views
Numbered paragraphs with same text indetation on differrent levels (for legal clauses)
I'm trying to create a legal document with clauses and sub-clauses essentially I want it to look like this:
I have tried to get this effect using enumitem like so:
\documentclass[10pt,a4paper]{...
4
votes
2
answers
181
views
Anonymous macro with #1 argument specifier
\def\foo#1{a#1b}
creates \foo that expects for a mandatory argument when used.
I'm trying to create so called "anonymous" or "lambda" macro that is essentially a token list with a ...
2
votes
2
answers
47
views
Indentation problem inside the description environment
I have the following simple code
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{enumitem}
\begin{document}
\begin{...
0
votes
1
answer
66
views
Automatically listing answer choices: either all in one line, or each answer choice in one line
I began typing my pdf file using overleaf. The material I have consists of Math MCQs. I faced many problem and decided not to continue typing before I fix these things first.
However, as commented in ...
3
votes
0
answers
58
views
Warning caused by itemindent from enumitem
Consider the following MWE:
\DocumentMetadata{}
\documentclass{report}
\usepackage{enumitem}
\usepackage{hyperref}
\begin{document}
\begin{Form}
\begin{enumerate}[
label = \CheckBox{},
...
5
votes
1
answer
74
views
Why does the enumerate margin change when specifying item format?
In a nested enumerate environment, I want to specify the format of the items using the [a)] syntax. I noted that the indentation of the left margin changes when explicitly specifying the item format.
\...
5
votes
4
answers
713
views
How can I make this kind of list 1., 1.1, 1.1.1, ... and 1.2, 1.2.1, 1.2.1.1, ...?
Code
\documentclass[draft,a4paper,12pt,finnish]{article}
\usepackage{babel}
\usepackage[showframe]{geometry}
\usepackage[backend=bibtex]{biblatex} % before hyperref
\usepackage[obeyspaces,spaces]{...