# Tag Info

4

Get rid of all your \item overlay specifications and simply pass <+(1)-> as optional argument to the two inner itemize environments: \begin{itemise}[<+(1)->]. The 1 acts as an offset here; it delays the appearance of the first item by one slide. See subsubsection 9.6.4 in the beamer manual for more details. \documentclass{beamer} ...

1

some what similar question had been asked before: Vertical space in lists a possible idea could be if you want to use enumerate: \documentclass[12pt]{report} \usepackage{paralist} \let\itemize\compactitem \let\enditemize\endcompactitem \let\enumerate\compactenum \let\endenumerate\endcompactenum \let\description\compactdesc ...

1

This is easiest to do with the enumitem package. You can either specify topsep=0pt or probably better nosep which will also reduce the vertical spacing between items: \documentclass{article} \usepackage[shortlabels]{enumitem} \begin{document} This is first line and i need to remove space between this line and item list below it. ...

9

With powerful enumitem \documentclass{article} \usepackage{enumitem} \begin{document} \begin{itemize}[label=-] \item Physics \item Chemistry \item Mathematics \end{itemize} \end{document} Without any package \documentclass{article} \begin{document} \begin{itemize} \renewcommand\labelitemi{-} \item Physics \item Chemistry \item Mathematics ...

5

\documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate}[-] \item test \item test 2 \end{enumerate} \end{document}

4

According to the author of the Spanish version of babel lower case roman numerals should not be used when writing in Spanish. You can find more information about this issue in this blog (in Spanish) and in the babel-spanish manual at page 4 (again, in Spanish). Lower case roman numerals can be restored via the es-lcroman option, which is documented at ...

2

For the rotated labels, I used a combination of spaces and \llap. For the justification, I invoked \raggedright for each itemize environment. \documentclass[a4paper,11pt]{article} \usepackage{a4wide} \usepackage{enumitem} \usepackage{array} \usepackage{rotating} \begin{document} \begin{table}[h!] \begin{center} \footnotesize \begin{tabular}{|l|l|l|l|l|} ...

4

itemize inside tabular is allowed, but properly used. In the following there are two examples of usage, with different outputs. \documentclass{article} \begin{document} %\begin{tabular}{ll} \begin{tabular}{lp{8cm}} 560 v. Chr. & \begin{itemize} \item erster Eintrag \item zweiter Eintrag ...

6

I think this is a bug in IEEEtran.cls in the macro \IEEEPARstart. You can get around it by putting a blank line after \end{enumerate} and putting \noindent at the start of the following paragraph. The problem comes down to the two parameters \hangindent and \hangafter. These are given values that allow the large T to fit into the two-line indentation in ...

8

The culprit is the \IEEEPARstart. Despite what the style file says this has not been fixed to allow direct inclusion of environments in the initial paragraph. To work around this you can just make sure there is a \par before your enumerate. Here is the same text first time without \par, second time with: \documentclass[journal]{IEEEtran} ...

0

The syntax to create a new environment is \newenvironment{<name>}{<begin-doce>}{<end-code>} What you want cane achieved as \newenvironment{myitemize} {\begin{itemize}\item} {\end{itemize}} I suggest to load enumitem package. It has feature to create series, to suspend continue numeration from different list environments, and to ...

0

Using enumitem, you also can have a slightly different layout, where the label of the first item (Example •) is centered with respect to the bullets of the following items, which looks better in my opinion. Here's the result: \documentclass[11pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{enumitem} ...

7

You can do it, but I wouldn't recommend it. Look at the result and judge for yourself. \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} % just for the example \newlength{\jeroenlen} \newenvironment{example} {\settowidth{\jeroenlen}{\textbf{Example:}}% \begin{description}[leftmargin=\jeroenlen,labelwidth=0pt,labelsep=0pt] ...

3

\documentclass{article} \newenvironment{example} {\textbf{Example:}\begin{minipage}[t]{0.8\linewidth}\begin{itemize}} {\end{itemize}\end{minipage}} \begin{document} \begin{example} \item These are first examples. \item Second examples. \item And more. \end{example} \end{document}

2

For your first requirement, use \setlist[itemize]{rightmargin=\widthof{\textbf{YYYY}}} for a global adjustment of itemize or, locally, use \begin{itemize}[rightmargin=\widthof{\textbf{YYYY}}] The above requires the calc package, which provides \widthof{..}. The second adjustment is obtained by setting a regular itemize with an empty \item[]. ...

0

I am not sure why the 2nd level of itemized nesting is throwing the error, however, here are a couple of options that work, depending on your preference.... Option 1: If the impetus to using draft option is mainly to do with images, and saving compilation time when rendering images, then you can force the listings to display in final mode ALWAYS via the ...

2

I've solved it programatically by following Dan's suggestion of having the description set a macro \indesc indicating it's active, and having the itemize apply the fix if it's true. The itemize then resets \indesc globally to prevent the fix from being applied to subsequent lists within the description. The only caveat I can see is if the description text ...

6

Here is a solution to your problem, I think. This is quite an awful looking format. The tricky part is getting the indent of the first item of an embedded second level list. This bit of hackery (appropriately called \trickindent) is due to egreg. \documentclass{article} \usepackage{enumitem} \usepackage{kantlipsum} ...

9

Please always post complete documents, not just fragments. TeX is in vertical mode at that point, so you can do: \documentclass{article} \newcommand\wufen{\ifvmode W\else w\fi ufen} \begin{document} \begin{enumerate} \item \wufen\ something something \item Something \wufen\ something... \end{enumerate} \end{document}

3


5

No better ideas at the moment... You can add \setlist[itemize]{before=\vspace*{-1.5\baselineskip}} in the preamble. Beware that this will affect all itemize environments... Complete code: \documentclass{article} \usepackage{enumitem} \setlist[description]{style=nextline} \setlist[itemize]{before=\vspace*{-1.5\baselineskip}} \begin{document} ...

3

This will work only for short labels. \documentclass{article} \usepackage{enumitem,showframe} \SetLabelAlign{parright}{\parbox{\labelwidth}{\makebox[0pt][r]{#1\hspace{1em}}}} \newlist{mydescription}{description}{1} \setlist[mydescription,1]{style=multiline,topsep=10pt,leftmargin=*,labelsep=0pt,font=\color{blue}\normalfont,% align=parright} ...

8

As mentioned by percusse, this is easy with the package enumitem. Code \documentclass{article} \usepackage{enumitem} \setlist[description]{font=\ttfamily,leftmargin=2cm,style=nextline} \begin{document} \begin{description} \item[exception unhandled] An exception that was raised but it is not handled by the program. \item[assert] A failed Ada ...

3

\labelenumi and similars only change how the label is presented. In order to change the actual representation of the counter (which is referenced by the \label and \ref commands), you need to replace your \labelenumi and \labelenumii with \theenumi and \theenumii respectively in your custom environment. Just changing those right after the ...

0

I took the definition of the itemize environment and modified it to my liking. The incorporated \list avoids creating any bullet at all with an empty first parameter and the current margin is set to a fixed width. \documentclass{beamer} \makeatletter % This is itemize, stolen from beamer/base/beamerbaselocalstructure.sty % but stripped from the bullets and ...

5

If you want a list of bullets but have some of the un-bulleted items not indented as far as the regular ones, you need to manually push them back using a negative indent. If you want an entire list to not have bullets and not have as big an indent, then you can set the appropriate beamer template for that (possibly nested) list, as well as the list margin. ...

5

To start a new list item you should use the \item command within one of the list environments (itemize, enumerate, description), not \list. So try \begin{enumerate} \item First points \item Second \item Etc. \end{enumerate}

6

If you use the enumitem package, you can pass the option [inline]. Doing this enables starred environments corresponding to the regular ones which produce inline lists (\begin{enumerate*}, \begin{itemize*} etc.): \documentclass{article} \usepackage[inline]{enumitem} \begin{document} Text before list. \begin{enumerate*}[label=(\roman*)] \item My first in ...

14

The enumitem package has an inline option which implements inline versions of the standard lists using starred versions of the basic list environments. As with other enumitem lists, labels and (horizontal) spacing can be set with key values as well as custom settings for the elements between the list items (typically punctuation). \documentclass{article} ...

7

The Solution Use paralist for the purpose of making horizontal list. At allows you to make lists which can be used within paragraphs. Use inparaenum environment for such a list. The Code \documentclass{article} \usepackage{paralist} \begin{document} Text before list. \begin{inparaenum} \item My first in list. \item My second in list. ...

7

In my opinion the argument to \myenv should be optional, so if it's not expressed it's taken to be one. However, the error is in the \end part, where \ifx\@firstoftwo is wrong. Also using \@tempa is wrong, because it turns out it is used by multicol, so it changes value before the \end part is evaluated. \documentclass{article} \usepackage{enumitem} ...

2

Using a description list instead works, and also saves you having to explicitly make the label bold: \documentclass{article} \usepackage{pxfonts} \usepackage{paralist} \begin{document} \noindent \section{Complexity classes} Please note that the following list of complexity classes is not only important, but also contains no information about them. ...

0

It appears the solution will be the following: \documentclass{article} \usepackage{enumitem} \newenvironment{enumSpecial}{% \begin{enumerate}[noitemsep, nolistsep, leftmargin=*] } {% \end{enumerate} } \begin{document} \begin{enumSpecial} \item \dots \item \dots \end{enumSpecial} \end{document} Make a new environment is, as #egreg points out, the way ...

1

With longtabu and a variation on Harish's answer, you obtain: EDIT: edited to show compatibility with \pagebreak \documentclass{article} \usepackage[showframe]{geometry} \usepackage{array} \usepackage{tabu, longtable} \newcolumntype{D}[1]{>{\bfseries\raggedright\hangindent1.5em\arraybackslash}p{#1}} ...

4

In the file enumitem.sty one def goes like this: \def\enit@align@parleft{% \def\enit@align##1{% \nobreak \strut\smash{\parbox[t]\labelwidth{\raggedright##1}}}} In your preamble you can try removing the \smash and put the \strut inside the \parbox. The \hangindent may satisfy your requirements, but you may want some variable length. ...

5

I have no idea what SATs look like but I suspect you want something like \documentclass{article}\usepackage{enumerate} \begin{document} \begin{enumerate} \item Which of the following statements is true? \begin{center} \begin{minipage}{.4\textwidth} \begin{enumerate} [I.] \item Statement the first. \item ...

0

You can use a minipage to achieve that with minipage-s or hspace for padding. \documentclass{beamer} \setbeamertemplate{block begin}{ \vskip.75ex \begin{beamercolorbox}[leftskip=1cm,sep=.75ex]{block title}% \usebeamerfont*{block title}\insertblocktitle \end{beamercolorbox}% {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}% ...

3

You can use a tabular and define new columns to simplify your job. \newcolumntype{D}[1]{>{\bfseries\raggedright\hangindent1.5em\arraybackslash}p{#1}} \newcolumntype{E}[1]{>{\raggedright\hangindent1.5em\arraybackslash}p{#1}} Full code: \documentclass{article} \usepackage{array} ...

3

A column is essentially a minipage and one of the things minipage do when they start is reset the list depth; they are really designed for the way you are trying to nest them. In an ordinary document you can reset the list depth as follows simply by changing \@listdepth appropriately encapsulated in \makeatletter / \makeatother: \documentclass{article} ...

4

The error message too deeply nested error is removed if the description environment is used. It seems that (and I quote) "There are three predefined environments for creating lists, namely enumerate, itemize, and description. The first two can be nested to depth three". This comment pushes me to use 'description' and it does work. Please check page 111-114 ...

2

You can use a tabular-environment or alignat from amsmath, or perhaps multicols. For indentation check this answer.

1

I finally solved the problem: I used the comments of Ulrike and Chris, thanks, and the package smartref to save the page number in a variable. A new command calculates the difference and writes the text: \newcount\totalfloatingpages \newcommand{\floating}[1]{ \sgetpageval{\refp}{#1_ref} \sgetpageval{\floatp}{#1} \newcount\floatingpages ...

4

I resolve the problem using \alt; \begin{itemize} \item<1-4,5>\alt<5>{point5}{point1} \item<2-4> point2 \item<3-4> point3 \item<4> point4 \end{itemize}

4

Beamer frame provides [tcb], t=top, c=center(default), b=bottom for text alignment. Since your OP did not provide such information. The text will be centered by default which is what you get in the OP. If wanting to reduce more spaces, \vspace{<negative dimension>} can be used for fine tune. \documentclass[]{beamer} \begin{document} ...

Top 50 recent answers are included