# Tag Info

1

A solution, if I uderstand well what you want, consists in making the sublist wide, but with a left alignment. Here are two ways, differing in the leftmargin of the sublist: \documentclass[11pt, a4paper]{article} \usepackage{enumitem} \newlist{test}{enumerate}{2} \setlist[test, 1]{label = (\alph*), wide = 0pt} \setlist[test, 2]{label = \roman*., wide = ...

3

As David says above you are much better off using a list and letting LaTeX take care of the formatting and numbering. Doing it this way is so easier, both to read and to write and, the layout is automatically uniform and easy to change. For this I would use the enumitem package to obtain using: \documentclass{article} \usepackage{enumitem} ...

4


4

Using wrapfig in lists is explicitly unsupported, but if you want to do it anyway it works if you help it a bit: \documentclass[a4paper,12pt]{article} \usepackage[T1]{fontenc} \usepackage[demo]{graphicx} \usepackage{wrapfig} \usepackage{lipsum} \begin{document} This is an example: first paragraph is OK but the second have the problem! \begin{itemize} ...

0

I was able to improve the great answer by @T.Verron such that \ref will return the plain counter of the list-environments while \cref will return the complete label compromising type, number of theorem and counter of the list (see my comment on @T.Verron's answer). To do so I set up two new counters \newcounter{listthm} \newcounter{listlem} whose names ...

4

\documentclass{article} \makeatletter \renewcommand{\theenumi}{% \@arabic{\numexpr(\value{enumi}+1)/3\relax}% \@Alph{\numexpr3+\value{enumi}-((\value{enumi}+1)/3)*3\relax}} \makeatother \begin{document} \begin{enumerate} \item \item \item \item \item \item \item \item \end{enumerate} \end{document}

2

Here is one method \documentclass{article} \usepackage{enumitem,chngcntr} \newcounter{test} \counterwithin{enumi}{test} \begin{document} \begin{enumerate}[label=\textbf{\thetest\Alph*}] \stepcounter{test} \item \item \stepcounter{test} \item \item \item \end{enumerate} \end{document} In your example, \theenumi also refers to the ...

1

Is that OK? I introduced parameter values that depend on the font, so that you can change it (size, family) without having to recompute them.I defined a labelwidth large enough for the label not to overlap the item body. If you want the labels to begin at a nonzero distance from the left margin, they'd look better right-aligned, in my opinion. I give an ...

4

Let enumitem figure out the leftmargin=* along with align=left: As per you comments if you want it left aligned but with some indent, then you could define a custom alignment: \SetLabelAlign{LeftAlignWithIndent}{\hspace*{2.0ex}\makebox[1.5em][l]{#1}} and then using align=LeftAlignWithIndent you get: Notes: The showframe package was used just to ...

2

The label separation should be zero, and the label width should be the same as the left margin. I also added topsep=0pt so you don't need to guess its value. \documentclass{report} \usepackage{amsthm} \usepackage{enumitem} \usepackage{lipsum} \SetLabelAlign{Center}{\hfil#1\hfil} \newtheoremstyle{theorem}{1em}{}{\itshape}{}{\bfseries}{}{1em} ...

3

\documentclass{report} \usepackage{amsthm,showframe} \usepackage{enumitem} \SetLabelAlign{Center}{\strut{\parbox[t]{\labelwidth} {\centering#1}}% } \newtheoremstyle{theorem}{1em}{}{\itshape}{}{\bfseries}{}{1em} {\thmname{#1}\thmnumber{ #2}\thmnote{ (\normalfont\textit{#3})}} \theoremstyle{theorem} ...

1

If you define an exercises list of type enumerate, with problems at level 1, questions at level 2 and subquestions at level 3, you can do that without margin notes while having consistent left margins for multiline (sub)questions. To make the code more readable, I also define \qu and \subqu as aliases for \item, to be used in the relevant context: ...

1

I found a nice solution which satisfies properties (1)--(3) using one of egreg's answers to another question (apologies, but I lost track of which question this was). In this answer, egreg suggested using a dummy description environment to avoid the undesired line break after the beginning of the itemize environment. In this case, I use marginnote instead of ...

6

Define a new list and a new align: \documentclass{article} \usepackage{lipsum,showframe} %% showframe for demo \usepackage{enumitem} \SetLabelAlign{mycenter}{\strut\smash{\parbox[t]{\textwidth} {\centering#1}}% } \newlist{mylist}{enumerate}{1} \setlist[mylist]{label=\bfseries ...

3

Here is a simple way, with the stackengine package. You can set the distance beteen label and body with before=\setstackgap[S]{…}: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{lipsum} % just for dummy text \usepackage{enumitem} \usepackage{stackengine} \begin{document} \begin{enumerate}[label=\hfill\stackon{}{Article ...

4

How about this (you can obviously tweak the vertical space in the definition): \documentclass{article} \usepackage{lipsum} \usepackage[inline]{enumitem} \newenvironment{mylist}{% \begin{enumerate*}[% before={\\[12pt]},% label=\centerline{Article \arabic*:},% afterlabel={\\[12pt]},% itemjoin={\\[12pt]},% itemjoin*={\\[12pt]},% ]% ...

2

I didn't see an easy way to use enumitem to make enumerate work this way (but Lucas was smarter!), so I thought that you had only two options: Use existing formatting. For example, it wouldn't be that hard to do what you want using \section or \subsection commands, either by choosing a class that centres these or by using titlesec to get the formatting ...

2

I guess this is what you want: \documentclass{article} \usepackage{enumitem} \usepackage{showframe} % just for the example \begin{document} \noindent\begin{minipage}[t]{0.45\textwidth} \subsection*{Header 1} \begin{itemize}[ align=left, leftmargin=2em, itemindent=0pt, labelsep=0pt, labelwidth=2em ] \raggedright \item[\textbf{foo}] ...

1

If you need multicolumn only to have an on line itemize environment, I suggest another approach, based on the shortlst package. You'll find it on CTAN, but it's not in any distribution for licensing reasons. I define a tabitemize environment, for column-wise displayed items; the number of columns is controlled by an nc key (3 by default). I think the ...

5

I think this may be partly because one can use non-counter-style entries when using the optional argument to \item[<stuff>]. So, in that regard, you can set this manually so that the reference appears as you want: \documentclass{article} \usepackage{enumitem} \usepackage[noabbrev]{cleveref} \makeatletter \newcommand{\setcreflabel}[1]{% ...

Top 50 recent answers are included