# Tag Info

1

Here is a solution: I define an assignment environment, based on the snugshade* environment from framed. \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{framed} \usepackage[dvipsnames]{xcolor} \colorlet{shadecolor}{lightgray!35!} \newcounter{assignment} \newenvironment{assignment}{% \refstepcounter{assignment}\...

2

You can build a protected number test into the label. Here, \padz adds a zero if the enumi count is 15 or less. \documentclass{scrartcl} \usepackage{moreenum} \usepackage{enumitem} \def\padz{\ifnum\value{enumi}>15\relax\else0\fi} \begin{document} \begin{enumerate}[label={\ttfamily0x\protect\padz\enumhex*}] \item Thou shalt not follow the ...

2

Since moreenum uses fmtcount as its "number translation workhorse", you can use \padzeroes[2] to prepend a sufficient number of zeroes to your enumeration: \documentclass{article} \usepackage{moreenum,enumitem} \padzeroes[2] \begin{document} \begin{enumerate}[label=\texttt{0x\enumHex*}] \item Thou shalt not follow the null pointer. \item Thou shalt ...

1

LaTeX wants to keep lists on the same page so it will break the page before the list rather than within the list. tasks will break across pages if there won't be enough glue for vertical spacing etc (see chapter 3.1 in tasks manual): http://i.imgur.com/6O2VUBI.png I would rather try to keep the item and the list on the same page. Add this to your ...

1

Here's an idea, but it's not easy to understand what you're after. \documentclass{article} \begin{document} \newcommand{\lymessage}[3]{% \item \begingroup \let\par\fpar % don't really do \par \linepenalty=10000 % no page break inside a paragraph % the text #1\par #2\par #3\par #3\par #3\par #3\par #3\par #3\par #3\par #...

3

Use resume*, not resume. The starred version uses the options given to the last list(s), the unstarred version discards any option that was not already specified in list definition. Alternatively: Define a enumerate of your own (as shown in the example) ... and this is what the enumitem package suggests: Use resume* sparingly, define rather a new list ;-) ...

Top 50 recent answers are included