# Tag Info

8

This can be accomplished for multiple lists by setting the style for each level of the enumerate environment using: \setlist[enumerate,<level>]{<format>} By also setting the before formatter, you can set the text of the entire item in a certain font, as you seemed to desire from your question. Resetting for level two will set the fonts for ...

3

You didn't provide a MWE, but I assume that you are using something like \begin{enumerate}[label=\textbf{\arabic*}] \item first \item second \item third \begin{enumerate}[label*=.\arabic*] which does make the second level enumerate items bold. This is not surprising, as you are forcing the label to be bold using label=\textbf{\arabic*}. ...

1

Got it!!! Add \defbeamertemplate{description item}{align left}{\insertdescriptionitem\hfill} in preamble. Use description environment in LyX. Add \setbeamertemplate{description item}[align left] in ERT before the description environment in LyX. Right click the first entry in the list, choose Insert Longest label. Add an ERT in the opt box, with Ctrl + ...

2

A workaround is to not use a list at all, but a table where the first column is an l column, and the second is a p column. Add a table with Insert --> Table, or the corresponding button on the toolbar, remove all horizontal and vertical lines, and make it two columns. Right click a cell in the second column, and choose More --> Settings. Set the width to a ...

4

Here's one option that uses a paragraph break rather than a forced line break: \documentclass[12pt,letterpaper]{article} \usepackage{amsmath,amsthm,enumitem} % LSP is short for Lamport Structured Proof \newlist{lsp}{enumerate}{10} \setlist[lsp]{label=\arabic*.,ref=\arabic*} \newcommand{\lspproof}{\par\nobreak{\scshape Proof:}\quad} ...

5

This is an attempt based on your example. I used the theorem hooks defined by thmtools to override the format for thmlisti in the current environment: \addtotheorempostheadhook[thm]{\crefalias{thmlisti}{thm}} \addtotheorempostheadhook[lem]{\crefalias{thmlisti}{lem}} I cannot promise that it won't break anything, for example if you use a thmlist without ...

4

Here's a solution. Define a new list lemlist \newlist{lemlist}{enumerate}{1} \setlist[lemlist]{label=(\roman{lemlisti}), ref=\thethm.(\roman{lemlisti}),noitemsep} and use this one inside lem. Then, declare \Crefname{thmlisti}{Theorem}{Theorems} \Crefname{lemlisti}{Lemma}{Lemmas} and you will be able to avoid the optional argument for \labels. MWE: ...

4

This builds on the answers from Dan and Peter Grill. Just to show the way in which enumitem can be used to create a new list with the required properties. I've called this mycompactenum so that I can include compactenum from paralist for comparison in the same document but obviously you can just use compactenum if you wanted to do it this way. This solution ...

4

Your example compiles fine if I reverse the order of loading paralist and enumitem and change \end{enum} to \end{compactenum}. I don't know if that does what you want, however. Note: when packages conflict, one of the things to try is a change in load order. On the other hand, a compactenum environment can be defined with the facilities of the enumerate ...

8

You don;t need to use the paralist package at all. Just use the starred variant of the environments from the enumitem package -- requires to add the inline option to the enumitem package: If you don't want the enumerat in the tabular to be on its own line you can tweak all the paramaters used for vertical spacing. Below I used ...

1

A solution using the stackengine package: it's by construction that the "Heading" part cannot be separated from the first line of the content since it belongs to the first line. It also has the advantage to greatly simplify the code – unless you have specific reasons to type the heading with its own \item command: \documentclass[a4paper]{article} ...

3

The needspace package allows reserving vertical space before doing the next thing. If the space does not exist, it issues a page break. Here, I redefined \item to perform a \needspace before it. You can change the value I used (\baselineskip), but it works for your MWE. \documentclass[letterpaper]{article} \usepackage{enumitem} \usepackage{lipsum} ...

3

You had duplicate the options [topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=1ex] to description: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{description}[topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=1ex] \item{(i)} $xSx$ does not hold for all $x\in X$ (irreflexive). \item{(ii)} For all $x,y\in X$, $xSy$ and $ySz$ ...

Top 50 recent answers are included