Debian Codegraph @

texmf-dist/doc/latex/uassign/uassign.tex

raw
1 \documentclass[twocolumn,twoside,11pt]{report}
2
3 \usepackage[nobox]{assign}
4 \usepackage{hyperref}
5 \usepackage[margin=1.0in]{geometry}
6 \def\arraystretch{1.2}
7
8 \hypersetup{
9 colorlinks,
10 linkcolor={blue},
11 linktoc=page
12 }
13
14 \setcounter{secnumdepth}{0}
15
16 \title{The \texttt{uassign} package}
17 \author{Nathan Esau}
18 \date{\today}
19
20 \begin{document}
21
22 \maketitle
23
24 \setcounter{secnumdepth}{-1}
25 \chapter{Overview}
26
27 \section{Description}
28 The purpose of the \texttt{uassign} package is to provide simple question and solution style environments for typesetting university assignments. The \texttt{uassign} package was designed with the following objectives in mind:
29
30 \begin{itemize}
31 \item \textit{Simplicity}: \texttt{uassign} package is small and easy to modify
32 \item \textit{Hide environments}: Ability to produce a question sheet (questions only) and a solution sheet (solutions only) or both. This is done by passing the \texttt{hidequestions} or \texttt{hideanswers} option to the package.
33 \item \textit{Flexibility}: The \texttt{uassign} package doesn't create conflicts with other packages, such as \texttt{hyperref} when included. Commands which could cause conflicts with other packages are used only when certain options are passed to the \texttt{uassign} package.
34
35 \end{itemize}% see http://tex.stackexchange.com/questions/242036/multiline-code-listings-in-cweb
36
37 \section{Features}
38
39 \subsection{Environments}
40
41 \begin{table}[!htpb]
42 \centering
43 \begin{tabular}{l l l}
44 \hline
45 Environment & Description \\ \hline
46 \texttt{question} & Assignment questions \\
47 \texttt{solution} & Assignment solutions \\
48 \texttt{example} & Illustrative examples \\
49 \texttt{exsolution} & Solution to examples \\
50 \texttt{definition} & Definitions for terms \\ \hline
51 \end{tabular}
52 \caption{Environments provided by \texttt{uassign}}
53 \end{table}
54
55 \vspace{10mm}
56 \subsection{Commands}
57
58 \begin{table}[!htpb]
59 \centering
60 \begin{tabular}{l l l}
61 \hline
62 Command & Description \\ \hline
63 \verb|\ientry| & Bold-faced index entry \\ \hline
64 %\verb|\ebox| & Square box to end solution \\ \hline
65 \end{tabular}
66 \caption{Commands provided by \texttt{uassign}}
67 \end{table}
68
69 \subsection{Options}
70
71 \begin{table}[!htpb]
72 \centering
73 \begin{tabular}{l l}
74 \hline
75 Option & Description \\ \hline
76 \verb|hidequestions| & Hide \texttt{question} \\
77 \verb|hideanswers| & Hide \texttt{solution} \\
78 \verb|assignheader| & \texttt{fancyhdr} \\
79 \verb|notesheader| & \texttt{titlesec}, \texttt{fancyhdr} \\
80 \verb|links| & \texttt{hypersetup} format \\ \hline
81 \end{tabular}
82 \caption{Options provided by \texttt{uassign}}
83 \end{table}
84
85 \subsection{Packages used}
86
87 \begin{table}[!htpb]
88 \centering
89 \begin{tabular}{l l}
90 \hline
91 Package(s) & Usage \\ \hline
92 \texttt{ifthen} & Processing options \\
93 \texttt{hyperref} & Hyperlinks in pdf \\
94 \texttt{bookmark} & pdf bookmarks \\
95 \texttt{color} & Color links \\
96 \texttt{enumerate} & Options for \texttt{enumerate} \\
97 \texttt{amsmath, amsthm} & Math typesetting \\
98 \texttt{fancyhdr} & Format top of page header \\
99 \texttt{titlesec} & Format section, chapter \\ \hline
100 \end{tabular}
101 \caption{Packages used by \texttt{uassign}}
102 \end{table}
103
104 \section{Demonstration}
105
106 \subsection{question environment}
107
108 \begin{verbatim}
109 \begin{question}
110 What is the answer to life?
111 \end{question}
112 \end{verbatim}
113
114 \hrule
115 \begin{question}
116 What is the answer to life?
117 \end{question}
118
119 \vspace{3mm}
120 \hrule
121
122 \subsection{solution environment}
123
124 \begin{verbatim}
125 \begin{solution}
126 The answer is 42.
127 \end{solution}
128 \end{verbatim}
129
130 \hrule
131 \begin{solution}
132 The answer is 42.
133 \end{solution}
134
135 \vspace{3mm}
136 \hrule
137
138 \subsection{example environment}
139
140 \begin{verbatim}
141 \begin{example}
142 Explain what facebook is.
143 \end{example}
144 \end{verbatim}
145
146 \hrule
147 \begin{example}
148 Explain what facebook is.
149 \end{example}
150
151 \vspace{3mm}
152 \hrule
153
154 \subsection{exsolution environment}
155
156 \begin{verbatim}
157 \begin{solution}
158 Facebook is a social media site.
159 \end{solution}
160 \end{verbatim}
161
162 \hrule
163 \begin{exsolution}
164 Facebook is a social media site.
165 \end{exsolution}
166
167 \vspace{3mm}
168 \hrule
169
170 \subsection{definition environment}
171
172 \begin{verbatim}
173 \begin{definition}
174 The \ientry{mean} is the average value.
175 \end{definition}
176 \end{verbatim}
177
178 \hrule
179 \begin{definition}
180 The \ientry{mean} is the average value.
181 \end{definition}
182
183 \vspace{3mm}
184 \hrule
185
186 \end{document}