Skip to content

Instantly share code, notes, and snippets.

@MartinRogalla
Created May 11, 2013 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinRogalla/5559828 to your computer and use it in GitHub Desktop.
Save MartinRogalla/5559828 to your computer and use it in GitHub Desktop.
\documentclass[a4paper,answers]{exam}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{fullpage}
\renewcommand{\questionlabel}{\textbf{\thequestion}}
\renewcommand{\thesection}{\arabic{section}}
\begin{document}
\section*{Chapter 1}
\setcounter{section}{1}
\begin{questions}
\numberwithin{question}{section}
\setcounter{question}{1}
\question
Question is here.
\begin{solution}
Here comes the answer
\end{solution}
\end{questions}
\section*{Chapter 2}
\setcounter{section}{2}
\begin{questions}
\numberwithin{question}{section}
\setcounter{question}{1}
\question
Question is here.
\begin{solution}
Here comes the answer
\end{solution}
\end{questions}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment