TeX - LaTeX Asked by Tolaso on May 7, 2021
I’m interesting in automatically continuing the enumeration in my document. Take a look at the following MWE.
%compile with XeLaTeX
documentclass[12pt]{memoir}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage[shortlabels]{enumitem}
usepackage{lipsum}
begin{document}
begin{flushleft}
lipsum[1]
begin{enumerate}[label=textbf{arabic*.}]
item This is the first item
item This is the second item
item ....
end{enumerate}
lipsum[2]
begin{enumerate}[label=textbf{arabic*.}, start=4]
item This is the fourth item
item This is the fifth item
end{enumerate}
lipsum[3]
end{flushleft}
end{document}
Is it possible when I start the second enumeration to somehow tell LaTeX to start exactly where the previous enumeration ended instead of typing start=4 for example?
This is why the enumitem
package offers the resume
option. The option resume*
keeps also the label definition (thanks to @daleif for the amendment).
documentclass{memoir}
usepackage[shortlabels]{enumitem}
usepackage{lipsum}
begin{document}
lipsum[1]
begin{enumerate}[label=textbf{arabic*.}]
item This is the first item
item This is the second item
end{enumerate}
lipsum[2]
begin{enumerate}[resume*]
item This is the fourth item
item This is the fifth item
end{enumerate}
lipsum[3]
end{document}
Correct answer by gernot on May 7, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP