I just downloaded TexWorks using MikTex. I am trying to write my math homework in Latex form but I am having difficulty getting the correct template. My template looks like this:
\title{}
\date{\today}
\documentclass[12pt]{article}
\begin{document}
\maketitle
\section{}
\end{document}
How can I insert my questions in LaTex form? For example, right after the date I want to have "{question 1(in bold)} … {answer to question 1} … {question 2(in bold)} … {answer to question 2}" so on and so forth to the very last question?
Best Answer
This can be done in several ways. Here's one possibility using theorem-like structures defined with the help of the
amsthm
package:In the previous solution I made the assumption that each question was immediately followed by its answer; a solution with more freedom might be:
In this approach, you label each question (using the standard
\label
command), and then use the string used for the label as a mandatory argument for theans
environment.