Tag Info

New answers tagged

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]{% ...


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, ...


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 ...


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

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} ...


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 ...


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

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:} ...


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}


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} ...


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 ...


0

Or wouldn't it be simply this (I find that a first paragraph with a non-zero leftmargin, and subsequent paragraphs in the item with a zero left margin doesn't look too good): \documentclass{article} \usepackage{enumitem} \setlist[enumerate]{% wide =0.5\parindent, listparindent=0pt% }% \begin{document} A normal paragraph of text just to show where the left ...


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 ...


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}


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

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

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} ...


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

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} ...


0

I have added a \centering at your last caption which seems to fix the problem, although it still doesn't line up with the other captions. \documentclass{article} \let\oldcaption\caption \usepackage{caption} \begin{document} \begin{figure} Within a float: \oldcaption{Default \LaTeX's caption. OK.} \end{figure} \begin{figure} Within a float: ...


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

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 ...


0

Well, I guess I really overcomplicated that... \documentclass{letter} \usepackage{lipsum} \usepackage{calc} \def\linelength{\linewidth-2em-1ex} \newcommand{\two}[1]{% \vspace{3pt}\\\hspace*{1em}---\ \begin{minipage}[t]{\linelength}#1\\\end{minipage} \vspace*{-2\baselineskip}\\ } \begin{document} \begin{enumerate} \item Long Items ...


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 ...


0

You could use \phantom statements in the first two \items. That way, all labels will have the same width and alignment properties. \documentclass{beamer} \begin{document} \begin{frame} \begin{description}[<+->] \item[ab\phantom{cd}] Some description \item[abc\phantom{d}] Some description \item[abcd] Some description \end{description} ...


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 ...


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 ...


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}% ...


0

Thank you Christian!!! That's the answer. For all others, here is the working code: \documentclass[parskip=half, fleqn]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} \begin{document} \begin{center} \begin{tabular}{p{.27\textwidth}|p{.27\textwidth}|p{.27\textwidth}} \multicolumn{1}{c|}{OEM} ...


3

Here's your lists with enumitem: \documentclass{article} \usepackage{enumitem} %examlist \newlist{examlist}{enumerate}{1} \setlist[examlist,1]{ align=left, labelwidth=1.5em, labelsep=0pt, leftmargin=1.5em, label=\arabic*., } \newlist{exxamlist}{enumerate}{1} \setlist[exxamlist,1]{ align=left, labelwidth=2em, labelsep=0pt, leftmargin=2em, ...


3

Yes, enumitem can do this in a jiffy. The two nested lists can be modified globally using \usepackage{enumitem,showframe} \setlist[enumerate,1]{ label={\arabic*.}, ref={\arabic*}, labelindent=0pt, widest={10.}, leftmargin=*, align=left} \setlist[enumerate,2]{ label={\alph*)}, ref={\alph*}} This sets the first enumerate level ...


0

Here is a paracol implementation: \documentclass{article} \usepackage{ebgaramond,paracol,lipsum} \let\oldparacol\paracol \renewcommand{\paracol}{% \renewcommand{\Nonrestrictive}{% \leavevmode\hfill Nonrestrictive:\switchcolumn\noindent% First use \renewcommand{\Nonrestrictive}{% \par\medskip\switchcolumn*\leavevmode\hfill Nonrestrictive: ...


4

Most easily: \documentclass[12pt]{article} \usepackage{ebgaramond} \usepackage[shortlabels]{enumitem} \begin{document} \begin{enumerate}[labelwidth = 0.3\linewidth, labelsep =1.5em, leftmargin = \labelwidth] \item[Nonrestrictive: ] Grey, a popular colour this season, is not becoming me. \item[Restrictive: ] The colour grey is not becoming me. ...


1

As a very dirty walkaround I now use \begin{question} \vspace{-\parskip}\vspace{-\baselineskip} \begin{enumerate}[leftmargin=*,topsep=0pt] \item What is $333+333$? \item Compute $999-333$. \end{enumerate} \end{question} This works, but it's not very nice.


0

\leftmargini=10 %(the value 10 works well for me, but you can changed it ) \begin{itemize} \item one \item two ..... \end{itemize}


7

assuming your file is UTF8 encoded the log file shows Missing character: There is no in font ptmr7t! Missing character: There is no in font ptmr7t! Missing character: There is no in font ptmr7t! as you have not told latex you are using UTF-8, so it sees a dash as three separate characters from its three bytes. All of them have the 8th bit set and the ...


1

Just to supplement @cfr, I usually use this general configuration \usepackage{enumitem} \setlist{ listparindent=\parindent, parsep=0pt, } To have paragraphs indented as in the normal doc, and to remove space between paragraphs in lists.


2

\documentclass{article} \usepackage{enumitem,kantlipsum} \begin{document} \begin{enumerate}[label=\arabic*., listparindent=1.5em] \item \kant[1-2] \item \kant[3-4] \end{enumerate} \end{document} If you want the first paragraph of an item indented also, you need something like this but will need to play around, probably, to polish it. ...



Top 50 recent answers are included