Tag Info

New answers tagged

2

What you want is, I believe, \addvspace. The problem with \par can be tackled with a group. \documentclass{article} \makeatletter \newcounter{aelistcnt} \newcommand\alist{\ae@list} \def\ae@list{%% \refstepcounter{aelistcnt}%% \par \addvspace{2ex plus 0pt minus 2ex}% \begingroup \let\ae@@par\par \def\par{\ae@par}% \parshape 1 2em ...


5

It seems to be a precise choice: a list that starts in places such as the beginning of a theorem, that is, when a paragraph has not yet been started and LaTeX is in a “suspended state” because of possible \label commands, the \if@noparlist conditional is set to true. The definition of \endtrivlist, which is responsible for adding the final space, adds ...


3

You have relevant keys in enumitem itself: nosep or noitemsep. Also, instead of adding horizontal space between label and item body for each item, set labelsep in the options. Last, I replaced TeX syntax ({\it…}) with LaTeX syntax (\emph{…}). Final advice: you should make your definition a theorem-like environment: formatting (boldface) could be ...


1

A possible solution is use of \vspace{-xxpt} right before \item. Code \documentclass[xcolor=x11names,compress]{beamer} \usepackage{graphicx} \usepackage{tikz} \usepackage{enumitem} \begin{document} Before: \textbf{Definition 1.1} A {\it{design}} is a pair $(X,\mathcal{A})$ iff: ...


0

\setlist{nolistsep} can reduce a little bit. Probably need to go through the package manual.


0

Would some workaround like this work? \documentclass[xcolor=dvipsnames,10pt]{beamer} \usetheme{Luebeck} \usecolortheme[named=NavyBlue]{structure} \setbeamertemplate{footline}[frame number] \beamertemplatetransparentcovereddynamic \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...


0

I'm starting to think that the best solution is the approach described in @lockstep's answer to the original question (How to prevent a page break before an itemize list?). To summarize: the environments like itemize and enumerate automatically put \@beginparpenalty between the list and previous paragrapth, \@itempenalty between the items, and ...


1

\documentclass[12pt, a4paper]{article} \usepackage{blindtext} \begin{document} \blindtext[3] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobor- tis facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi nec ante. Donec ullamcorper, felis non sodales commodo, lec- tus velit ultrices augue, a dignissim nibh ...


1

Well, with the lack of judgement of a mere user: \documentclass[12pt, a4paper]{article} \makeatletter \newcommand*{\NoBreakPar}{\vspace{\baselineskip}\par\nobreak\@afterheading} \makeatother \begin{document} Let's see the following list:\NoBreakPar \begin{itemize} \item First. \item Second. \item Third. \end{itemize} ...


3

Perhaps something like this: \documentclass{article} \usepackage{enumitem, kantlipsum} \setlist[enumerate]{wide, labelwidth=\parindent} \setlist[enumerate,1]{labelindent=0pt, labelwidth=\parindent, label=\arabic*.} \setlist[enumerate,2]{wide=.825cm, label=\alph*.} \setlist[enumerate,3]{wide=1.25cm, label=(\arabic*)} \begin{document} \kant[6] ...


3

I traced down the problem to the \RL commands in the sentence \noindent Si anteponemos \RL{ا}, \RL{مَا}, o \RL{مَنْ} a \RL{هَذَا} , se convierte en una pregunta: Grouping those commands, as in \noindent Si anteponemos {\RL{ا}}, {\RL{مَا}}, o {\RL{مَنْ}} a {\RL{هَذَا}} , se convierte en una pregunta: solves the problem: ...


4

This is straight-forward with enumitem: \documentclass{article} \usepackage{enumitem}% http://ctan.org/pkg/enumitem \newlist{numbered}{enumerate}{2} \setlist[numbered]{label={\arabic*)}} \begin{document} \begin{numbered} \item First \item Second \begin{numbered} \item Sub-first \item Sub-second \item Sub-third ...


2

If I understand your question I believe you require \subitem here is a minimal code to see if it is what you would desire. \begin{document} \begin{enumerate} \item Normal \item Normal \subitem Indented \subitem Indented \subitem Indented \item Back to normal \end{enumerate} \end{document} This gives


4

The easylist package uses catcode tricks, which don't work properly with beamer's usual frame processing code. (Same as verbatim.) To fix this (but slow down the output slightly), write \begin{frame}[fragile]{...} instead. Fixing the original example for typos and simplifying it a bit: \documentclass{beamer} \usepackage[at]{easylist} \begin{document} ...


1

This is a solution using the enumitem package instead of paralist. Its wide option is made for that: \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{enumitem} \begin{document} Here’s a compact itemize environment with bullets aligned with the left margin: \noindent ...


5

Here is a solution that uses the enumitem package: it has resume optional parameter and a series notion for enumerate environments. So I define a quest series, and an inform series, that are formatted so that the inform series leftmargin is exactly where labels of the quest series begin. The information could be made of several paragraphs. I don't know if ...


3

This can be done by cleveref and with its \cref/\Cref macros. \documentclass[letterpaper,12pt]{article} \usepackage{graphicx} \usepackage[listformat=simple]{caption} \DeclareCaptionType[name=Scheme,within=section]{scheme} \usepackage{cleveref} \crefname{scheme}{scheme}{schemes} \Crefname{scheme}{Scheme}{Schemes} \begin{document} \tableofcontents ...


2

I assume you're not really interested in an overlay specification. Then you can define a \Witem and \Fitem to draw the blocks you're after: \documentclass{beamer} \newcommand{\Witem}{% \refstepcounter{enumi}% Step enumerate counter \item[{\framebox[1.5em]{W}\hspace{2ex}\theenumi}.]} \newcommand{\Fitem}{% \refstepcounter{enumi}% Step enumerate ...


0

If you redefine \labelenumi, you should use the enumerate environment instead of itemize, since \labelenumi is called by \item within an enumerate environment, not by itemize - \item commands. If you explicitly want an unnumbered list, you should use \labelitemi, which gives the better output, in my point of view, since the enumerate box a) does not look ...


1

Your example probably doesn't say the truth about your document. I guess (as egreg in his comment) that in your document you don't have the two chars f + i but the fi glyph and this would disappear as you are using the default font encoding OT1, and this encoding doesn't have glyphs on every position. Copy this here in an utf8-encoded file and compile: ...


2

I'm not sure setting the acronyms in italics is the right thing to do. However, your problem stems from the fact that, in the list, the acronyms are by default printed in sans serif bold type and the standard sans serif font family (Computer Modern Sans) has no italic/slanted version. Indeed you get the warning LaTeX Font Warning: Font shape ...


1

When I compiled this in TeXLive, I got this warning: LaTeX Font Warning: Font shape `OT1/cmss/bx/it' undefined (Font) using `OT1/cmss/bx/n' instead on input line 14. I inserted \usepackage{txfonts}, which made the warning go away, and the acronym was then in italics. If you got that warning, that's the problem. Your font isn't versatile ...



Top 50 recent answers are included