Debian Codegraph @

texmf-dist/doc/latex/multenum/multienum.sample

raw
1 %This is a 2-page sample illustrating how to use the
2 %multienum package
3
4 \documentclass{article}
5 \setlength{\textwidth}{6in}
6 \setlength{\textheight}{8.5in}
7 \setlength{\topmargin}{-0.5in}
8 \setlength{\oddsidemargin}{0.25in}
9 \usepackage{multicol,multienum}
10
11
12
13 \begin{document}
14 \begin{center}
15 {\Large\bf Sample formating using {\tt multienumerate}}
16 \end{center}
17
18 \bigskip
19 Sometimes we want to typeset the solutions to exercises. This
20 is easy to do using the {\tt multienumerate} environment.
21 \subsection*{Answers to All Exercises}
22 \begin{multienumerate}
23 \mitemxxxx{Not}{Linear}{Not}{Quadratic}
24 \mitemxxxo{Not}{Linear}{No; if $x=3$, then $y=-2$.}
25 \mitemxx{$(x_1,x_2)=(2+\frac{1}{3}t,t)$ or
26 $(s,3s-6)$}{$(x_1,x_2,x_3)=(2+\frac{5}{2}s-3t,s,t)$}
27 \mitemx{$(x_1,x_2,x_3,x_4)= (\frac{1}{4}+\frac{5}{4}s+\frac{3}{4}t-u,s,t,u)$
28 or $(s,t,u,\frac{1}{4}-s+\frac{5}{4}t+\frac{3}{4}u)$}
29 \mitemxxxx{$(2,-1,3)$}{None}{$(2,1,0,1)$}{$(0,0,0,0)$}
30 \end{multienumerate}
31
32
33 \bigskip
34 \hrule
35
36 \bigskip
37
38 We can also enumerate the items using an even-only or odd only
39 counter.
40 \subsection*{Answers to Even-Numbered Exercises}
41 \begin{multienumerate}[evenlist]
42 \mitemxxxx{Not}{Linear}{Not}{Quadratic}
43 \mitemxxxo{Not}{Linear}{No; if $x=3$, then $y=-2$.}
44 \mitemxx{$(x_1,x_2)=(2+\frac{1}{3}t,t)$ or
45 $(s,3s-6)$}{$(x_1,x_2,x_3)=(2+\frac{5}{2}s-3t,s,t)$}
46 \mitemx{$(x_1,x_2,x_3,x_4)= (\frac{1}{4}+\frac{5}{4}s+\frac{3}{4}t-u,s,t,u)$
47 or $(s,t,u,\frac{1}{4}-s+\frac{5}{4}t+\frac{3}{4}u)$}
48 \mitemxxxx{$(2,-1,3)$}{None}{$(2,1,0,1)$}{$(0,0,0,0)$}
49 \end{multienumerate}
50
51 \hrule
52
53 \subsection*{Answers to Odd-Numbered Exercises}
54 \begin{multienumerate}[oddlist]
55 \mitemxxxx{Not}{Linear}{Not}{Quadratic}
56 \mitemxxxo{Not}{Linear}{No; if $x=3$, then $y=-2$.}
57 \mitemxx{$(x_1,x_2)=(2+\frac{1}{3}t,t)$ or
58 $(s,3s-6)$}{$(x_1,x_2,x_3)=(2+\frac{5}{2}s-3t,s,t)$}
59 \mitemx{$(x_1,x_2,x_3,x_4)= (\frac{1}{4}+\frac{5}{4}s+\frac{3}{4}t-u,s,t,u)$
60 or $(s,t,u,\frac{1}{4}-s+\frac{5}{4}t+\frac{3}{4}u)$}
61 \mitemxxxx{$(2,-1,3)$}{None}{$(2,1,0,1)$}{$(0,0,0,0)$}
62 \end{multienumerate}
63
64 \bigskip
65 \hrule
66
67 \bigskip
68
69 Sometimes we want to create sublists which are
70 enumerated using an alpha counter.
71
72 \begin{multienumerate}
73 \mitemx{Which of the following numbers is the solution of the
74 equation
75 $x+3=7$:}
76 \begin{multienumerate}
77 \mitemxxxx{1}{2}{3}{4}
78 \end{multienumerate}
79 \mitemx{The value of $\log_28$ is:}
80 \begin{multienumerate}
81 \mitemxxxx{1}{$-1$}{3}{$-3$}
82 \end{multienumerate}
83 \end{multienumerate}
84 \pagebreak
85
86 \begin{multicols}{2}
87 \subsection*{Answers to All Exercises}
88 \begin{multienumerate}
89 \mitemxx{Not}{Linear}
90 \mitemxx{Not}{Quadratic}
91 \mitemxx{Not}{Linear}
92 \mitemx{$(x_1,x_2)=(2+\frac{1}{3}t,t)$ or
93 $(s,3s-6)$}
94 \mitemx{$(x_1,x_2,x_3)=(2+\frac{5}{2}s-3t,s,t)$}
95 \mitemx{$(x_1,x_2,x_3,x_4)= (\frac{1}{4}+\frac{5}{4}s+\frac{3}{4}t-u,s,t,u)$
96 or $(s,t,u,\frac{1}{4}-s+\frac{5}{4}t+\frac{3}{4}u)$}
97 \mitemxx{$(2,-1,3)$}{None}
98 \mitemxx{$(2,1,0,1)$}{$(0,0,0,0)$}
99 \mitemxx{Not}{Linear}
100 \mitemxx{Not}{Quadratic}
101 \mitemxx{Not}{Linear}
102 \mitemx{$(x_1,x_2)=(2+\frac{1}{3}t,t)$ or
103 $(s,3s-6)$}
104 \mitemx{$(x_1,x_2,x_3)=(2+\frac{5}{2}s-3t,s,t)$}
105 \mitemx{$(x_1,x_2,x_3,x_4)= (\frac{1}{4}+\frac{5}{4}s+\frac{3}{4}t-u,s,t,u)$
106 or $(s,t,u,\frac{1}{4}-s+\frac{5}{4}t+\frac{3}{4}u)$}
107 \mitemxx{$(2,-1,3)$}{None}
108 \mitemxx{$(2,1,0,1)$}{$(0,0,0,0)$}
109 \mitemxx{Not}{Linear}
110 \mitemxx{Not}{Quadratic}
111 \mitemxx{Not}{Linear}
112 \mitemx{$(x_1,x_2)=(2+\frac{1}{3}t,t)$ or
113 $(s,3s-6)$}
114 \mitemx{$(x_1,x_2,x_3)=(2+\frac{5}{2}s-3t,s,t)$}
115 \mitemx{$(x_1,x_2,x_3,x_4)= (\frac{1}{4}+\frac{5}{4}s+\frac{3}{4}t-u,s,t,u)$
116 or $(s,t,u,\frac{1}{4}-s+\frac{5}{4}t+\frac{3}{4}u)$}
117 \mitemxx{$(2,-1,3)$}{None}
118 \mitemxx{$(2,1,0,1)$}{$(0,0,0,0)$}
119 \end{multienumerate}
120
121 \subsection*{Multiple Choice}
122 \begin{multienumerate}
123 \mitemx{Which of the following numbers is the solution of the
124 equation
125 $x+3=7$:}
126 \begin{multienumerate}
127 \mitemxxxx{1}{2}{3}{4}
128 \end{multienumerate}
129 \mitemx{The value of $\log_28$ is:}
130 \begin{multienumerate}
131 \mitemxxxx{1}{$-1$}{3}{$-3$}
132 \end{multienumerate}
133 \mitemx{Which of the following numbers is the solution of the
134 equation
135 $x+3=7$:}
136 \begin{multienumerate}
137 \mitemxxxx{1}{2}{3}{4}
138 \end{multienumerate}
139 \mitemx{The value of $\log_28$ is:}
140 \begin{multienumerate}
141 \mitemxxxx{1}{$-1$}{3}{$-3$}
142 \end{multienumerate}
143 \mitemx{Which of the following numbers is the solution of the
144 equation
145 $x+3=7$:}
146 \begin{multienumerate}
147 \mitemxxxx{1}{2}{3}{4}
148 \end{multienumerate}
149 \mitemx{The value of $\log_28$ is:}
150 \begin{multienumerate}
151 \mitemxxxx{1}{$-1$}{3}{$-3$}
152 \end{multienumerate}
153 \end{multienumerate}
154 \end{multicols}
155
156 \end{document}
157
158
159