Tag Info

New answers tagged

1

What about changing the itemize environment for a enumerate one. Then we personalize this particular environment just to not interfere with other enumerate environtments. Just like this: \documentclass{article} \usepackage{amsthm} \usepackage{enumitem} \newtheorem{proposition}{Proposition} \begin{document} \begin{proposition} An elliptic curve given by ...


2

You should use enumitem: \documentclass{article} \usepackage{amsthm} \usepackage{enumitem} \newtheorem{proposition}{Proposition} \newenvironment{conditions}[1][\alph] {\begin{enumerate}[label=\upshape(#1*)]} {\end{enumerate}} \begin{document} \begin{proposition} An elliptic curve given by a Weierstrass equation \begin{conditions} \item is nonsingular ...


1

How about this? \documentclass{article} \usepackage{amsthm} \newtheorem{proposition}{Proposition} \begin{document} \begin{proposition} An elliptic curve given by a Weierstrass equation \begin{enumerate} \renewcommand\labelenumi{\normalfont(\alph{enumi})} \item is nonsingular iff $\Delta_E\neq0$. \item has a node iff $\Delta_E=0$ and $c_4\neq0$. \item has a ...


3

This is a simple solution which doesn't require knowing the lengths used; entries in a list are typeset using \l@<type>, so you can simply \let the new entry to be the one for figures, for example, and this can be done simply by: \makeatletter \let\l@myequations\l@figure \makeatother This has another advantage: if an eventual change is made to the ...


4

The question about the indent was already solved by Ian Thompson (he was a little bit quicker than me ;-)), so please do not accept my version, since he was first. I post my solution anyway, where I slightly redefined the equation environment for an optional argument and automatically adding the toc entry, so there is no need for \myequations{} manually. ...


4

According to the tocloft package documentation, entries in the list of tables are indented by 1.5em. Hence, after declaring your new list for equations, you need \setlength\cftmyequationsindent{1.5em}


0

Here is some investigative work, revealed via the addition of \showoutput to your preamble: \documentclass{article} \usepackage{amsthm} \newtheorem{claim}{Claim} \showoutput \begin{document} Problem: \begin{enumerate} \item First part of problem \item Second part of problem \end{enumerate} Solution: \begin{enumerate} \item First part of ...


1

Here is a workaround that seems to work. Simply replace \usepackage{amsthm} with \usepackage[amsthm]{ntheorem}. This avoids the extra linebreak.


2

As suggested by @Andrew, it's much simpler to define a claim environment as a special description environment, with the enumitem package. Here is a way to go. Actually I also define a claims environment, for a series of such ‘claims’. It has a counter, and so can be referenced intelligently through the cleveref package. I reset this counter per section, ...


2

You can do this using the atbegshi package, together with an \if... statement where you set the \if... equal to true at the start of the option and then to false at the end using \setlist. Here's a MWE. I have used the same continuation message that you used above. \documentclass{book} \usepackage{enumitem} \usepackage{atbegshi} ...


2

This is the recommendation given in the AMS author FAQ: \begin{theorem} \hangindent\leftmargini \textup{(1)}\hskip\labelsep First item. \begin{enumerate} \setcounter{enumi}{1} \item ... If the environment is itemize rather than enumerate, replace the first line by $\bullet$\hskip\labelsep First item. If the first item has multiple paragraphs, simulate ...


5

\include records the current value of enumi (3 here) but not that enumitem resume wants to use it, adding a couple of lines to the end of the included (or not included) file fixes that. If you process the entire file then uncomment the \includeonly you will get a one page document numbered page 2 with the enumeration numbered 4,5,6. \documentclass{article} ...


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

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



Top 50 recent answers are included