# Tag Info

1

Basically the problem is that \\ ends a line, but after an itemize there exist no line that can be ended. Mi very simple solution to case like these is to put a "fake line" by adding a space and then the newline. This will be like: \begin{itemize} \item one \item two \end{itemize} \ \\

3

Here are some examples with explanations: \documentclass{article} \begin{document} \begin{itemize} \item This \item That \item Where \end{itemize} I am doing it here to test this. \begin{itemize} \item This \item That \item Where \end{itemize} Putting \verb|\newline| or \verb|\\| here will cause an error that there is no line here ...

1

As noted in the comments, this might be a bad idea, since it is inconsistent with LaTeX syntax. The reason braces are not used within itemize is that it is already in an environment. The text is not the argument of \item as much as \item indicates where the text should be divided. In your usage however, the text should really be seen as an argument of ...

7

First of all, notice that you don't have a paragraph break after the itemize environment, therefore there will be no indentation no matter whether you use \indent or not. The first thing to fix is to add a paragraph there: \section{The Section} \begin{itemize} \item \textit{good} \item \textit{bad} \end{itemize} In this section.... Now, you get ...

2

You don't mention it explicitly, but I assume you're using the enumitem package. The following code should work for you; if you want the cross-reference to a second-level item to also include the "number" (here: letter!) of the higher-level item, you can do so by specifying the desired format explicitly via a ref= ... statement. \documentclass{article} ...

3

You can use adjustbox package with export option. Then a key valign is available inside \includegraphics for vertical alignment. \documentclass{article} \usepackage[export]{adjustbox} \begin{document} \begin{enumerate} \item Find the unknown values and in each case, give a reason. \begin{enumerate} \item ...

4

Next time, please provide a Minimal Working Example as Johannes_B mentioned. That would have made it easier to help and more likely that my answer actually will be of some use (which I'm not sure about). Is this the kind of thing you are looking for? This image shows a 'legal' enumeration between two 'regular' enumerations. The code uses the before* and ...

1

Using Aditya's hint, it is possible to remove the space from between list items as follows: \setupinteraction[state=start,] \define\RegularPeriod{\color[black]{\normal.}} \define[2]\href{\begingroup\goto{\color[blue]{#1}}[url(#2)]\endgroup} \define[1]\TextCommand{\item\Word{\currentregisterpageuserdata{title}}, } \define[1]\PageCommand{#1\RegularPeriod{} ...

3

The default glossary style (list) uses the description environment which doesn't like a line break immediately after \item. Your second entry has a line break at the start of the description which tries to break the line immediately after \item, which is what's causing the problem. You can add an empty box immediately before the line break (which is what the ...

0

Since in the comments an exsheets solution for such a layout was welcomed here it is... the usage is quite different from the exercise package, though... The solution contains of several steps: Wrap KOMA-Script's addmargin environment around the question environment with the help of etoolbox's \AtBeginEnvironment and \AtEndEnvironment. This gets the ...

8

This can be accomplished for multiple lists by setting the style for each level of the enumerate environment using: \setlist[enumerate,<level>]{<format>} By also setting the before formatter, you can set the text of the entire item in a certain font, as you seemed to desire from your question. Resetting for level two will set the fonts for ...

3

You didn't provide a MWE, but I assume that you are using something like \begin{enumerate}[label=\textbf{\arabic*}] \item first \item second \item third \begin{enumerate}[label*=.\arabic*] which does make the second level enumerate items bold. This is not surprising, as you are forcing the label to be bold using label=\textbf{\arabic*}. ...

1

First you need to choose a bullet, or search through the source code of moderncv to find out what bullet they use for \item. \myitem is close, but not exactly the same. \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} \usepackage{lipsum} \usepackage[scale=0.75]{geometry} \firstname{John} \familyname{Smith} ...

0

If you need to spread vertically every itemize in the presentation (document), then you can write in your preamble: \let\olditem\item \renewcommand{\item}{\setlength{\itemsep}{\fill}\olditem} This is useful because the line \setlength{\itemsep}{\fill} only alters one single itemize.

6

As you see from the original definition, proof from amsthm typesets its title as the argument for \item and this prevents line breaking; you can change this by redefining proof: \documentclass{scrartcl} \usepackage{amsthm} \makeatletter \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist ...

4

You can use the label, ref keys from the enumitem package to control the format for the labels and the references (I added some settings for the third and fourth nesting levels just as an illustration): \documentclass{article} \usepackage{enumitem} \usepackage{cleveref} \setlist[enumerate,1]{label=(\roman*),ref=(\roman*)} ...

4

With the help of enumitem, you can define a new environment enumsec which does what you want (I hope): \newlist{enumsec}{enumerate}{1} \setlist[enumsec,1]{% align=right, leftmargin=0pt, parsep=0pt, itemsep=\topsep, listparindent=\parindent, label=\arabic*. } MWE: \documentclass{article} \usepackage{enumitem} ...

5

The extra space comes from \partopsep. You can set \partopsep to 0pt: \documentclass{article} \usepackage[a5paper]{geometry}% http://ctan.org/pkg/geometry \usepackage{changepage,lipsum}% http://ctan.org/pkg/{changepage,lipsum} \makeatletter \renewenvironment{adjustwidth}[2]{% \begin{list}{}{% \partopsep\z@% \topsep\z@% ...

4

Here's one option that uses a paragraph break rather than a forced line break: \documentclass[12pt,letterpaper]{article} \usepackage{amsmath,amsthm,enumitem} % LSP is short for Lamport Structured Proof \newlist{lsp}{enumerate}{10} \setlist[lsp]{label=\arabic*.,ref=\arabic*} \newcommand{\lspproof}{\par\nobreak{\scshape Proof:}\quad} ...

0

I refer to what you really wanted: just outputting odd/even items if the relevant boolean is set that way. \documentclass{article} \usepackage{ifthen} \newboolean{oodd} \setboolean{oodd}{true} \usepackage{environ} \makeatletter \NewEnviron{Item}{% \ifthenelse{\boolean{oodd}} { \ifthenelse{\isodd{\value{enum\romannumeral\@enumdepth}}}{\item ...

6

I'd go with enumitem. \documentclass{article} \usepackage{environ} \usepackage{enumitem} \NewEnviron{outeritem}{% Solution \item \BODY } \newlist{outerlist}{enumerate}{1} \setlist[outerlist,1]{label=\bfseries\arabic*.,resume,before=\advancedepth} \setlist[enumerate,2]{label=\bfseries(\roman*)} \makeatletter % hook into LaTeX's enumerate depth ...

3

It is possible to adjust the list depth/level. Let's see what enumerate does (taken from latex.ltx): \def\enumerate{% \ifnum \@enumdepth >\thr@@\@toodeep\else \advance\@enumdepth\@ne \edef\@enumctr{enum\romannumeral\the\@enumdepth}% \expandafter \list \csname label\@enumctr\endcsname ...

0

I have found a workaround: the hyperlinks with reverse numbering work when using the newenvironment (originally posted by mhelvens in Is there a way to get reverse numbering on the enumerate environment?): \newenvironment{benumerate}[1]{ \let\oldItem\item \def\item{\addtocounter{enumi}{-2}\oldItem} \begin{enumerate} \setcounter{enumi}{#1} ...

4

This builds on the answers from Dan and Peter Grill. Just to show the way in which enumitem can be used to create a new list with the required properties. I've called this mycompactenum so that I can include compactenum from paralist for comparison in the same document but obviously you can just use compactenum if you wanted to do it this way. This solution ...

4

Your example compiles fine if I reverse the order of loading paralist and enumitem and change \end{enum} to \end{compactenum}. I don't know if that does what you want, however. Note: when packages conflict, one of the things to try is a change in load order. On the other hand, a compactenum environment can be defined with the facilities of the enumerate ...

8

You don;t need to use the paralist package at all. Just use the starred variant of the environments from the enumitem package -- requires to add the inline option to the enumitem package: If you don't want the enumerat in the tabular to be on its own line you can tweak all the paramaters used for vertical spacing. Below I used ...

3

It is easy with the package enumitem. MWE \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[itemsep=\baselineskip] \item \begin{enumerate}[leftmargin=*,label=\alph*.] \item Eggs. \item Feathers. \end{enumerate} \item \begin{enumerate}[leftmargin=*,itemsep=\baselineskip,label=\alph*.] \item Mention two\dots \item How can ...

6

Switch to modern and more powerful enumitem: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate} \item Blah. \begin{enumerate}[label=\roman*.,ref=\theenumi.\roman*] \item \label{petite} Petite blah. \end{enumerate} \end{enumerate} In Step \ref{petite} we see nothing. \end{document}

1

Avoid \vskip in favour of \blank[small]. For example, on the lists use: before={\blank[small]}, after={\blank[small]}, And on the subsection title use: \setuphead[subsection][ % Avoid orphaned titles. before={\testcolumn[3]}, after={\blank[small]}, ] This produces the desired result. See also: http://wiki.contextgarden.net/Command/blank

6

Here are 3 solutions (same label indent and different left margins: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \newlength{\trueparindent} ...

2

Here is a macro for it: \documentclass[draft]{article} \usepackage{enumitem} \usepackage{kantlipsum} \usepackage{xparse} %%% syntax %%% \cventry{<year>}{<item>}[<optional>|<description>] \NewDocumentCommand\cventry{mmo}{% \IfValueTF{#3}{% \noindent ...

4

You can introduce a new counter mysub \newcounter{mysub} \setcounter{mysub}{0} \renewcommand{\themysub}{def\arabic{mysub}} and use this one instead of \theequation inside the subequations. If you also want this counter to be reset after the end of the subequations, also add the following lines \usepackage{etoolbox} ...

0

May be this is what you want but not sure. \begin{align} & \hspace*{-3cm} \bullet \;\; \trans\xbf \Abf\xbf \geq 0 \text{ for any non-zero vector } \xbf\in\Rbb^{n\times 1}.\tag{def1} \label{ok} \\ & \hspace*{-3cm} \bullet \;\; \text{ All the } n\text{ eigenvalues of } \Abf \text{are non-negative}.\tag{def2} \label{ok2} \\ & \hspace*{-3cm} ...

6

This is a bug in beamer (although arguably the \item<n> syntax is better here). A fix which I'll check in to beamer for the next release (to go in the preamble): \makeatletter \def\gobble@onslide{% \@ifnextchar<%> \gobble@onslide@aux \@firstofone } \def\gobble@onslide@aux<#1>{\@firstofone} \def\beamer@donoframe{% ...

8

I can confIrm the problem; this simplified document reproduces the error: \documentclass{beamer} \includeonlyframes{current} \begin{document} \begin{frame} \begin{enumerate} \onslide<1->{% \item test1 } \onslide<2->{% \item test2 } \end{enumerate} \end{frame} \begin{frame}[label=current] test3 \end{frame} \end{document} The error message: ...

4

Using multicol package: Code: \documentclass{article} \usepackage[landscape,margin=2cm]{geometry} \usepackage{multicol} \begin{document} \pagestyle{empty} \setlength{\columnsep}{35pt} \begin{multicols}{4} \small \section*{Monday} \subsection*{Work} \vspace*{-15pt}\hrulefill \begin{itemize} \item \item \item \end{itemize} ...

1

Using the lscape package , the landscape mode can be achieved. You will have to use the environment \begin{landscape} and \end{landscape}. Secondly, to put the appropriate things on a single page or the number of pages as per requirement you have you use the multicolspackage and the multicols environment having an argument of the number of columns you ...

2

This can be done with a tabular: \documentclass{article} \usepackage{array,enumitem} \newcolumntype{L}{>{\raggedright\arraybackslash}p{\dimexpr0.9\textwidth-2\tabcolsep\relax}} \begin{document} \noindent \begin{tabular}{>{\centering\arraybackslash}p{0.1\textwidth}@{}L} $M_{2} ={}$ & On input string $w$: ...

7

One option using enumitem: \documentclass{article} \usepackage{enumitem} \newlength\Separation \begin{document} \noindent $M_2={}$ `On input string \settowidth\Separation{$M_2={}$ } \begin{enumerate}[ nolistsep, label=\textbf{\arabic*.}, leftmargin=\dimexpr\labelwidth-\labelsep+\Separation\relax ] \item First. \item Third. \item Second.'' ...

1

4

This one is based on Werner's idea but works only when hyperref is loaded. \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \makeatletter \newcommand{\mylabel}[2]{% \phantomsection#1% \@bsphack \begingroup \def\label@name{#2}% \label@hook \protected@write\@auxout{}{% \string\newlabel{#2}{% {#1}% ...

11

Here is one way: create your own \mylabel, that mimics the regular \label. The following is a hyperref-compatible version: \documentclass{article} \usepackage{amsmath,hyperref}% http://ctan.org/pkg/{amsmath,hyperref} \providecommand{\phantomsection}{}% In case hyperref is not loaded \AtBeginDocument{\let\textlabel\label}% ...

1

You can solve this problem putting some words before \begin{enumerate} or putting \noindent command before the same environment. Solution 1: \documentclass{scrartcl} \usepackage[latin1]{inputenc} \usepackage{lipsum} \author{{\scshape I am Author}} \title{This Is My Title} \begin{document} \maketitle \begin{abstract} Some words \begin{enumerate} ...

2

I imported a stealth arrow head from mathabx because I thought it looked better than the computer modern version. The parameters \def\arrowlength{3cm} and \def\bulletskip{0.5cm} may be reset to suit. \documentclass{article} % Setup the matha font (from mathabx.sty) \DeclareFontFamily{U}{matha}{\hyphenchar\font45} \DeclareFontShape{U}{matha}{m}{n}{ ...

9

TeX provides a \rightarrowfill command that does just this. It's a standard part of plain TeX and LaTeX. \documentclass{article} \newcommand{\abox}[2]{\makebox[#1][l]{#2 \rightarrowfill}} \begin{document} \begin{itemize} \item \abox{1in}{Item 1} Explanation 1 \item \abox{1in}{Item 2} Explanation 2 \item \abox{1in}{Item 3} Explanation 3 ...

4

One possibility: \documentclass{article} \usepackage{amsmath} \newlength\BoxWd \newlength\TextWd \newlength\ArrowWd \setlength\BoxWd{9em} \newcommand\MyItem[2]{% \settowidth\TextWd{#1}% \setlength\ArrowWd{\dimexpr\BoxWd-\TextWd\relax}% \makebox[\dimexpr\BoxWd+1em\relax][l]{% #1$\xrightarrow{\hspace*{\ArrowWd}}$% ...

4

It can be solved by putting a \noindent command before the list. \noindent\begin{enumerate} ...

Top 50 recent answers are included