Tag Info

New answers tagged

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


4

You can try with align key of enumitem and define your own align key: \SetLabelAlign{myright}{strut\smash{\parbox[t]{\labelwidth}{\raggedleft#1}}} and use it as align=myright. \documentclass{article} \usepackage{enumitem,showframe} \SetLabelAlign{myright}{strut\smash{\parbox[t]{\labelwidth}{\raggedleft#1}}} \newlist{keywordlist}{description}{1} ...


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


4

Something like that? It was made using convenient options from the enumitem package, that may be set globally in the preamble: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \setlength{\parindent}{0cm} \usepackage[shortlabels]{enumitem} \usepackage{lipsum} \begin{document} \begin{enumerate}[label = Test~\arabic*.,wide = 0pt, leftmargin = ...


2

Small note: a compilable example is always preferred rather than just a snippet of code. \documentclass{scrartcl} \usepackage{etoolbox} \usepackage{enumitem} \AtBeginEnvironment{enumerate}{\usekomafont{enumerate}} \AtBeginEnvironment{itemize}{\usekomafont{itemize}} \AtBeginEnvironment{description}{\usekomafont{description}} ...


2

Use dedicated environments for both questions and solutions. This is easy by using enumitems \newlist and \setlist. This has an extra bonus: your code will have more semantic markup: \newlist{question}{enumerate}{1} \newlist{solution}{enumerate}{1} \setlist[question,solution]{label=\arabic*.} For your list of choices I'd also define a new list: ...


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


1

I just experienced the same problem (with Texlive 2013 and the IEEE template V3). But actually your linked post pretty much says all you need to solve the problem. Since the \labelindent command exists for legacy reasons in the IEEE template, you can simply "disable" it by adding the following before importing the enumitem package: \let\labelindent\relax


3

\newlist is primarily for defining new sets of enumerated/itemized lists. For instance \newlist{exampleEnumeration} \setlist[exampleEnumeration]{leftmargin=*, itemsep=2pt, parsep=0pt} would be illegal, because you must specify label (and optionally ref). If you don't specify the level, the same label will be used at all levels. So you should type, say, ...


0

I would use \setbeamercolor to change the color of beamer elements: % defining color of itemize. \setbeamercolor{itemize item}{fg=yellow} \setbeamercolor{itemize subitem}{fg=orange} % defining shape of items \setbeamertemplate{itemize item}{\usebeamercolor[fg]{itemize item}$\blacksquare$} \setbeamertemplate{itemize subitem}{\usebeamercolor[fg]{itemize ...


1

A variant of the preceding solution that ensures both text of the items being aligned, and labels being left aligned on the ambient left margin (or at a \parindent distance if you wish), and a minimally computed label width: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{fourier} \usepackage[shortlabels]{enumitem} \parindent = 1em ...


4

I'd recommend using the enumitem package the option align=left does the job: Notes: The border is from the showframe package and shows the page margins. It is not needed in your actual use case. Code: \documentclass{article} \usepackage{showframe} \usepackage{enumitem} \begin{document} \begin{enumerate}[align=left] \item[1)] First item, ...


4

Here abox with a length is defined. \def\abox#1{\leavevmode\hbox to 1cm{#1 \hfill}} % left aligned \def\abox#1{\leavevmode\hbox to 1cm{\hfill #1 \hfill}} % center ligned Code \documentclass{article} \begin{document} ----- Left aligned \def\abox#1{\leavevmode\hbox to 1cm{#1 \hfill}} \begin{enumerate} \item[\abox{$1)$}] First item, ...



Top 50 recent answers are included