summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/uassign/uassign.tex
blob: 0b8c40c2342e6e376963d30babf6adb7a60f0ed1 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
\documentclass[twocolumn,twoside,11pt]{report}

\usepackage[nobox]{assign}
\usepackage{hyperref}
\usepackage[margin=1.0in]{geometry}
\def\arraystretch{1.2}

\hypersetup{
	colorlinks,
	linkcolor={blue},
	linktoc=page
}

\setcounter{secnumdepth}{0}

\title{The \texttt{uassign} package}
\author{Nathan Esau}
\date{\today}

\begin{document}

\maketitle

\setcounter{secnumdepth}{-1}
\chapter{Overview}

\section{Description}
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:

\begin{itemize}
\item \textit{Simplicity}: \texttt{uassign} package is small and easy to modify
\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.
\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.

\end{itemize}% see http://tex.stackexchange.com/questions/242036/multiline-code-listings-in-cweb

\section{Features}

\subsection{Environments}

\begin{table}[!htpb]
\centering
\begin{tabular}{l l l}
\hline
Environment & Description \\ \hline
\texttt{question} & Assignment questions \\ 
\texttt{solution} & Assignment solutions \\
\texttt{example} & Illustrative examples \\ 
\texttt{exsolution} & Solution to examples \\ 
\texttt{definition} & Definitions for terms \\ \hline
\end{tabular}
\caption{Environments provided by \texttt{uassign}}
\end{table}

\vspace{10mm}
\subsection{Commands}

\begin{table}[!htpb]
\centering
\begin{tabular}{l l l}
\hline
Command & Description \\ \hline
\verb|\ientry| & Bold-faced index entry \\ \hline
%\verb|\ebox| & Square box to end solution \\ \hline
\end{tabular}
\caption{Commands provided by \texttt{uassign}}
\end{table}

\subsection{Options}

\begin{table}[!htpb]
\centering
\begin{tabular}{l l}
\hline
Option & Description \\ \hline
\verb|hidequestions| & Hide \texttt{question} \\
\verb|hideanswers| & Hide \texttt{solution} \\ 
\verb|assignheader| & \texttt{fancyhdr} \\ 
\verb|notesheader| & \texttt{titlesec}, \texttt{fancyhdr} \\ 
\verb|links| & \texttt{hypersetup} format \\ \hline
\end{tabular}
\caption{Options provided by \texttt{uassign}}
\end{table}

\subsection{Packages used}

\begin{table}[!htpb]
\centering
\begin{tabular}{l l}
\hline
Package(s) & Usage \\ \hline
\texttt{ifthen} & Processing options \\ 
\texttt{hyperref} & Hyperlinks in pdf \\
\texttt{bookmark} & pdf bookmarks \\ 
\texttt{color} & Color links \\ 
\texttt{enumerate} & Options for \texttt{enumerate} \\ 
\texttt{amsmath, amsthm} & Math typesetting \\ 
\texttt{fancyhdr} & Format top of page header \\
\texttt{titlesec} & Format section, chapter \\ \hline
\end{tabular}
\caption{Packages used by \texttt{uassign}}
\end{table}

\section{Demonstration}

\subsection{question environment}

\begin{verbatim}
\begin{question}
What is the answer to life?
\end{question}
\end{verbatim}

\hrule
\begin{question}
What is the answer to life?
\end{question}

\vspace{3mm}
\hrule

\subsection{solution environment}

\begin{verbatim}
\begin{solution}
The answer is 42.
\end{solution}
\end{verbatim}

\hrule
\begin{solution}
The answer is 42.
\end{solution}

\vspace{3mm}
\hrule

\subsection{example environment}

\begin{verbatim}
\begin{example}
Explain what facebook is.
\end{example}
\end{verbatim}

\hrule
\begin{example}
Explain what facebook is.
\end{example}

\vspace{3mm}
\hrule

\subsection{exsolution environment}

\begin{verbatim}
\begin{solution}
Facebook is a social media site.
\end{solution}
\end{verbatim}

\hrule 
\begin{exsolution}
Facebook is a social media site.
\end{exsolution}

\vspace{3mm}
\hrule

\subsection{definition environment}

\begin{verbatim}
\begin{definition}
The \ientry{mean} is the average value.
\end{definition}
\end{verbatim}

\hrule
\begin{definition}
The \ientry{mean} is the average value.
\end{definition}

\vspace{3mm}
\hrule

\end{document}