Tag Info

Hot answers tagged

5

It's not quite clear which layout ypu want but enumitem package makes it easy to experiment with the parameters. perhaps: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{description}[itemindent=0pt,listparindent=2em,labelwidth=1em,] \item[*] Long item text that continues here. that continues here. that continues here. that ...


4

Here I introduce the itemized list through \braceditems[width]{items} and the commentary via \mycomment[width]{commentary}. The default widths can be re-specified via \leftwidth and \rightwidth. The brace is just a scaled \} glyph, limited in width to 1.5ex, as specified in the \scalerel* optional argument (see addendum for alternative brace style). If I ...


4

You're really overcomplicating things: just use a nested itemize: \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \begin{enumerate} \item Long Items \item \lipsum*[1] \begin{itemize}[label=---,topsep=0pt] \item Second Level Item \item \lipsum*[2] \item Another second level item \end{itemize} \item A first ...


4

Use \thetheorem: \documentclass{article} \usepackage{amsmath,amsthm} \usepackage{enumitem} \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newenvironment{thenumerate}[1][] {\enumerate[label=\alph*\textup{)},ref=\thetheorem.\alph*),#1]} {\endenumerate} \begin{document} \begin{theorem}[Great result] \label{th:great} Let $1$ be the number one. Then: ...


4

With the shortlst package you are nearly safe. In this case you would write: Solve the following equations for $x$. \begin{shortenumerate} \item $2(x+2)=20$ \item $4-4x=12$ \item $x+5x-6=12$ \item $4x-4x+3x=18$ \item $3x=12$ \end{shortenumerate} This will give the following output: As the picture shows, it is necessary to check for the width ...


4

This might be what you're after... Using enumitem to generate parameter-specific lists, with references added to the margins using \marginpar. \documentclass{article} \usepackage{enumitem,lipsum} \newlist{questions}{enumerate}{1} \newlist{answers}{enumerate}{1} \setlist[questions,answers]{% label=\arabic*., align=left, labelwidth=1.5em, ...


3

Here are two variants, that use the blkarray and listliketabpackages, and enumitem for the variant that uses an itemize environment. The other variant only mimicks itemize, and is designed for one-lined ‘items’: \documentclass[12pt, a4pape, leqno]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...


3

If you don't mind the overhead involved in loading TiKZ (or if you are using it for something else anyway), you could use the tikzmark library. The following code defines a new environment, braced which takes a single argument which should be the description you want typeset to the right of the list of items. You then use \item to define the items, as you ...


3

Very similar to David's solution: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{description}[itemindent=!,labelwidth=!,listparindent=\parindent] \item[*] Long item text text text text text text text text text text text text text text text text text text text text text text text Item description \end{description} ...


2

One way to obtain the desired alignment is to define a custom macro: Notes: The showframe package was used just to show the page margins. It is not needed in your actual use case. Code: \documentclass{article} \usepackage{showframe} \newlength{\LabelWidth} \newcommand*{\AlignedText}[2]{% \par\noindent\textbf{#1:} ...


2

A quick solution that comes to my mind is to abuse the cases environment: \documentclass{minimal} \usepackage{amsmath} \begin{document} $ \mbox{\begin{minipage}{3cm}some long description braking to next line\end{minipage}} \begin{cases} \mbox{item 1} \\ \mbox{item 2} \\ \mbox{item 3} \end{cases} $ \end{document} Yielding this (with a brace on the left ...


2

You want to use the description environment. \documentclass{book} \begin{document} \mainmatter \chapter{Introduction} Something to tell what this book is about. Now we describe the contents of each chapter. \begin{description} \item[Chapter 2] deals with gnus, big animals rarely found in Arctic regions, but that frequently plague silly text examples ...


2

The lingmacros package is very old, and is really not very practical for numbering anything other than the most basic examples. For instance, it requires you to label subexamples manually, which really defeats the purpose of LaTeX and automatic numbering of things. See the following question for a summary of three widely used packages for linguistic ...


2

\documentclass[11pt]{amsart} \usepackage{enumitem} \makeatletter \def\nest{% \edef\reset{\c@enumi\the\c@enumi\relax}\c@enumi\z@ } \makeatother \begin{document} \begin{enumerate} \item A \nest % \begin{enumerate} \item C \item D \reset % \end{enumerate} \item B \end{enumerate} \end{document}


2

I don't know the reason of this behavior, but if you put your \captionof inside a \parbox of width \linewidth \parbox{\linewidth}{\captionof{figure}{\textsc{Caption}'s \texttt{\string\captionof}. Left shift.}} the caption is centered in the remaining line width, that is, it is right-shifted as expected: Full MWE: \documentclass{article} ...


2

This is just an addition to egregs answer. There is no reason to use an extra env for this. Just add the extra configuration whenever we are inside a theorem env. Downside: this has to be added to every thm like env. I use this to control that enumerates are formatted consistently in teaching materials etc. \documentclass{article} ...


2

Lists like enumerate or itemize cannot occur directly in as content of a tabular cell -- they must be enclosed in a \parbox or, even better, using p{somewidth} - column specifier. \documentclass[parskip=half, fleqn]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{array} \usepackage{ragged2e}% ...


2

I've removed stuff related to the non-standard package since your document doesn't seem to depend on it. (I doubt it needs tasks either.) There are 2 immediate issues. One is that you haven't activated Latin hyphenation patterns so TeX is unable to break lines sensibly and the narrowness of the text width causes stuff to spill over. This can be solved by ...


1

This is an improvement over Werner's answer, using \marginnote: \documentclass{article} \usepackage{enumitem,lipsum,marginnote} \newlist{questions}{enumerate}{1} \newlist{answers}{enumerate}{1} \setlist[questions,answers]{% label=\arabic*., align=left, labelwidth=1.5em, itemindent=2em, leftmargin=!, labelsep=0.5em} \newcommand{\question}[1]{% ...


1

overprint only copes well with fairly simple cases. I suspect that the use here does not count as sufficiently simple, at least without some sort of adjustments. Simpler to use overlayarea for the entire itemize environment: \documentclass[utf8]{beamer} \begin{document} \begin{frame} \begin{overlayarea}{\linewidth}{.75\textheight} ...


1

It sounds like you need \setlist[enumerate,2]{label=(\arabic*)} Here's a complete example: % arara: pdflatex \documentclass[11pt]{amsart} \usepackage{enumitem} \setlist[enumerate,2]{label=(\arabic*)} \begin{document} \begin{enumerate} \item A \begin{enumerate} \item C \end{enumerate} \item B \end{enumerate} \end{document}


1

How about \documentclass[11pt]{amsart} \usepackage{enumitem} \newlist{Enumerate}{enumerate}{4} \setlist[Enumerate]{label=\arabic*} \begin{document} \begin{enumerate} \item A \begin{Enumerate} \item C \item D \end{Enumerate} \item B \end{enumerate} \end{document} If you do not want to mess with the second level list, then make a different ...


1

I'm not sure why you want to do this. However, here's the way: \documentclass{article} \usepackage{showframe} \usepackage{enumitem} \setlist[enumerate]{ labelsep=8pt, labelindent=0.5\parindent, itemindent=0pt, leftmargin=*, before=\setlength{\listparindent}{-\leftmargin}, } \begin{document} A normal paragraph of text just to show where the left ...


1

just put the spec after [<+->]: \documentclass{beamer} \begin{document} \begin{frame} \begin{description}[<+->][abc] \item[ab] Some description \item[abc] Some description \item[abcd] Some description \end{description} \begin{description}[abc] \item[ab] Some description \item[abc] Some description \item[abcd] Some ...


1

I was looking for an extremely simple, non-interactive checklist just to print. Here's what I came up with. \documentclass[12pt]{amsart} \usepackage{changepage} \linespread{2} \begin{document} \begin{tabular}{ l l } \qed & \\ \qed & \\ \qed & \end{tabular} \end{document}



Only top voted, non community-wiki answers of a minimum length are eligible