# Tag Info

0

An alternative to this approach, which facilitates the production of nested lists is the outlines package. To produce a bulleted list with three levels it is as simple as \documentclass{article} \usepackage{outlines} \begin{document} \begin{outline} \1 Top level item \2 Sub item \3 sub sub item \end{outline} \end{document} To make a numbered list ...

2

Here are 3 possibilities: \documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{enumitem} \begin{document} \noindent Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text \begin{enumerate} [label=Step ...

3

Unclear, what is meant really, I applied leftmargin=* here: \documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{enumitem} \begin{document} \noindent Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text ...

0

For completeness I add the \usepackage[flushleft]{threeparttable} and the \begin{threeparttable} environment, to add table notes: \documentclass[12pt]{report} \usepackage[left=35mm, right=25mm, top=30mm, bottom=30mm]{geometry} \usepackage{booktabs,tabularx} \usepackage{siunitx} \usepackage[flushleft]{threeparttable} \begin{document} ...

3

See, if the following code gives what you expect: \documentclass[12pt]{report} \usepackage[left=35mm, right=25mm, top=30mm, bottom=30mm]{geometry} \usepackage{booktabs,tabularx} \usepackage{siunitx} \begin{document} \begin{table}[htbp] \centering \caption{Systematic review of type 2 vs. type 1 diabetic pregnancies: maternal and fetal secondary ...

0

I have been confronted with the same error. In my situation, when I use the classic style, there is no problem, but when I change the style to banking or casual, there generate a error with the following prompt: ! LaTeX Error: Something's wrong--perhaps a missing \item. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for ...

1

The checkbox names, in this case, are given by test1, test2 and test3. \documentclass[11pt, letterpaper]{article} \usepackage{enumitem} \usepackage{hyperref} \begin{document} \begin{Form} \begin{enumerate}[label = {\CheckBox[name=test\theenumi]{}} \arabic*:] \item Some item 1 \begin{enumerate}[label = (\arabic*)] \item Some subitem ...

3

You can disable the spacing with the nosep option from enumitem. I add also some ways to improve your table, for instance how to make it into filling the whole text width without guessing. Note that the center environment should not be used; also it's better if the \label sits next to the \caption, for easier lookup. I recommend using siunitx for units and ...

1

Here is a quick try with Tikz: \documentclass{standalone} \usepackage{tikz} \newenvironment{itemizewithline}[3]{% \newcommand{\itemwithline}[1]{% \begin{tikzpicture} \node (box){% \begin{minipage}{\textwidth} \item ##1 \end{minipage} }; ...

1

I suggest defining a special environment for this application, which gives you more freedom for choosing what to show. \documentclass[10pt, letterpaper]{article} \usepackage{enumitem} \usepackage{environ} \makeatletter \newenvironment{overview}[1] {\begin{enumerate}\relax \ifnum#1=0 \let\do@suboverview\@gobble \else ...

1

Here is a solution (a trick) \documentclass[10pt, letterpaper]{article} \usepackage{enumitem} \usepackage{etoolbox} \newcounter{mt} \BeforeBeginEnvironment{enumerate}{\stepcounter{mt}\setbox\themt\vbox\bgroup} \AfterEndEnvironment{enumerate}{\egroup\ifnum\value{mt}=1\unvbox1\fi\addtocounter{mt}{-1}} \begin{document} \begin{enumerate} \item Overview ...

2

An intermediate version with automatic \item usage and the \toplevel* command wrapper, that ignores \sublevel commands then. \documentclass{article} \usepackage{environ} \usepackage{enumitem} \usepackage{xparse} \newif\ifsublevels \sublevelstrue \ExplSyntaxOn \NewDocumentCommand{\sublevel}{m}{% \ifsublevels \seq_set_from_clist:Nn \l_tmpa_seq {#1} ...

2

The internal \theH<counter> is already explained by Christian Hupfer's answer. The answer also shows, how to fix it in a general way. In this case, there is an alternative way. hyperref refines \@addtoreset, which is used by \counterwithin and \numberwithin to support \theH<counter>. However, if these commands are used before hyperref is loaded, ...

0

It is possible by putting the wrapfigure into a parbox or minipage as is mentioned in some of the duplicates of this question. However those methods usually fix vertical spacing issues by manually inserting \vspace with hand picked values. This solution works automatically by using a strut. The strut places the baseline of the first text line at a specified ...

4


2

The enumeration is strange here, therefore I use a new list named strangenumerate Since label*= cannot be applied here for the deeper nested levels (it prints a ), there are some other strategies: Make a conditional on the level of nesting and change the label according to this Refer directly to the counter of the current level, i.e. strangenumeratei ...

0

Here is a working solution. After the first run things aren't aligned. The second time through they are. \documentclass[11pt]{article} \usepackage{enumitem,lipsum,atbegshi,ifthen} \parindent=0pt \IfFileExists{\jobname .ali}{\input{\jobname .ali}}{} \newwrite\AlignmentOutput \immediate\openout\AlignmentOutput=\jobname .ali \newlength\LatestWidth ...

3

With version 0.11 of tasks it is possible to say item-format=\ensuremath: \documentclass{article} \usepackage{tasks}[2016/05/03] % v0.11 \begin{document} This is some text. \begin{tasks}[item-format=\ensuremath] \task x + y = z \task e^{i\pi} + 1 = 0 \end{tasks} This is some text. \begin{tasks}[style=enumerate,item-format=\ensuremath] \task x + y = z ...

1

\documentclass{article} \usepackage{kantlipsum} \begin{document} \kant[1] \begin{itemize} \item first \hrulefill \item second \end{itemize} \end{document}

2

Instead of juggling with \addtocounter{enumi} etc it's better to use enumitem and it's start=... option. The \getrefnumber{...} macro from refcount provides an aid to get the real 'number' of an reference -- \ref isn't expandable and will fail here. Please note: \getrefnumber{...} will yield anything as equation number here, i.e. something 1.A.5 would be ...

2

You can create a command that acts like \item[description title]: \newcommand\descitem[1]{\item{\bfseries #1}\\} You can remove the \\ if you don’t want a line break. The style of the title is easy to change. Your enumerate environment will look like: \begin{enumerate} \descitem{Apples} Apples are red, and contain iron. \descitem{Bananas} Bananas ...

7

Here's a LuaLaTeX-based solution, which works with both enumerate and itemize environments. It does not actually modify the enumerate and itemize environments, it doesn't modify the \item macro, and it doesn't require the use of a new macro called, say, \mathitem. How does the solution work, then? It takes a preprocessor approach: It sets up a Lua function ...

14

Here's a enumitem way and a patch that starts $$after item and ends$$ before \item or at the end of the environment, checking with \ifmmode whether we are in math mode or not. Note: \item[...] is not catched here! -- Since the patch is inside the environment group, all other \item definitions in other environments are not changed. It's possible to jump ...

7

You can create a command like \mathitem that you would use in place of \item when you want that the current item contains only math: \newcommand\mathitem[1]{\item $#1$} Your lists will look like this: \begin{itemize} \mathitem{1+1=2} \mathitem{e^{i\pi}+1=0} \end{itemize}

1

First, the body of \foreach is in a group so the effect of local commands is restricted to a single iteration. What it means for your first example is that \toggletrue/\togglefalse only have an effect within the same iteration. To fix this, as suggested in the etoolbox manual, you can prefix them with \global which extends their effect beyond groups: ...

Top 50 recent answers are included