Linked Questions

39 votes
6 answers
9k views

Count and use the number of items in advance

When writing LaTeX code, I often successively make changes like adding or removing items. I'd like to have TeX count and update the number of items in the list automatically, as in There are \...
srs's user avatar
  • 750
12 votes
2 answers
6k views

enumeration label out of margin

I am wring this enumerated list as part of my document. I created labels as Step-I Step-II Step-III However they went out of margin on left side which looks ugly. I have attached the rough picture ...
Kumarm's user avatar
  • 962
15 votes
2 answers
3k views

Get number of elements in enumerate

Suppose, I have the following code: \documentclass{article} \begin{document} We have totally 7 columns, describing the user: \begin{enumerate} \item ID --- users.name \item Forename --- users\...
user4035's user avatar
  • 5,119
7 votes
3 answers
330 views

Undesirable alignment in series of 'enumerates'

(I'll preface this question by saying that there seem to be quite a few question on tex.se with keywords 'align' and 'enumerate', but it seems as if they all deal with questions regarding alignment ...
JSeaton's user avatar
  • 1,091
7 votes
2 answers
173 views

Can I include the last index inside the label of an enumeration?

Can I achieve something like this with automatic numbering? Examples: 1 of 93: Example one 2 of 93: Example two ... 92 of 93: Example ninety-two 93 of 93: Example ninety-three I can change ...
masu's user avatar
  • 6,621
5 votes
1 answer
2k views

How to make enumerate indent like description

I'm trying to typeset a numbered list in which I'm overriding the default enumerate behaviour using enumitem so that there's text in addition to a number. I'd like the text to be flush with the left ...
rainbowgoblin's user avatar
3 votes
2 answers
4k views

Indentation in enumerate/list

I'm trying to get rid of indentation in enumerate. The code below shows the indentation with enumerate, and then the only partial fix I could implement. With enumitem package I could avoid indentation ...
Ararat's user avatar
  • 534
2 votes
2 answers
208 views

Enumerate environment aligning incorrectly (all flushed left)

I have generated a minimal working example of an issue I'm having. I'm simple writing in an article document type, and for some reason the enumerate environment is flushing left. I would like it to be ...
Arturo don Juan's user avatar
3 votes
1 answer
873 views

Enumerate numbering is out of page

I have nested enumerations in my article. The numbering of enumeration is modified. \renewcommand{\labelenumi}{\bfseries\thesubsection.\arabic{enumi}} \renewcommand{\labelenumii}{\bfseries\...
user14416's user avatar
  • 848
0 votes
1 answer
237 views

Automatically adjust left margins for `enumerate` with custom labels

I want to declare a list with enumerate using the enumitem package, in which some of the items may have custom labels. However, the problem is that if a label is very long (i.e. longer than \...
varkor's user avatar
  • 618
1 vote
1 answer
55 views

fontspec's \addfontfeatures messes with calc's \widthof

In addition to Werner's answer, I would also like my list labels to use tabular numbers. I would have thought that the first approach below would work, but the list labels are slightly in the left ...
Fredrik P's user avatar
  • 1,428
1 vote
1 answer
75 views

Getting the Maximum Width of a List of Items

I'm trying to write a command to get the maximum width of a (comma separated) list of items, for example \myLengthCommand{lorem,ipsum,lorem ipsum} should return the width of the text "lorem ipsum&...
Dave's user avatar
  • 327