# Tag Info

## New answers tagged enumitem

2

I've solved it programatically by following Dan's suggestion of having the description set a macro \indesc indicating it's active, and having the itemize apply the fix if it's true. The itemize then resets \indesc globally to prevent the fix from being applied to subsequent lists within the description. The only caveat I can see is if the description text ...

6

Here is a solution to your problem, I think. This is quite an awful looking format. The tricky part is getting the indent of the first item of an embedded second level list. This bit of hackery (appropriately called \trickindent) is due to egreg. \documentclass{article} \usepackage{enumitem} \usepackage{kantlipsum} ...

5

No better ideas at the moment... You can add \setlist[itemize]{before=\vspace*{-1.5\baselineskip}} in the preamble. Beware that this will affect all itemize environments... Complete code: \documentclass{article} \usepackage{enumitem} \setlist[description]{style=nextline} \setlist[itemize]{before=\vspace*{-1.5\baselineskip}} \begin{document} ...

3

This will work only for short labels. \documentclass{article} \usepackage{enumitem,showframe} \SetLabelAlign{parright}{\parbox{\labelwidth}{\makebox[0pt][r]{#1\hspace{1em}}}} \newlist{mydescription}{description}{1} \setlist[mydescription,1]{style=multiline,topsep=10pt,leftmargin=*,labelsep=0pt,font=\color{blue}\normalfont,% align=parright} ...

5

You forgot itemindent=!. Add this option to your \setlist and you will achieve what you want. MWE \documentclass[twoside]{book} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \usepackage{enumitem} \setlist{ parsep=0pt, leftmargin=0cm, itemindent=!, labelindent=\parindent, listparindent=\parindent, ...

0

It appears the solution will be the following: \documentclass{article} \usepackage{enumitem} \newenvironment{enumSpecial}{% \begin{enumerate}[noitemsep, nolistsep, leftmargin=*] } {% \end{enumerate} } \begin{document} \begin{enumSpecial} \item \dots \item \dots \end{enumSpecial} \end{document} Make a new environment is, as #egreg points out, the way ...

1

With longtabu and a variation on Harish's answer, you obtain: EDIT: edited to show compatibility with \pagebreak \documentclass{article} \usepackage[showframe]{geometry} \usepackage{array} \usepackage{tabu, longtable} \newcolumntype{D}[1]{>{\bfseries\raggedright\hangindent1.5em\arraybackslash}p{#1}} ...

4

In the file enumitem.sty one def goes like this: \def\enit@align@parleft{% \def\enit@align##1{% \nobreak \strut\smash{\parbox[t]\labelwidth{\raggedright##1}}}} In your preamble you can try removing the \smash and put the \strut inside the \parbox. The \hangindent may satisfy your requirements, but you may want some variable length. ...

3

You can use a tabular and define new columns to simplify your job. \newcolumntype{D}[1]{>{\bfseries\raggedright\hangindent1.5em\arraybackslash}p{#1}} \newcolumntype{E}[1]{>{\raggedright\hangindent1.5em\arraybackslash}p{#1}} Full code: \documentclass{article} \usepackage{array} ...

2

\Romanbar wants to see an explicit decimal number in its argument, not a counter's name. \documentclass{article} \usepackage{enumitem} \usepackage{romanbar} \makeatletter \def\enumRomanbarcnt#1{\expandafter\@enumRomanbarcnt\csname c@#1\endcsname} \def\@enumRomanbarcnt#1{\expandafter\Romanbar\expandafter{\the#1}} % also the following line must go before ...

Top 50 recent answers are included