Getting Started with LaTeX

  • Installation
  • Creating a document
  • A sample document
  • Library Workshop Files

Introduction

Before reading this section you should have a basic understanding of how to create a LaTeX document, as well as, the basic structure of a document.

This section is about creating templates for LaTeX documents.  Templates are meant to speed up the initial creation of a LaTeX document.  Often it is the case that the same packages and document structure will be applicable to many of the documents you are working on, in this case using a template will save you the time of having to input all of this information every time you create a new document.

Using and Creating Templates

A good front end LaTeX software package will contain at least some standard templates for different document types such as articles, beamers, and books, a great one will also let you create your own template.  Templates can be very useful when there are certain documents types you need to create often such as class notes, homework assignments, and lab reports.  In these cases a template will create consistency between documents and greatly simplify the creation of the document.

Using Templates

How to use a template depends on what program you are using to write your LaTeX code.  If you are not using any front end software a template would simply be an already written .tex file you used to start your document.  It is important to make sure that you do not save over the template as you create the new document as this would destroy the template file.  Different front end software have different methods for using templates.  In TexStudio for example under "File" there is a "new from template" option.  TexStudio comes with a number of preprogrammed templates but also allows you to add your own.  TexMaker on the other hand, under file, has the option "new by copying an existing file".  In this case you would need to create your own template file,  but you would not have to worry that you might accidentally save over it.

If the template you are looking for is not built into the software you are using there are online resources such as LaTeX Templates  where you can download templates for a variety of purposes.  A more advanced LaTeX user may also want to consider creating their own template. 

Creating Templates

When creating a template there are several important questions to ask yourself:

  • It doesn't make sense to have a template if you will need to change the document class often.  It is also important to recognize which document best suits your needs (i.e. if you want sections use article but if you want chapters use book).
  • One of the best reasons to have a template is that you won't have write the preamble every time you start a new document, therefore it is very important to include all the packages you will need.  Its better to have extra packages than not enough.
  • You can save time by incorporating certain common elements into you preamble such as title, author, and date.  You may also want include certain structures in the document, for example if you were making a lab report you may already include all the sections the report requires (Introduction, Experimental Setup, Results, Conclusions, etc...).  
  • Perhaps you are using your template for a certain class that often uses matrices or a mathematical symbol with a long name.  Creating a new command as part of the template can help simplify the writing process.

Sample Template Code

% This is a template for doing homework assignments in LaTeX

\documentclass {article} % This command is used to set the type of document you are working on such as an article, book, or presenation

\usepackage { geometry } % This package allows the editing of the page layout \usepackage { amsmath }   % This package allows the use of a large range of mathematical formula, commands, and symbols \usepackage { graphicx }   % This package allows the importing of images

\newcommand { \question }[2][]{ \ begin{ flushleft }         \textbf {Question #1}: \textit {#2}

\end{ flushleft } } \newcommand { \sol }{ \textbf {Solution}:} %Use if you want a boldface solution line \newcommand { \maketitletwo }[2][]{ \begin{ center }         \Large { \textbf {Assignment #1}                          Course Title} % Name of course here          \vspace {5pt}                  \normalsize {Matthew Frenkel   % Your name here                  \today }         % Change to due date if preferred          \vspace {15pt}          \end{ center } } \begin{ document }      \maketitletwo [5]   % Optional argument is assignment number     %Keep a blank space between maketitletwo and \question[1]           \question [1]{Here is my first question}           YOUR SOLUTION HERE          \question [2]{Here is my second question}          YOUR SOLUTION HERE          \question [3]{What is the \Large { $ \int_ 0^2 x^2 \, dx $ } \normalsize {. Show all steps}}           \begin{ align* }     \int_ 0^2 x^2 &= \left. \frac {x^3}{3} \right| _0^2 \\                  &= \frac {2^3}{3}- \frac {0^3}{3} \\                  &= \frac {8}{3}      \end{ align* } \end{ document }

Sample Template Output

Screen capture of a sample template displaying text for a fictitious homework assignment

  • << Previous: Resources
  • Next: BibTex >>
  • Last Updated: Jun 4, 2024 12:58 PM
  • URL: https://guides.nyu.edu/LaTeX

12 February 2014

Doing your homework in latex.

It is a common occurrence for other students to comment on my homework whenever I turn it in for one of my classes.

The complete LaTeX file (and the pdf output) can be found in my repository, latex-homework-template .

Below are a few screenshots of problems that I’ve done in the past:

Cover page

If I didn’t know how easy it was and the benefits that I get from typesetting my homework, I’d probably ask as well. However, I’d argue that using LaTeX to type up homework has made me a far better student than when I used to handwrite my homeworks.

And that is something that I care a lot about.

The Benefits

I can summarize the benefits like so:

It can be kept in Source Control. Handwriting can’t be stored in a version control system; once you erase something, it’s gone.

You can see your homework materialize in front of you. Seeing the results and the equations in their complete LaTeX-glory is a very powerful way to conceptualize things. There’s just something different about the way things look so perfect that makes the subject easier to understand.

You’ll do better in your classes. This one goes with the previous point, but having the ability to see your homework helps you understand it. By understanding it well, you’ll do better on tests. You will maximize how much you can learn as well as maximize your grade (if that matters to you).

It’s very neat & tidy. Although my handwriting has improved quite a bit, I still find myself slipping back into a rushed, messy script from the past. LaTeX gives zero doubt that the professor/TA will be able to read my solutions.

About LaTeX

A very short history.

Donald Knuth , a legendary Computer Scientist as well as one of my favorites, is well known for the system that he created called just TeX .

It is a piece of typesetting software that aids in writing documents and formulas. The power comes from the fact that the document that you write is plain source code.

The code that you write is then “typeset” into the final document in whatever form you wish.

Here’s an example of some basic LaTeX code:

With the output looking like below:

Example output

Using the Template

I’ve created a GitHub repository, latex-homework-template , just for my homework template that I’ve been using ever since I started. I found it online and used it as a base to start my template.

To use it, just download the homework.tex file and start editing. Once you need to typeset it, you’ll need LaTeX here .

After that, you just need to compile it and you’ll get your output. There are tons of different resources that I’ve found useful in learning LaTeX:

TeX StackExchange

LaTeX Wikibook

Effect on Performance

I have a solid set of anecdotal evidence in favor of using LaTeX for writing up my homework.

In all the classes that I’ve used LaTeX, I’ve come out of the class with a very strong understanding of the material as well as a good grade. Although I’m not a big fan of grades (like at all), I know it matters to some people.

This might have to do with the fact that doing the homework in LaTeX takes longer. It might have to do with the fact that I perfect the appearance and spend a lot more time looking at the subject.

The most likely reason is a combination of all that I previously mentioned plus other factors. I’m usually one to always want to quantify something, but in this case, I know it helps; that’s all I need.

Learning Curve

There definitely is a learning curve when it comes to trying to use LaTeX for homework. I felt that it was definitely worth the effort unlike how it might seem to some students.

I reasoned that when I go to graduate school, I will want to use it there. I also know how pervasive it is in textbooks. Since I love to read textbooks so much, I wanted to see what it took to write them so elegantly. I may even want to write one in the future; we’ll have to see =]

To me it seemed like a small tradeoff for the great benefits that it provided.

I cannot recommend using LaTeX for your homework enough.

The benefits go a long way. It helps you learn the material and in a way that isn’t as easily achieved when just using pencil and paper.

LaTeX is also widely used in academia and learning about the tool is almost essential if you wish to go to graduate school.

Once I graduate from university, I plan on releasing all my code for the last three semesters as open source. It includes all my LaTeX code which has really accumulated over the last year. It should provide a nice resource for others.

In the meantime, hopefully if you start using LaTeX for your homework, you won’t be able to resist doing it early because of how fun it is. Well, at least it was fun for me =]

Title Pages

A title page is the first page of a document and its purpose is to show important information about the work, such as the author(s), title, subtitle, course, supervisor, publisher and date. The title page's job is to clearly display this information at a glance and pull the reader into the document.

make assignment in latex

Formal Book Title Page

This title page template is best suited to books and formal applications, such as in the fields of science or engineering. It features a formal layout with a clear title highlighted by two horizontal rules. A subtitle is available to further describe the work and multiple authors/editors are catered for towards the centre of the page.

  • View Template Information

Vertical Line Title Page

This title page template features a central vertical line which frames the rest of the text on the page. The title is clearly visible in a large bold font and the design also includes a subtitle, author name and publisher information. The title page would be well suited to a book but it can be used for other applications too.

Classic Lined Title Page

This title page template features a classic lined look most suited to a book or other larger work. The title is highlighted with large red all-caps text and a thin rule underneath separates it from the author name and publisher further down the page.

Stylish Title Page

This title page template features a large title and subtitle surrounded by two curly brackets to bring focus to the title and add to the stylish design of the template. The author name is centered below the title and publisher information is seen at the bottom. This makes the template best suited to a book or other large work, but it can be easily adapted to any other usage.

Minimalist Book Title Page

This title page template is best suited for a book. The minimalistic design immediately highlights the title and the use of red further focuses the eye on the core of what the work is about. The subtitle is neatly tucked away under the title to expand on it and the author/publisher information frames the title.

Multi-Purpose Large Font Title Page

This title page template can be used for almost any document type. The title is displayed in a very large font size in a wide grey box to accentuate the subject matter while your details are shown at the bottom in a small section. The box colour can be changed from grey and the template includes a secondary serif font option.

Academic Title Page

This title page is useful for academic works such as assignments, reports, theses or books. The headings can be used to neatly display the institute, course or subject matter of the work. It design is clean with the major feature being two horizontal lines highlighting the title. The template contains code for an alternate layout without a supervisor name and for an institution logo at the bottom of the page.

make assignment in latex

LaTeX Templates Information

General enquiries [email protected]

Most templates licensed under CC BY-NC-SA 4.0

LaTeX Templates is developed in New Zealand

© Creodocs Limited. All Rights Reserved.

Simple Math Homework Template

I had to relearn LaTeX to turn in my real analysis homework last night, so I made it into a template in case others are in the same situation.

Simple Math  Homework Template

Get in touch

Have you checked our knowledge base ?

Message sent! Our team will review it and reply by email.

Email: 

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

latex-homework-template

Here are 6 public repositories matching this topic..., jdavis / latex-homework-template.

🎓📄 The LaTeX file that I used as the base for all my homework in university.

  • Updated Jan 12, 2023

jstrieb / homework-template

Typeset assignments and problem sets using LaTeX; typographically optimized for online submission

  • Updated Oct 19, 2020

AntoineGagne / latex-homework-class

A class for homework assignments written in LaTeX.

  • Updated Apr 17, 2018

hengxin / latex-templates

LaTeX templates.

  • Updated Aug 10, 2019

frostybee / latex-homework

A LaTeX template for writing assignment/homework.

  • Updated May 23, 2022

matchy233 / latex-hw-template

💾 General purpose homeowork template

  • Updated Nov 30, 2021

Improve this page

Add a description, image, and links to the latex-homework-template topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the latex-homework-template topic, visit your repo's landing page and select "manage topics."

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Formulating in Assignment Problem

.

Welcome to TeX.SE!

With use of the nicematrix and tikz package:

After two compilations you will get:

enter image description here

  • In answer is used nicematrix version 5.5! –  Zarko Commented Nov 11, 2020 at 8:28
  • sorry, in TeXstudio dont have nicematrix –  John Person Commented Nov 11, 2020 at 9:54
  • TeXstudio have/contain any package or LaTeX installation, it is just a editor, isn't it? See texstudio.org . You need to install it with tools which is part of your LaTeX installation or do this manually (package is available on CTAN). –  Zarko Commented Nov 11, 2020 at 10:16
  • to use TeXstudio, I downloaded mikTeX as a packing from LaTex –  John Person Commented Nov 11, 2020 at 10:44
  • Than use MikTeX Console utility and by 'packages' load missed package(s). Just now is availabel `nicematrix 7 version 5.6 :-) –  Zarko Commented Nov 11, 2020 at 10:55

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged tables matrices ..

  • The Overflow Blog
  • This developer tool is 40 years old: can it be improved?
  • Unpacking the 2024 Developer Survey results
  • Featured on Meta
  • We've made changes to our Terms of Service & Privacy Policy - July 2024
  • Introducing an accessibility dashboard and some upcoming changes to display...

Hot Network Questions

  • Make a GCSE student's error work
  • Can a wizard learn a spell from a cleric or druid?
  • Who‘s to say that beliefs held because of rational reasons are indeed more justified than beliefs held because of emotional ones
  • How could ocean liners survive in a major capacity after large jet airliners become common?
  • Abrupt increase of evaluation time of MatrixExp
  • ULN2803 relay and led together
  • Why would sperm cells derived from women's stem cells always produce female children?
  • Too many SMB SAMR requests to Primary Domain Controller from Remote Site
  • Four Year Old Pushing and Positive Discipline Techniques
  • How different is Wittgenstein's Language game from Contextuality?
  • Who checks and balances SCOTUS?
  • I have two identical wi-fi drivers installed?
  • How to interpret the "As much as" in "As much as I like her, I can't agree with her on this."
  • Coupon schedule issue with initial coupon date
  • Is there a Morse function that does not arise from a minimal-dimensional height function?
  • What's "unregulated baggage"?
  • What is the Role of "quia" in this Clause?
  • What does "off-book" mean in "Cue cards? I’m showing up off-book"?
  • What is "were't"?
  • How to maintain consistency when retrieving partial vs. full data in an API Resource
  • Challenges to complete apple ID account to download Apps when in an unsupported country
  • Is it OK to call a person "sempai" who is actually much younger than you?
  • Can only a bramha jnani and knower of 4 Vedas be called a Guru?
  • Schengen visa expires during my flight layover

make assignment in latex

IMAGES

  1. latex-homework-template/homework.sty at main · willwm/latex-homework

    make assignment in latex

  2. Latex Template For Homework

    make assignment in latex

  3. Latex Homework Template

    make assignment in latex

  4. Lachaise Assignment LaTeX Template for teachers to make assignments for

    make assignment in latex

  5. Create, format and convert your document into latex by Kdja_01

    make assignment in latex

  6. PDF output for LaTeX homework template

    make assignment in latex

COMMENTS

  1. LaTeX Templates

    Lachaise Assignment. This template is for teachers/instructors/educators to create assignments/homework for their students. It includes a clear title on the first page for the course, assignment and teacher's name, as well as the institution and date. Sets of questions can be grouped by headings and the template includes examples of ...

  2. Templates

    This template was designed for my students to utilize when completing their reflection on "The Secret to Raising Smart Kids" assignment. Homework template for my upper division math courses. Updated August 2019. Produce beautiful documents starting from our gallery of LaTeX templates for journals, conferences, theses, reports, CVs and much more.

  3. Gallery

    Here we provide a selection of homework assignments templates and examples for school, college and university use. These often include a question and answer section already set out, along with space for the student name, course title, date and any other required information. Teachers and lecturers may also find these templates useful for ...

  4. Homework Template with Samples

    10 months ago. License. Creative Commons CC BY 4.0. Abstract. This is a template for completing homework assignments. It includes examples of how to use the template and how to type up various types of assignments. Tags. Homework Assignment University. Find More Templates.

  5. Professional Assignment Template

    Author. A clean and easy to use LaTeX template for homework / assignments. Applicable at the university level for math and computer science courses. Problems and solutions are neatly organized, can be renamed, and referenced in a brief table of contents. Customizeable author, course, title information.

  6. LaTeX Templates

    Lachaise Assignment. This template is for teachers/instructors/educators to create assignments/homework for their students. It includes a clear title on the first page for the course, assignment and teacher's name, as well as the institution and date. Sets of questions can be grouped by headings and the template includes examples of ...

  7. Class file for Homework/Assignments

    This file is used by inserting \documentclass{jhwhw} at the beginning of a document. The standard formatting for a problem looks like this: <<statements of problem>>. <<solution>>. It creates a new page for every problem. Also, if a problem has multiple "parts" the formatting might look like this. \begin{enumerate}

  8. Typesetting exams in LaTeX

    The LaTeX class exam.cls makes it straightforward create exam papers and typeset questions. It sets a 1in margin in all paper sizes and provides special commands to write and compute grades. To use the exam class you must put the line. \documentclass{ exam } at the start of your .tex file.

  9. LaTeX Templates

    Cleese Assignment. This template comes in two versions, one for teachers/instructors/educators to create assignments/homework for their students to fill out by hand, and another for students proficient in LaTeX to answer questions posed to them at school or university/college. Both versions contain simple environments for each question and ...

  10. Typeset assigments +=, -= etc nicely?

    32. these two-part operators have to be declared as operators to get the correct spacing on either side. the following definitions will take care of that, while forcing each individual part to be treated as an ordinary character. \newcommand{\pluseq}{\mathrel{{+}{=}}} \newcommand{\minuseq}{\mathrel{{-}{=}}} the result may still not be to your ...

  11. How to typeset $:=$ correctly?

    Just put this code into your preamble. Then you can use := as usual, and you'll get horizontal symmetry. Much easier to use than \coloneqq, in my opinion. Per @Will Robertson's comment, there is also a feature of mathtools to change the vertical alignment of all colons in math mode. \mathtoolsset{centercolon}

  12. Research Guides: Getting Started with LaTeX: Templates

    LaTeX is a typesetting program useful for mathematical and scientific writings or publications. This guide provides an overview of how to get started with LaTeX, as well as resources and exercise to help new users of the program. ... homework assignments, and lab reports. In these cases a template will create consistency between documents and ...

  13. Doing Your Homework in LaTeX

    Using the Template. I've created a GitHub repository, latex-homework-template, just for my homework template that I've been using ever since I started.I found it online and used it as a base to start my template. To use it, just download the homework.tex file and start editing. Once you need to typeset it, you'll need LaTeX here.. After that, you just need to compile it and you'll get ...

  14. LaTeX Templates

    This title page template features a large title and subtitle surrounded by two curly brackets to bring focus to the title and add to the stylish design of the template. The author name is centered below the title and publisher information is seen at the bottom. This makes the template best suited to a book or other large work, but it can be ...

  15. LaTeX Homework Template for Submitting Online

    This simple LaTeX homework template consists of a class file and shortcut package that contain best-practice document style settings and shortcut commands (respectively). Designed specifically for typesetting solutions to math and computer science problem sets that will be graded online, this homework template is intended to make typing ...

  16. Assignment Latex Template

    By Simon Pratt (originally) and forked by Christian Delahousse. A template for writing assignments in LaTeX. Latex typesets text in beautiful ways. Using it can be daunting, but it is actually quite easy. This template takes care of the boilerplate code so that you can focus on writing your assignment. Start by adding content and then looking ...

  17. Simple Math Homework Template

    LaTeX Project Public License 1.3c. Abstract. I had to relearn LaTeX to turn in my real analysis homework last night, so I made it into a template in case others are in the same situation. Tags. Homework Assignment Math.

  18. Problem Solution Template

    I want to create a Latex document like the following one: 1. This is the problem statement in multiple line. Solution: This is the solution of the problem. When there is only on solution, there is no need to numbering 2. This is another problem but two solution multiple line. ... % Assignment class for homework and exams.

  19. latex-homework-template · GitHub Topics · GitHub

    To associate your repository with the latex-homework-template topic, visit your repo's landing page and select "manage topics." GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

  20. Formulating in Assignment Problem

    please provide me with the latex formula for the assignment table which has a line like the image above. tables; matrices; Share. Improve this question. Follow asked Nov 11, 2020 at 6:01. John Person John Person. 51 3 3 bronze badges. Add a comment | 1 ...