\documentclass[11pt]{article} %set font size 
\usepackage{geometry} % to change the page dimensions
\geometry{letterpaper} 
\usepackage[colorlinks=true]{hyperref} %for clickable URLs

\title{Typesetting Homework}
\author{Patrick Lopatto}
%\date{}
% Activate to display a given date or no date (if empty),
% otherwise the current date is printed

\begin{document}

\maketitle

Here is a quick introduction to writing math homework in \LaTeX, which should be sufficient to typeset your homework sets. After reading this, please look at the \texttt{.tex} file that accompanies it to see how various tasks are accomplished. Comments in that file are given after \% signs. They are ignored by the compiler, but may be useful to you.
%the \texttt command produces a monospaced font


\begin{enumerate}
    \item First, you will need an environment that allows you to edit and compile \texttt{.tex} files. A simple way to do this is to use the online service Overleaf, at \url{https://www.overleaf.com/}. Your Harvard email address grants you unlimited file storage there.
    
    If you would prefer to download software that does this, click \href{https://www.latex-project.org/get/}{here} for a selection of options. 
    
    \item Look at the provided homework template. Some code is included to set the page size, author, title, date, and so on. Put your name in the author field and change the title to the appropriate homework number, and list your collaborators if necessary. (Of course, using this template is not mandatory, if you would prefer to format your work differently.)
  
    
    \item Use single dollar signs \$ to write inline math equations. For instance, $2+2=4$.
    
    \item Use double dollar signs \$\$ to write displayed equations. For example,
    $$\sum_{j=1}^{n} j = \frac{(n+1)n}{2}.$$
    
    \item Superscripts are written using \^{} and subscripts with the underscore \textunderscore. 
    
    \item Commands and special characters like \texttt{{\textbackslash frac}} and \texttt{{\textbackslash sum}} usually begin with a backslash. Arguments for such commands are put in curly braces: $\{$ and $\}$.
    
      
    \item More detailed guides can be found online (e.g. \href{https://www.overleaf.com/learn/latex/Free_online_introduction_to_LaTeX_(part_1)}{here}). Also, \href{http://detexify.kirelabs.org/classify.html}{Detexify} is a useful tool for finding code for symbols. For example, try entering Greek letters like $\pi$ and $\sigma$ to find the right commands.
    
    \item Leaving a blank line starts a new paragraph.
    
    Like this.
    
    \item Answers to most \LaTeX-related questions can be found by consulting Google. I am also happy to answer questions during the session this Thursday at 4 in Room 232, or during office hours. Have fun!
    
\end{enumerate}

\end{document}
