Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
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.4k
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
  • 201k
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
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
  • 61k
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,084
3 votes
Accepted

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

You may achieve the desired indentation by using the left=0pt option while running the various \setlist instructions. \documentclass[draft,a4paper,12pt,finnish]{article} \usepackage{babel} \...
Mico's user avatar
  • 510k
2 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, ...?

A solution with paralist. Note that this is limited to four item levels (but it have little sense to have more when items are indented with long labels): \documentclass[draft,a4paper,12pt,finnish]{...
Fran's user avatar
  • 81.5k
2 votes
Accepted

Skipping the previous number of the main list in the sublist

You could use enumitem's before key to step the mainlist counter when starting a sublist. I guess also that an extra indentation in a sublist doesn't really make sense, so I removed it in the ...
Vincent's user avatar
  • 20.2k
2 votes

Longtable with long enumerated list spanning multiple pages

Table cells can not break over a page, such layouts need to be set as lists. Using enumitem keys you can adjust the styling, increasing the margin of the nested list so that it is a more tabular style ...
David Carlisle's user avatar
2 votes
Accepted

Remove the indentation for one line or paragraph within enumeration environment

As I see it, the visual/aesthetic problem is caused by the left-hand table being quite a bit wider than 0.5\linewidth. Once you assign more appropriate relative widths to the minipage environments -- ...
Mico's user avatar
  • 510k
2 votes
Accepted

Cases inside a corollary

Add \mbox{} before enumerate. \documentclass[a4paper]{article} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \newtheorem{...
egreg's user avatar
  • 1.1m
1 vote

Remove the indentation for one line or paragraph within enumeration environment

Idea stolen from exam class. \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage[margin=1in,footskip=0.25in]{geometry} \usepackage{amsmath} \usepackage{amssymb} \...
John Kormylo's user avatar
  • 80.4k

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