Hot answers tagged

11

No packages needed really (though enumitem is the package to tame lists). Use enumerate, which will do the numbering for you, then use \item[\textbullet] to force a bullet, \item[] to have nothing, and \item to have it numbered normally. You may want to define a shortcut to \item[\textbullet] like \newcommand\bitem{\item[\textbullet]}. \documentclass{...


5

You can use tabto: \documentclass{article} \usepackage{tabto} \begin{document} List: \begin{itemize} \item apple \tabto{10em} fruit \item cucumber \tabto{10em} vegetable \item steak \tabto{10em} meat \end{itemize} List: \begin{itemize} \item apple\tabto{10em}fruit \item cucumber\tabto{10em}vegetable \item steak\tabto{10em}meat \end{...


4

The paracol package might be a good option for you. I made a simple list that looks like your layout using enumitem. You need to remove the skips above and below the list to get equations to line up easily, but you can fiddle around with things depending on your exact set up. \documentclass{article} \usepackage{microtype} \usepackage{lipsum} \usepackage{...


4

Here, I use stackengine to achieve the underset. Optional argument determines the alignment (c by default). The following choices I made can be changed: \small under-text size, \sffamily, underset baseline 8pt below the text baseline, and the width of the anchor text determines the width of the complete stack. \documentclass{article} \usepackage[usestackEOL]...


4

You can use amsmath's \underset{<under>}{<stuff>} to set <under> below <stuff>. \documentclass{article} \usepackage{amsmath} \newlength\tmplen \newcommand{\dDGp}[1][c]{% \settowidth{\tmplen}{$\delta\Delta\Delta\Delta\Gamma_+$}% \underset{\text{\makebox[\tmplen][#1]{positive}}}{\delta\Delta\Delta\Delta\Gamma_+}} \newcommand{\...


3

I guess that you want the text below to take no space. A \vtop with a nested \halign seems a good solution. You can do \annot[l]{whatever}{something} if you want left alignment. Actually any single letter except c will do. \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\annot}[3][c]{% \leavevmode\vtop{% \offinterlineskip \...


3

Just use a table. You can match the spacing and style of lists using the appropriate parameters. \documentclass{article} \usepackage{array} \newenvironment*{tabularitemize}[1]{% \par\noindent \begin{tabular}{ @{\hskip\leftmargin\llap{\labelitemi\hskip\labelsep}} #1 }% }{% \end{tabular}\par } \begin{document} \begin{tabularitemize}{ l l } apple &...


3

This version uses \textbullet automatically in each line. \documentclass{article} \begin{document} List: \begin{trivlist}% for vertical spacing \item\begin{tabular}{@{\hbox to \leftmargini{\hfill\textbullet\hspace{\labelsep}}}ll} apple&fruit\\ cucumber&vegetable\\ steak&meat \end{tabular} \end{trivlist} \begin{itemize} \item normal itemize \end{...


3

You can get your desired result by using a tabularx environment as part of your \item. \documentclass{article} \usepackage{tabularx} \begin{document} List: \begin{itemize} \item \begin{tabularx}{\linewidth}{XX} apple & fruit \end{tabularx} \item \begin{tabularx}{\linewidth}{XX} cucumber & ...


2

The reason it works with counters and not with conditionals is that counters are acted on globally (transcending the group in which they are set in, and environments form groups). To the contrary, \newif makes the \...false and \...true commands to only act locally, so their effect ends with the group where they appear. You can fix them by hand, if you want ...


2

The template incorrectly tries to insert a dot fill between the two columns of your \ressubheading. Since this seems like a template consideration/issue that might not be necessary in your use-case, I've just removed it. Secondly, there's a use of \text that requires amsmath, which wasn't included. Instead, I've replaced that with \textsl. \documentclass{...


2

Just using \uncover<4->{} for the proof environment works for me: \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize}[<+->] \item Point One \item Point Two \item Conclusion \end{itemize} \uncover<4->{% \begin{proof} ... \end{proof}} \end{frame} \end{document}


2

You also can do that either with the listliketab package or with a standard itemize and the eqparbox package: \documentclass{article} \usepackage{listliketab} \usepackage{eqparbox} \begin{document} List: \storestyleof{itemize} \begin{listliketab} \begin{tabular}[t]{Ll@{\qquad}l } \textbullet & apple & fruit \\ \textbullet & cucumber &...


2

Here's a solution that employs the machinery of the tocloft package. I interpreted your write-up as not wanting to show the page numbers; if this interpretation is incorrect, simply omit (or comment out) the instruction \renewcommand\cftsecpagefont{\@gobble}. \documentclass{article} \usepackage{tocloft} \setcounter{tocdepth}{1} % optional \renewcommand\...


1

The following code prints the \tableofcontents as an itemized list. I've removed the numbering of the \sections by making \numberline do nothing with it's argument (the section number). Note that you'll have to manually insert sections' titles into the ToC if you're using \section* (see Adding unnumbered sections to ToC). Of course, you can update the way \...


1

Probably the following is closer to the desired output: In comparison to your original code, I used the enumitem package to define a customized enumerate-like environment for which I changed the spacing above and below as well as the left margin/indentation. In order to make the table as wide as the textwidt, I used the tabularx package. To fix the width of ...


1

For a single shot you could do this \documentclass{article} \usepackage{amssymb,tabularx} \begin{document} \noindent \begin{tabularx}{\linewidth}{@{}l|X@{}} \begin{tabular}[t]{@{}ll>{$}l<{$}@{}} $\Rightarrow$) & ipotesi: & [x]_{\mathcal{R}} \neq [y]_{\mathcal{R}} \\ & tesi: & [x]_{\mathcal{R}} \cap [y]_{\mathcal{R}} ...


1

I would do this by tcolorbox and two counters: \documentclass{article} \usepackage[showframe=false, margin=1in]{geometry} \usepackage{varwidth} \usepackage[most]{tcolorbox} \newcounter{mainno} \newcounter{subno} \newenvironment{myenumerate} {\setcounter{mainno}{0}\setcounter{subno}{0}}{} \pgfmathsetlengthmacro\mysep{4mm}% 4mm = default of ...


1

I'd use LaTeX features rather than \vbox. \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage[dvipsnames]{xcolor} \definecolor{bgcolor}{cmyk}{0,0.01,0.1,0} \usepackage{fvextra} \usepackage{enumitem} \newsavebox{\verbbgbox} \newenvironment{bgVerbatim} {% \VerbatimEnvironment \begin{lrbox}{\verbbgbox}% \begin{minipage}[t]{\linewidth}% \...


1

I have used a combination of the MWE of @Bernard and the macro of @Steven B. Segletes here to obtain different dimension of a \bullet: Is there a black 'dot' symbol that I can use?: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \newcommand{\comment}[1]{} \usepackage{graphicx,scalerel} \newcommand\fsbullet[1][.8]{\mathbin{\ThisStyle{\...


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