I would like to produce a text with label
s in the left margin, like a reference list. Labels may have different lengths. One way to do this is to define a negative \parindent
, as follows:
\parindent-12mm
\makebox[12mm][l]{A} text text text text text text text text text text text text text text text texttexttexttext \par
\makebox[12mm][l]{ABC} text text text text text text text text text text text text text text texttexttexttext
The purpose of the box is to make the text begin at the left edge of the text column. However, in this way the left edge of the text column won’t be straight, because Tex expands or shrinks spaces evenly along the entire line, including the box. Therefore (instead of the box) I would need, after the label, a command that moves to the left edge of the text column in the same way as a tab command. Is there such a command?
Best Answer
This is easy with the
enumitem
package. Just defineand use it like
MWE
Output
Another solution is to define
In this way the result will be