summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/base/test/list.tex
blob: 68775b3d8223a547eebdfdf284b3d9f0a6496168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
% This file is public domain.
%
% Test file for lists.
% 
\ifx\undefined\eplain \input eplain \fi

{\parindent = 0pt
 \parskip = .5\baselineskip
\unorderedlist
   \li hello there

       This item has two paragraphs since we want to see if it
       works anywhere, and of course we want the paragraphs to be long.
     
   \li We did this list with zero parindent and nonzero parskip.
\endunorderedlist
}

\unorderedlist
   \li hello there

       This item has two paragraphs since we want to see if it
       works anywhere, and of course we want the paragraphs to be long.

   \li second item
   \numberedlist
      \li nested
      \li and again.

          This item has two paragraphs, also, since we want to see if it
          works anywhere, and of course we want the paragraphs to be long.

      \li and again
      \numberedlist
         \li I am going three-level with you.
      \endnumberedlist
      \unorderedlist
         \li I'm not.

             This item has two paragraphs, also, since we want to see if
             it works anywhere, and of course we want the paragraphs to
             be long.
             
             In fact, maybe we better make it three paragraphs. What
             will happen then? This should tell us.

      \endunorderedlist
   \endnumberedlist
\endunorderedlist

This is a paragraph between the lists. It should be indented. But we'll
make it go on for more than one line, so we'll be able to see where the
left margin is.

\numberedlist
   \li hello there
       
       This item has two paragraphs. Isn't that annoying?
       In fact, the second paragraph has more than one line, at least
       I'm going to make it long enough so that that is true---I hope.
       
   \li second item
   \numberedlist
      \li nested
      \li and again
      \li and again
      \numberedlist
         \li I am going three-level with you.
      \endnumberedlist
      \unorderedlist
         \li I'm not.
      \endunorderedlist
   \endnumberedlist
\endnumberedlist

\listleftindent = 4pc
\unorderedlist
\li A shorter list, but with a bigger indent.
\numberedlist \li A nested list.
\endnumberedlist
\li The second item.
\endunorderedlist

A list with an xref label:
\numberedlist
\li[listitem] This is the first.
\endnumberedlist

And now we can refer to that item: \xrefn{listitem}.
\bye