8
votes
2answers
110 views

Shared counter between enumerate and equations

I'm currently writing some math stuff in LaTeX and I've encountered the following problem: I'd like to have "shared" counters in equations and specific lists, s.t. for example \begin{equation} a ...
4
votes
1answer
148 views

How to incorporate counter in list label [duplicate]

I want to label my enumeration like SOMETEXT01, SOMETEXT02, ..., SOMETEXT10, etc. I read through a couple of questions and know how to create a counter that adds in leading zeros. ...
1
vote
0answers
25 views

enumitem-shortlabels: How to change the counter of items? [duplicate]

I use the enumitem package with shortlabels. \usepackage[shortlabels]{enumitem} Now I've got \begin{enumerate}[(L 1)] \item blablabla \item blablabla \end{enumerate} and it goes like ...
7
votes
4answers
188 views

How to refer to number of items in a list before the list appears in the .tex file?

I would like LaTeX to "know" how many items there are in a certain list. I want this number to be stored in a variable. In such a way I hope that this variable is sampled during the first compilation ...
5
votes
2answers
330 views

Splitting examples in gb4e

I would like to split examples in the \usepackage{gb4e} to get explanatory remarks as close to the explained item as possible. Usually, my typeset examples are looking like this: (1) blabla (2) a. ...
21
votes
4answers
750 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 ...
8
votes
1answer
2k views

How to typeset the formatted counter in compactenum (paralist)?

I am using the compactenum environment from the paralist package, and would like to know how I can typeset the counter. What I mean is \begin{compactenum}[a)] \item I would like to typeset "a)" ...
2
votes
2answers
355 views

Problems with counters and frame splitting commands and environments in beamer

Using the package gb4e for linguists in the beamer environment in combination with frame splitting commands \pause or environments overprint, I face the following problem: The number are "jumping" ...
9
votes
2answers
849 views

Combine two items in an enumerated list

Is there an easy way to combine two items in an enumerated list? For example: 1. First bullet 2-3. Second bullet 4. Third bullet My current plan involves screwing with \labelenumi and then ...
2
votes
1answer
287 views

Changing \@itemdepth value to control indentation

I would like to be able to control the nesting level of an item (so that I can align the text with text that is at a deeper level of nesting.) I have been able to read the value of \@itemdepth ...
12
votes
1answer
907 views

Infinite-depth list

I want to create a command set that allows me to do something like \nestedlist{ \listitem An item \sublist{ \listitem A sub item \listitem Another sub item } } and get An item 1.1 A ...