모든 템플릿으로 돌아가기

과제

PDF 보기
카테고리:Education
라이선스:무료 사용 (MIT)
초록:

숙제 및 과제 템플릿

태그:Education
Loading preview...

An assignment template in LaTeX

This assignment template in LaTeX is a minimal problem sheet for a course: a title block, instructions, numbered problems with space for solutions, and submission guidelines. It uses the standard article class with 1 inch margins and only three packages, geometry, amsmath and enumitem, so it compiles first time in Overleaf, Octree or any TeX install and is easy to read and change even if you are new to LaTeX.

The title block is repurposed for coursework: \title holds the assignment name, \author the course name and \date the due date, so \maketitle prints a centred header without any custom macros. Problems are unnumbered subsections (\subsection*{Problem 1}), each followed by a bold Solution: label, and Problem 3 shows a displayed integral written with \[ ... \]. Teachers can use it to set problem sets and quizzes; students can paste the questions in and type their answers below each label. If you want a header with the course number and due date on every page, or worked example solutions, the homework template adds a fancyhdr header and amsthm.

What is included

  • article class with 1 inch margins
  • Title, course and due date printed by \maketitle
  • Instructions and Submission Guidelines sections
  • Three problems, each with a Solution: label
  • amsmath for equations and enumitem for custom lists

How to use it

  1. Click Open as Template to edit in Octree, or View Source and paste the code into Overleaf or a local assignment.tex.
  2. Compile with pdfLaTeX; no bibliography or images are needed.
  3. Set \title, \author (course) and \date (due date) in the preamble.
  4. Copy a \subsection*{Problem N} block for each question and replace the text.
  5. Edit the Instructions and Submission Guidelines for your course.

Customise the template

Add parts and point values. Put the marks in the heading and use enumitem's label key for lettered parts:

\subsection*{Problem 1 (10 points)}
Let $f(x) = x^3 - 3x$.
\begin{enumerate}[label=(\alph*)]
  \item Find $f'(x)$. (3 points)
  \item Find the critical points of $f$. (3 points)
  \item Classify each critical point. (4 points)
\end{enumerate}

Show multi-step working. amsmath's align* lines up each step on the equals sign, which is clearer than separate displays:

\textbf{Solution:}
\begin{align*}
  \int_0^1 x^2 \, dx &= \left[ \frac{x^3}{3} \right]_0^1 \\
                     &= \frac{1}{3} - 0 = \frac{1}{3}
\end{align*}

Print a blank sheet and an answer key from one file. Define a \solution macro in the preamble and switch it with one line:

\newif\ifanswers
\answerstrue   % comment out for the student version
\newcommand{\solution}[1]{\ifanswers\par\textbf{Solution:} #1\par\fi}

% in the body
\solution{The integral equals $1/3$.}

Related templates: homework, worksheet and grading rubric.

Assignment template FAQ

Is this assignment template for students or teachers?
Both. As written it is a problem sheet: the title is the assignment name, the author line holds the course and the date line holds the due date, with Instructions and Submission Guidelines sections for the person setting the work. Students can keep the same file and write their answers under each Solution: label.
Does this assignment template work in Overleaf?
Yes. It uses the article class with geometry, amsmath and enumitem, all part of TeX Live, so it compiles unchanged in Overleaf, Octree or a local install with pdfLaTeX.
How do I add parts (a), (b), (c) to a problem?
enumitem is already loaded, so write \begin{enumerate}[label=(\alph*)] with one \item per part. Use label=(\roman*) for (i), (ii), (iii).
How do I hide the solutions when handing the assignment out?
Wrap each answer in a macro you can switch off, for example \newcommand{\solution}[1]{\par\textbf{Solution:} #1} for the answer key, and redefine it as \newcommand{\solution}[1]{} to print the blank version from the same file.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기