Tag Info

Hot answers tagged

10

Stop and resume the enumerate: \documentclass{memoir} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{enumerate}[itemsep=-4pt] \item My first item \item My second item \end{enumerate} %%<---------------------- stop here Along with these should be mentioned: \begin{enumerate}[resume] %%<----------- resume \item ...


9

You can set the number by hand; since it's a second level list, you have to set enumii. \documentclass[14pt,a4paper,headlines=6,headinclude=true]{scrartcl} \usepackage{amsmath,amssymb,stmaryrd} \usepackage{paralist} \usepackage{tabto} \begin{document} \begin{enumerate} \item \textbf{Working with ...


7

The following example uses a combination of a modified quote environment, packages tabularx, array and booktabs: \documentclass[twocolumn, a4paper]{article} \usepackage[ columnsep=5mm, textwidth=155mm, ]{geometry} \usepackage{amsmath} \usepackage{array} \usepackage{tabularx} \usepackage{booktabs} \newenvironment{leftquote}{% \list{}{}% \item\relax ...


7

Try \obeylines. \documentclass{article} \usepackage{fontspec} \usepackage{multicol} \begin{document} \begin{multicols}{2} \obeylines JPEG JPEG2000 PDF PNG PPM TIFF XBM ZIP \end{multicols} \end{document}


5

I think you want something like \documentclass{article} \usepackage{lipsum} \setlength{\parindent}{0pt} \newenvironment{mytable}[1]{% \begin{list}{}{% \setlength{\leftmargin}{2em} \setlength{\topsep}{5pt} %desired vertical separation of table from } %surrounding text ...


5

Another version, using my assoccnt package, without the need of remembering the counter value: The contenumii counter is used to store the total value of the enumii counter automatically and stored back after inparaenum. Caveat: It will be incremented each time when another second level enumeration is used Use the \SuspendCounters feature from the ...


5

You can use start=3 with enumitem \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\alph*.,start=3] \item first \item second \item third \end{enumerate} \end{document}


4

This is heavily dependent on the LyX interface separating the first word from the rest, and making it the label. As such, it seems best to fool LyX in think you're still typing the first word by using a non-breaking space - Ctrl+Space - for setting subsequent words: Note that the lyxlist environment defined under the Labeling List uses a default label ...


4

You have to redefine \descriptionlabel, nothing that enumitem is supposed to be able to do. This is the standard definition \newcommand{\descriptionlabel}[1]{% \hspace\labelsep \upshape\bfseries #1:% } so you want to say \renewcommand{\descriptionlabel}[1]{% \hspace\labelsep \upshape\bfseries #1.% } in your document preamble. ...


4

It does execute, but makes local assignments that are discarded at \end{enumerate}, you see the same with a simple {} group, it is not connected to \item. \documentclass[a4paper, titlepage, twocolumn]{article} \usepackage{expl3} \ExplSyntaxOn \seq_new:N \myStack \begin{document} {\seq_put_right:Nn \myStack {1}} \seq_put_right:Nn \myStack {1} ...


3

You could use the paralist package and its inparaenum environment. \documentclass{exam} \usepackage{mathtools} % for 'bmatrix*' environment \usepackage{paralist} % for 'inparaenum' environment \begin{document} Determine which of the following matrices are Hermitian \bigskip \begin{inparaenum}[i)] \item $A= \begin{bmatrix*}[r] 2 & ...


3

Here is one way; using a tabular-like structure: \documentclass{beamer} \usetheme{CambridgeUS} \newcommand{\tabitem}{% \usebeamertemplate{itemize item}\hspace*{\labelsep}} \begin{document} \begin{frame}{Centering the itemize} My first try: Centering the itemize \begin{itemize} \item item1 \item item2 \end{itemize} \begin{center} ...


3

A quick and dirty trial solution, looping over a list using etoolbox macros and releasing it a specialized enumerate environment Description: \IntelligentEnumerate is a wrapper with three arguments: The first is optional, containing the label and other setups for the enumerate optional argument The first contains the list items as a comma-separated list ...


3

Almost all roads containing lists lead to enumitem. You can use enumitem to tweak the list as you want. \documentclass{amsart} \usepackage{enumitem} \setlist[enumerate,1]{label=\arabic*$^\circ$,ref=\arabic*$^\circ$} \begin{document} \begin{enumerate} \item one \item two \label{item:some} \item three \end{enumerate} \ref{item:some} ...


3

If you want numbering, you can better use enumerate. However, you can also use enumitem, ad use \begin{description}[style=unboxed,itemindent=!] if you want to stick with this. \documentclass{article} \usepackage{graphicx} %\usepackage{fontspec} \usepackage{amsmath} \usepackage{enumitem} \begin{document} {\large % This what causes the overflow, I guess ...


3

You can include this into your \myequation command. \documentclass[12pt]{article} \makeatletter \newcommand{\mylabel}[2]% #1 = label name, #2 = text for \ref {\protected@write\@auxout{}{\string\newlabel{#1}{{#2}{\thepage}}}} \makeatother \begin{document} \mylabel{eq:name}{almost anything} You can use this to reference \ref{eq:name}. \end{document}


3

Two solutions, with the cellspace package, which defines minimal vertical spacings at the top or the bottom of cells, or with makecell, which defines vertical spacings to add at the top or the bottom of cells: \documentclass{article} \usepackage{lipsum} \setlength{\parindent}{0pt} \usepackage{cellspace} \newenvironment{mytable}[1]{% \begin{list}{}{% ...


3

If you replace the lines some text\\ sdfsfdsf\\ sdfsdfdfd}\\ with (assuming you want the \textbullet in these lines as per your ascii image) \cenMultlCell{\textbullet~some text \\ \textbullet~sdfsfdsf \\ \textbullet~sdfsdfdfd\\} you get: Code: \documentclass[10pt,letterpaper]{article} \usepackage{booktabs} \usepackage{siunitx} ...


3

enumitem offers specialised ways to customise lists which was why it was recommended in this case. If you look at the documentation, you'll appreciate that the point is to abstract away from the need to use the lower level LaTeX list configuration macros. The following example shows one way. I very much doubt I have Warnock Pro so I created a MWE sans the ...


2

I am not programmer but this do what you need \documentclass{book} \usepackage{amsmath} \usepackage{siunitx} \usepackage{framed,tikz} \colorlet{shadecolor}{orange!8} \newif\ifque\quefalse \newif\ifans\ansfalse \newcommand{\sep}{\hfill\rule[0.25em]{0.5\linewidth}{.7pt}\hfill\null\newline} \newcommand{\question}{\quetrue{\bfseries Question: }} ...


2

With enumitem it is easy to add code to some list depth: \documentclass{article} \usepackage{enumitem,color} \setlist[1]{before=\huge} \setlist[2]{before=\tiny\color{red}} \begin{document} abc \begin{itemize} \item blub \begin{itemize} \item blblb \end{itemize} \item blabla \end{itemize} \end{document}


2

You need to tell TeX when to switch to maths mode. For inline maths, you can do this using $...$ or \(...\). \documentclass{article}[12pt] \usepackage{hyperref} \usepackage{enumitem} \usepackage{graphicx} \usepackage{amsmath} \usepackage[margin=0.8in,footskip=0.25in]{geometry} \newcommand{\vs}{\vspace{0.2in}} \newcommand{\ds}{\displaystyle} ...


2

Use \addtocounter{enumi}{2} \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\alph*. ] \addtocounter{enumi}{2} \item first \item second \item third \end{enumerate} \end{document}


2

You can use the enumitem package that also frees you from manually adding the separators. Note that this package is much more powerful than paralist and offers several more bells and whistles. \documentclass{article} \usepackage{mathtools} \usepackage[inline]{enumitem} \begin{document} Determine which of the following matrices are ...


2

I'm putting this as an answer, since my comment formatting gets messed up. I think you are making things too complicated, and so is the other answer. What's wrong with this? ...turpis. \begin{description} \item $y= \begin{cases} 1 & \textrm{condition for variable to be unity} \\ 0 & \textrm{condition for variable to be ...


1

Set the way the label is formatted using the before key (mentioned in the enumitem documentation (p 4)): \documentclass{amsart} \usepackage{enumitem} \begin{document} \begin{description} \item[abc] one \item[def] two \item[ghi] three \end{description} \begin{description}[before={\renewcommand\makelabel[1]{\bfseries ##1.}}] \item[abc] one ...


1

Perhaps it suffices to create a visually-equivalent ToC. Dot leaders can be achieved using \dotfill: \documentclass{article} \begin{document} \begin{itemize} \item[2.1] An example \dotfill 21 \item[2.2] A longer example like this such that the line wraps down to the next line and the last entry gets wrapped to the next line \dotfill 22 ...


1

Here is one way to incorporate \mylabel into \myequation. The \makeatletter...\makeatother is needed due to the @ symbols used in \protected@write and \@auxout. \documentclass[12pt]{report} \usepackage{tocloft} \usepackage{amsmath} \usepackage{physics} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \makeatletter ...


1

Try: \documentclass{article} \usepackage{amsmath} \usepackage[active,displaymath,tightpage]{preview} \setlength\PreviewBorder{5pt}% \begin{document} \begin{flalign*} 1. && y = & \begin{cases} 1 & \textrm{condition for variable to be unity} \\ 0 & \textrm{condition for variable to be zero} \\[+1.5mm] ...



Only top voted, non community-wiki answers of a minimum length are eligible