diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-interruptlist.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-interruptlist.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-interruptlist.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-interruptlist.html index b4f1b4132ec..e22dadd71cf 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-interruptlist.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-interruptlist.html @@ -2,12 +2,12 @@ <title>UK TeX FAQ -- question label interruptlist</title> </head><body> <h3>Interrupting enumerated lists</h3> -<p/>It’s often convenient to have commentary text, ‘outside’ the list, +<p/>It’s often convenient to have commentary text, ‘outside’ the list, between successive entries of a list. In the case of -<code>itemize</code> lists this is no problem, since there’s never +<code>itemize</code> lists this is no problem, since there’s never anything to distinguish successive items, while in the case of -<code>description</code> lists, the item labels are under the user’s -control so there’s no automatic issue of continuity. +<code>description</code> lists, the item labels are under the user’s +control so there’s no automatic issue of continuity. <p/>For <code>enumerate</code> lists, the labels are generated automatically, and are context-sensitive, so the context (in this case, the state of the enumeration counter) needs to be preserved. @@ -22,18 +22,18 @@ restarting enumerate: ... \setcounter{saveenum}{\value{enumi}} \end{enumerate} -<Commentary text> +<Commentary text> \begin{enumerate} \setcounter{enumi}{\value{saveenum}} ... \end{enumerate} </pre> </blockquote><p> -<p/>This is reasonable, in small doses… Problems (apart from sheer -verbosity) are getting the level right (“should I use counter -<code>enumi</code>, <code>enumii</code>, …”) and remembering not to +<p/>This is reasonable, in small doses… Problems (apart from sheer +verbosity) are getting the level right (“should I use counter +<code>enumi</code>, <code>enumii</code>, …”) and remembering not to nest the interruptions (i.e., not to have a separate list, that is -itself interrupted) in the “commentary text”). +itself interrupted) in the “commentary text”). <p/>The <i>mdwlist</i> package defines commands <code>\</code><code>suspend</code> and <code>\</code><code>resume</code> that simplify the process: <blockquote> @@ -41,7 +41,7 @@ itself interrupted) in the “commentary text”). \begin{enumerate} ... \suspend{enumerate} -<Commentary text> +<Commentary text> \resume{enumerate} ... \end{enumerate} @@ -51,9 +51,9 @@ The package allows an optional name (as in <code>\</code><code>suspend[id]{enumerate}</code>) to allow you to identify a particular suspension, and hence provide a handle for manipulating nested suspensions. -<p/>If you’re suspending a <a href="FAQ-enumerate.html">fancy-enumeration list</a>, +<p/>If you’re suspending a <a href="FAQ-enumerate.html">fancy-enumeration list</a>, you need to -re-supply the optional “item label layout” parameters required by +re-supply the optional “item label layout” parameters required by the <i>enumerate</i> package when resuming the list, whether by the belt-and-braces approach, or by the <i>mdwlist</i> <code>\</code><code>resume{enumerate}</code> technique. The task is a little tedious @@ -65,7 +65,7 @@ which requires use of extra braces: \begin{enumerate}[\textbf{Item} i] ... \suspend{enumerate} -<comment> +<comment> \resume{enumerate}[{[\textbf{Item} i]}] ... \end{enumerate} @@ -78,17 +78,17 @@ release, will also allow you to resume lists: \begin{enumerate} ... \end{enumerate} -<comment> +<comment> \begin{enumerate}[resume] ... \end{enumerate} </pre> </blockquote><p> -which feels just as “natural” as the <i>mdwtools</i> facility, +which feels just as “natural” as the <i>mdwtools</i> facility, and has the advantage of playing well with the other excellent facilities of <i>enumitem</i>. <p/><i>Expdlist</i> has a neat way of providing for comments, with its -<code>\</code><code>listpart</code> command. The command’s argument becomes a comment +<code>\</code><code>listpart</code> command. The command’s argument becomes a comment between items of the list: <blockquote> <pre> @@ -100,9 +100,9 @@ between items of the list: \end{enumerate} </pre> </blockquote><p> -This, you will realise, means it doesn’t even have to think about +This, you will realise, means it doesn’t even have to think about suspending or resuming the list, and of course it works equally well -in any of the list environments (thought it’s not actually +in any of the list environments (thought it’s not actually <em>necessary</em> for any but <code>enumerate</code>). <p/><i>Enumitem</i> also allows multi-level suspension and resumption of lists: @@ -111,14 +111,14 @@ of lists: \begin{enumerate} \item outer item 1 \end{enumerate} -<comment> +<comment> \begin{enumerate}[resume] \item outer item 2 % nested enumerate \begin{enumerate} \item inner item 1 \end{enumerate} -<nested comment> +<nested comment> % resume nested enumerate \begin{enumerate}[resume] \item inner item 2 @@ -128,14 +128,14 @@ of lists: \end{enumerate} </pre> </blockquote><p> -However, the ‘nested comment’ interpolated in the nested enumeration -appears as if it were a second paragraph to “outer item 2”, which is +However, the ‘nested comment’ interpolated in the nested enumeration +appears as if it were a second paragraph to “outer item 2”, which is hardly satisfactory. <dl> -<dt><tt><i>enumerate.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools/">browse the directory</a>) +<dt><tt><i>enumerate.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools/">browse the directory</a>); <a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/enumerate.html">catalogue entry</a> <dt><tt><i>enumitem.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/enumitem.zip">macros/latex/contrib/enumitem</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/enumitem/">browse the directory</a>) <dt><tt><i>expdlist.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/expdlist.zip">macros/latex/contrib/expdlist</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/expdlist/">browse the directory</a>) -<dt><tt><i>mdwlist.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools/">browse the directory</a>) +<dt><tt><i>mdwlist.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools/">browse the directory</a>); <a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/mdwlist.html">catalogue entry</a> </dl> <p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=interruptlist">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=interruptlist</a> </body> |