Tag Info

New answers tagged

5

If a list such as itemize is placed at the start of a minipage its usual vertical spacing before the list is omitted. Adding multicols the way you did it is producing a box around the itemize list just like a minipage and thus the \topsep is not added. Instead what you see is the \multicolsep which is added before and after the multicol environment. In ...


0

You can see from this question How to draw this lines with tikzmark a scheme shows the different horizontal lengths in the enumirate environment


4

An alternative might be eating off the line width as the item label width increases which also saves a bit of horizontal space. \documentclass[preview, border=0.5cm]{standalone} \usepackage{enumitem,calc} \begin{document} \begin{enumerate}[noitemsep, label = {{\protect\makebox[0.5in - \widthof{\arabic*}]{\hrulefill}\arabic*.}}, ...


3

This is an explanation of the problem rather than a full solution. As Joseph Wright suggested this problem would be much easier to understand with a proper minimal working example. In fact, if you cut down to a MWE then it becomes clear what the problem is: as one might suspect, the xparse package is completely innocent. Here is (close to) a MWE. To save ...


1

I haven't tested this extensively because I am not sure of your use case and your MWE doesn't give many clues. Still, I'm fairly confident that it works as you want because the MWE below produces: In particular, note the spacing, line breaks and special characters that are behaving as you wanted. Moreover, given the comments above, I checked that your ...


2

I'm not sure I understand your question, either, but it seems straightforward to modify the MWE to do what you appear to want, if I've understood correctly, without the need for intervention by the end user: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{enumitem} \usepackage{xparse} \DeclareDocumentEnvironment ...


3

Not sure I understood what your problem consists in, exactly, but series work, even inside another environment: \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{enumitem} \begin{document} \begin{center} \begin{enumerate}[label=\alph*), series=edu] \item One \item Two ...


1

Preamble You have got an error in you current document: You define an environment, which name is an command (\newenvironment{\Exercises}). I have two ideas how to realize this, which are basically what you have done. But somehow, you mix them up, I think. First idea: Manual counter You create a manual counter for the exercises an selfmade label for them, ...


1

Start the second level lists with a empty item \item[] ([] is very important) or define a new list that do this like \newenvironment{mylist}[1][]{\begin{enumerate}[#1]\item[]}{\end{enumerate}} Thus, the normal space of the lists does not change and the options of the enumitem package can be used. \begin{mylist}[<enumitem options>] \item First ...


1

Here is a solution using enumitem and etoolbox. I also changed the centred ‘Assignment’s, manually numbered, to sections, automatically numbered and referable, with the titlesec package. \documentclass{article} \usepackage[shortlabels]{enumitem} \setlength{\parindent}{0pt} \setlength{\parskip}{1ex} \usepackage{etoolbox} \newenvironment{problems}{% ...


2

I haven't found anything like this at the enumitem documentation and I would also suggest daleif's answer using theorems. But I was able to answer your question by redefining \item before a 1st level enumerate environment and redefining it back to it's original definition after the environment. It also works with a simple ~, you don't need a \mbox{} ...


2

I think it might be better not to make the Problem ... lists, but rather theorems. Then you do not have to add those "empty" items. Using ntheorem we can also build the list configuration into the surrounding env: \documentclass[a4paper]{memoir} \usepackage{enumitem} \usepackage{ntheorem} \theoremstyle{break} \theorembodyfont{\normalfont} ...


3

This is easy with the exsheets package and the tasks package. The following example hopefully is self-explaining: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{mathtools} \DeclarePairedDelimiter\abs{\lvert}{\rvert} \usepackage{exsheets}% loads the `tasks' package \SetupExSheets{ headings = runin-nr } \settasks{ counter-format = tsk[a]. ...


4

Here is another solution which does not have to define a new \item command. \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb}%for \dfrac \usepackage[inline]{enumitem}%for enviroment enumerate* \usepackage{tabto}%for \tab and \NumTabs \begin{document} \begin{enumerate}[start=44] \item Evaluate each of the following if $x$ is a non-zero real ...


1

It is not exactly clear what you are trying to do, but when you use resume a list you need to specify a name for what you want to resume. So, in the first instance you specify the name via series=MyQuestion, and then for subsequent list items you resume it via resume=MyQuestion: Code: \documentclass{article} \usepackage{enumitem} ...



Top 50 recent answers are included