Hot answers tagged

2 votes

simplest way to access element of list inside loop

don't use \number as a local variable, it's a tex primitve and you will get weird low level errors.
David Carlisle's user avatar
1 vote
Accepted

Get name and depth of new enumitem list

The name of the current list can be found with \@currenvir. The depth of an enumitem custom list is stored in the macro \enitdp@listname. So we can construct a macro to print the list name and ...
Alan Munn's user avatar
  • 217k
1 vote

`\item[0.]\label{fst}` then `\ref{fst}` gives `1.2` rather than `0`; how do I label an `enumerate` block item properly?

As you've discovered, if you [] an item, then you remove its numbering for reference. If you want the entire list to start at zero, then the simplest would be to adjust the counter so that's what it ...
Teepeemm's user avatar
  • 6,648
1 vote
Accepted

Shifting description by a user defined amount

Why using a one-item list? You can, with enumitem, but there's no reason to. \documentclass[a4paper,10pt]{article} \usepackage{geometry} \usepackage{enumitem} \NewDocumentEnvironment{Spar}{ O{0.3cm} ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Printing list item with a change in geometry

You would find this easier using enumitem, but basically this is a description list, if you copy more of the description setup you will keep the label within the margins. I added bold (copied from ...
David Carlisle's user avatar
1 vote
Accepted

Inserting a multi level list in latex where the highest level is named year (a numerical digit)

Maybe use enumerate for the years and itemize for the bullet points: \documentclass{article} \usepackage{enumitem} \setlist[enumerate]{label=Year~\arabic{*}} \begin{document} \begin{enumerate} \...
cabohah's user avatar
  • 10.8k

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