Tag Info

New answers tagged

3

Much simpler use of enumitem: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[shortlabels]{enumitem} \usepackage{lipsum} \begin{document} \begin{enumerate}[(1),wide, nosep] \item \lipsum[1] \item \lipsum[2] \item \lipsum[3] \end{enumerate} \end{document}


0

If you want the ability to turn on and off, here is the enumpars environment, using the technique of David at Why does \everypar not work? \documentclass{article} \usepackage{lipsum} \newcounter{parcount} \let\oldep\everypar% \newenvironment{enumpars} {\newtoks\everypar% \setcounter{parcount}{0}% \oldep{\the\everypar\stepcounter{parcount}(\theparcount)\ }% ...


3

It's easy with enumitem. \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \begin{enumerate}[leftmargin=0cm,itemindent=2\parindent,noitemsep,label=(\arabic*)] \item \lipsum[1] \item \lipsum[1] \item \lipsum[1] \end{enumerate} \end{document}


2

\documentclass{article} \usepackage{lipsum} \begin{document} \everypar{\refstepcounter{enumi}(\theenumi) } \lipsum[1] \lipsum[1] \lipsum[1] \end{document}


3

With your code you get a warning like LaTeX Warning: cref reference format for label type `exerciseii' undefined on input line 24. so you need to provide definitions for exerciseii; also, you need to prepend the exercisei counter for cross referencing, instead of enumi; something like ref=\arabic{exercisei}(\alph*) A complete example: ...


4

Here's a rather hacky way to achieve your desired output: \documentclass{article} \usepackage{enumitem} \newcounter{descriptcount} \newlist{enumdescript}{description}{2} \setlist[enumdescript,1]{% before={\setcounter{descriptcount}{0}% \renewcommand*\thedescriptcount{\arabic{descriptcount}}} ,font= ...


0

try this code \documentclass{article}[12pt,a4paper] \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \makeatletter \newcounter{descriptcount} \newenvironment{questionsandanswers}{\list{}{% \labelwidth0pt\itemindent-\leftmargin \let\makelabel\qudescriptionlabel} \def\item[##1]{% \@inmatherr\item ...


2

As there remains some problems with the placement of labels, I propose a variant that looks more like the image in the O.P.'s post. I replaced amsthm with ntheorem, which has a break theorem style and writes the optional argument of theorems in boldface if \theoremname is boldface. Loading mathdesign did nothing, as no font was chosen as an option. I added ...


1

Without further information this is a starter...(I've not done the theorem environment around the enumeration) The enumitem package is the key for easy customization of itemize/enumerate lists. It provides the means for use a starter value (start=0) and the label=.... option. enumitem can be used together or as enumerate using the shortlabels option. ...


3

You would use \setlist[mylist]{label=\textbullet,topsep=1ex,itemsep=1em,partopsep=.5ex,...} (no \setlength macros) and whatever you can find in the horizontal/vertical list spacing elements of enumitem.


5

The bidi package offers the RTLitems environment for this: \documentclass{book} \usepackage{xcolor} \usepackage{setspace} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \usepackage{pifont} \usepackage{enumitem} \newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Scheherazade} \begin{document} Some latin ...


4

First of all, to obtain centered titles don't do things like \subsection*{\centering{Not too funky situation in my actual document}} but load the package sectsty and issue \allsectionsfont{\centering} Then, to achieve what you want, first of all, change your \setlist to \setlist[itemize]{noitemsep, topsep=0pt, ...


4

Add before={\vspace*{-\baselineskip}} to your itemize options: \setlist[itemize]{noitemsep, topsep=0pt, before={\vspace*{-\baselineskip}}} MWE: \documentclass{article} % insert vertical space between paragraphs \setlength{\parskip}{\baselineskip} % Modifies itemized lists with enumitem http://www.ctan.org/pkg/enumitem \usepackage{enumitem} ...


4

Here's one possibility adaption the answer linked in the question to the beamer settings: \documentclass{beamer} \usetheme{Warsaw} \makeatletter \def\Mdescription#1{% \advance\beamer@descdefault by \labelsep% \list {} {\labelwidth\beamer@descdefault% \leftmargin\beamer@descdefault% \let\makelabel\beamer@descriptionitem ...


2

Here is a way to do it. I think, however, a list inside a wide list should have its label aligned with the label of the wide, not with the label of a ‘general’ first level list, as the latter is slightly shifted to the left of a paragraph indent (~ 2.5-3pt), which doesn't lok too good, in my opinion. Demo: \documentclass{scrartcl} ...


4

See the enumitem package documentation for more information in terms of list adjustments: \documentclass{article} \usepackage{enumitem} \newlist{outernum}{enumerate}{1} \newlist{innernum}{enumerate}{1} \setlist[outernum]{label={\Roman*},labelsep=0pt,itemindent=0pt,align=right,labelwidth=0pt,leftmargin=*} ...


5

You don't want to abuse the optional argument to \item; better defining a \nextitem command: \documentclass{article} \makeatletter \newcommand\nextitem[1]{% \setcounter{\@enumctr}{#1}% \addtocounter{\@enumctr}{-1}% } \makeatother \begin{document} \begin{enumerate} \item First \item Second \nextitem{8} \item Eighth! \item Ninth! \nextitem{4} \item ...


3

\documentclass{scrartcl} \usepackage{enumitem} \usepackage{etoolbox,xparse} \AtBeginEnvironment{enumerate} {\let\originalitem\item \RenewDocumentCommand\item{o}{\IfValueTF{#1} {\setcounter{enumi}{\numexpr#1-1\relax}\originalitem}{\originalitem}}} \begin{document} Good: \begin{enumerate} \item First \item Second \item[8] Eighth! \item ...


5

The code: \documentclass[]{article} \usepackage{amsmath} \usepackage{chngcntr} \usepackage{enumitem} \setlist[enumerate,1]{before=\renewcommand\theequation{\theenumi.\arabic{equation}} } \counterwithin{equation}{enumi} \begin{document} \begin{enumerate} \item Label these (1.1), (1.2) \begin{equation} x = 3 \end{equation} ...



Top 50 recent answers are included