# LaTeX/Teacher's Corner

* LaTeX
* Getting Started
* Introduction
* Installation
* Installing Extra Packages
* Basics
* How to get help
* Common Elements
* Document Structure
* Text Formatting
* Paragraph Formatting
* Colors
* Fonts
* List Structures
* Special Characters
* Internationalization
* Rotations
* Tables
* Title creation
* Page Layout
* Customizing Page Headers and Footers‎
* Importing Graphics
* Floats, Figures and Captions
* Footnotes and Margin Notes
* Hyperlinks
* Labels and Cross-referencing
* Initials
* Mechanics
* Errors and Warnings
* Lengths
* Counters
* Boxes
* Rules and Struts
* Technical Text
* Mathematics
* Advanced Mathematics
* Theorems
* Chemical Graphics
* Algorithms
* Source Code Listings
* Linguistics
* Special Pages
* Indexing
* Glossary
* Bibliography Management
* More Bibliographies
* Special Documents
* Scientific Reports (Bachelor Report, Master Thesis, Dissertation)
* Letters
* Presentations
* Teacher's Corner
* Curriculum Vitae
* Academic Journals (MLA, APA, etc.)
* Creating Graphics
* Introducing Procedural Graphics
* MetaPost
* Picture
* PGF/TikZ
* PSTricks
* Xy-pic
* Creating 3D graphics
* Programming
* Macros
* Plain TeX
* Creating Packages
* Creating Package Documentation
* Themes
* Miscellaneous
* Modular Documents
* Collaborative Writing of LaTeX Documents
* Export To Other Formats
* Help and Recommendations
* FAQ
* Tips and Tricks
* Appendices
* Authors
* Links
* Package Reference
* Sample LaTeX documents
* Index
* Command Glossary

## Intro

LaTeX has specific features for teachers. We present the exam class which is useful for designing exams and exercises with solutions. Interested people could also have a look at the probsoln package, the mathexm document class, or the exsheets package.

## The exam class

We present the exam class. The exam class is well suited to design exams with solutions. You just have to specify in the preamble if you want the solutions to be printed or not. You can also count the number of points.

### Preamble

In the preamble you can specify the following lines :
* \documentclass[a4paper,11pt]{exam}
* \printanswers % If you want to print answers
* % \noprintanswers % If you don't want to print answers
* \addpoints % if you want to count the points
* % \noaddpoints % if you don't want to count the points
* % Specifies the way question are displayed:
* \qformat{\textbf{Question \thequestion}\quad(\thepoints)\hfill}
* \usepackage{color} % defines a new color
* \definecolor{SolutionColor}{rgb}{0.8,0.9,1} % light blue
* \shadedsolutions % defines the style of the solution environment
* % \framedsolutions % defines the style of the solution environment
* % Defines the title of the solution environment:
* \renewcommand{\solutiontitle}{\noindent\textbf{Solution:}\par\noindent}
You can replace the 3 first lines with the following :
* \documentclass[a4paper,11pt,answers,addpoints]{exam}

### Document

* The exam is included in the questions environment.
* The command \question introduces a new question.
* The number of points is specified in squared brackets.
* The solution is given in the solution environment. It appears only if \printanswers or answers as an option of the \documentclass are specified in the preamble.
Here is an example :
It is also possible to add stuff only if answers are printed using the \ifprintanswers command.

### Introduction

The macro \numquestions gives the total number of questions. The macro \numpoints gives the total number of points.
The backslash after \numquestion prevents the macro from gobbling the following whitespace as it normally would.

## Exsheets

Package exsheets is an alternative to the exam class. It can be used to create exam papers, text books including solutions etc. Many options are available to style the output. Following a demonstrative example.
Successor of exsheets will be package xsim.

## References

* ↑ examdoc Using the exam document class
* ↑ Probsoln Creating problem sheets optionally with solutions
* ↑ mathexm documentation
* ↑ exsheets documentation Create exercise sheets and exams