computer science homework latex template

Robert J. Won

Department of Mathematics, The George Washington University

How to TeX your homework

The TeX template used in the video is included at the bottom of this post. You can paste this into a .tex file locally, or into Overleaf.

  • If you’re just starting out, I recommend using  Overleaf  as your TeX editor.
  • You can use  Detexify  to hand-draw a symbol to find the LaTeX command for it.
  • There is also a nice  WikiBook  on LaTeXing mathematics.
  • When in doubt, Google is your friend!

You will frequently have problems with TeX which will make the document unable to compile. You should remember to compile often so that you can pinpoint your errors. Here are some things to check.

  • Remember to place math within dollar signs, so $x^2$ typesets as  x 2 .
  • Make sure you have started and ended all environments in the appropriate spots.
  • Make sure you have closed all of your curly braces { }.
  • Check to see if you used a new command that requires a new package.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

This site uses cookies to offer you a better browsing experience. Visit GW’s Website Privacy Notice to learn more about how GW uses cookies.

university of washington logo

  • News & Events
  • Current Students
  • Prospective Students
  • Faculty Candidates
  • Industry Affiliates
  • Support CSE

CSE 312: Typesetting Homework

  • CSE 312 Home

Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX

Comments to admin

UW Privacy Policy and UW Site Use Agreement

Latex templates and useful links

  • LaTeX Template

This template is not mandatory but you are strongly encouraged to use it as a basis for your elaboration.

Frequent LaTeX Questions

  • Units are typeset in Roman, not in Italics. So don't put them inside math environments like $...$. If you are inside a math environment, use \mathrm{m} , for example. To create the right spacing between number and unit, use  \,  between the two: 5\,m
  • After periods for abbreviations (like Dr.), use ~ instead of a regular space to avoid ugly gaps in your text: Dr.~Strangelove . This will also avoid a linebreak.
  • A Guide to LaTeX
  • An Introduction to LaTeX
  • LaTeX - A document preparation system
  • LaTeX Cookbook

LaTeX Tools

Distributions.

  • TeXLive (Unix) : a standard LaTeX installation, comes with everything you need to start.
  • MacTeX (OS X) : a complete installation with all basic packages based on TeXLive.
  • MiKTeX (Windows) : this distribution contains the core distribution and some extensions. It includes a package and repository manager to easily include additional packages.
  • proTeXt (Windows) : a package containing MiKTex, the editor TeXnicCenter, and Ghostscript.
  • TeXShop (OS X) : Simple LaTeX-Editor for the Mac. Source and PDF are linked, such that you can jump to the according place from one file to the other.
  • TextMate (OS X) : A generic text editor with LaTeX support.
  • TeXstudio (Windows, Linux, and OS X) : Cross-platform LaTeX editor.
  • TeXnicCenter (Windows) : A powerful LaTeX editor.

Recommended Literature

  • Leslie Lamport: Das LATEX Handbuch, Addison-Wesley, 1995
  • Goossens, Mittelbach and Samarin: Der LATEX-Begleiter, Addison-Wesley, 1996

We have moved! Our new address is Im Süsterfeld 9 , top floor, right wing ( directions ).

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Computer Science Homework Template

CS 405 Analysis of Algorithms homework template.

Computer Science Homework Template

Buďte v kontaktu

Have you checked our knowledge base ?

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

Email: 

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 =]

of Saarland University

LaTeX Templates

To ease you the entrance into the world of LaTeX, we provide a few templates for you to use in your exercise sheets, seminar papers, homework and other documents. And in case you’re writing your Bachelor’s or Master Thesis, we have a template for that as well!

Currently, we do not have many templates, so any contributions are appreciated . If you want to contribute a template that you think fellow students can benefit from, please feel free to contact us or submit a pull request in the repository linked above.

Hint : If you want to get started quickly, you can use Overleaf . After registering (best use your university email address), you can easily import the template using the green overleaf links below. Make sure that in Overleaf’s menu, the “main document” is set to main.tex!

Templates for exercise sheets

Saartex – our thesis template.

SaarTex is our bilingual template Bachelor and Master thesis as well as other larger works. This template is ideal for students of Computer Science and Mathematics and includes the most important elements (customisable title page, table of contents, sworn declaration, attachment etc.) of a thesis while also incorporating typographical best practices.

Perfect for getting started with writing quickly.

  • Sample Document in English
  • Sample Document in German
  • Go to the template
  • Open in Overleaf

computer science homework latex template

Templates of the University

The university also provides templates (including LaTeX and PowerPoint) for presentations, posters and other documents in its corporate design on its website.

Assignments

Assignments, also known as homework, are usually given to school or university students to reinforce their knowledge of a subject and aid in learning. They are typically structured in question and answer form to be completed by the student consecutively.

fphw Assignment

This template is for formatting assignments or homework in a clear and simple way. The title section at the top of the first page clearly displays the assignment, student and class information. This information also appears in the headers and footers of subsequent pages. Questions in the assignment are clearly demarcated and appear inside boxes to focus attention. The template features examples of including images, tables, equations and code listings for covering virtually all common assignment information. Multi-part questions and answers are shown for more complex questions.

  • View Template Information

Wenneker Assignment

This template can be used by teachers or students for school or university assignments. It contains a clear title section at the start to specify the assignment class, title, date and teacher/student name. The template supports up to 4 levels of sections to structure the assignment into sections, questions, subquestions and bonus content. Examples of common assignment content are included: figure, equations, lists, table, code and paragraphs of text.

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 unnumbered and numbered sections, and numbered subsections (for longer assignments). Amongst the description text for each question, examples are provided for virtually any subject matter, including: equations, algorithms, code and command line outputs.

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 subquestion within, and allow answer boxes to be created with either an answer or blank for space to write an answer. Sets of questions can be grouped by headings and the template includes examples of including an image, table, equation and code within questions.

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.

Templates — Reports

Templates tagged Reports

Show all Templates

Write up experiments and research with LaTeX templates for project and lab reports—including layout guidelines to help guide you through the writing process.

UoE Report-Dissertation Template

Related Tags

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 .

  • Notifications You must be signed in to change notification settings

A template for writing CS papers with latex -- includes CI, todonotes, ...

opencompl/paper-template

Folders and files, repository files navigation.

Download: Paper (with comments) Submission (without comments) |

This repository serves as a template for writing computer science papers in LaTeX. It supports the following features:

  • Automatic paper builds using GitHub Actions
  • Normal and Draft variants of the same paper
  • Automatically generate a source archive of the paper By running create-source-archive.sh a file paper-source.zip is generated that contains the paper latex sources.
  • Notes are in the margin to not change the length of the paper
  • Wide margins (that do not change the paper layout) to have plenty of room for comments
  • Pieces of text can be addressed specifically by underlining this text
  • Comments in float enviroments (e.g., figure)

Releases 335

Contributors 12.

  • Python 4.5%

IMAGES

  1. GitHub

    computer science homework latex template

  2. Doing Your Homework in LaTeX

    computer science homework latex template

  3. Latex Templates

    computer science homework latex template

  4. How to write your homework using LaTeX

    computer science homework latex template

  5. Alternatives and detailed information of Latex Homework Template

    computer science homework latex template

  6. Latex Templates

    computer science homework latex template

VIDEO

  1. How to Set Up and Use LaTeX For Writing Homework/Math/Science

  2. class 5 Latex

  3. class 4 Latex

  4. Thesis/Project Proposal Template (Latex)

  5. How to make math accessible in a PDF

  6. Manage Citations Easily in Word & LaTeX with Zotero

COMMENTS

  1. Computer Science Homework Template

    CS 405 Analysis of Algorithms homework template. An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.

  2. CMU LaTeX Homework Template

    A LaTeX template for homework assignments, used widely at CMU. - jez/cmu-latex-hw-template ... It is (or a similar template) is used in a number of Computer Science classes at Carnegie Mellon University, including 15-151, 15-251, and 15-451. Installation. Certainly the easiest way to start using this template is to copy the .tex file to you ...

  3. LaTeX Homework Template for Submitting Online

    A LaTeX class and shortcut package for typesetting math and computer science problem sets with online-friendly style and features. Learn how to install, use, and customize the template with examples and documentation.

  4. GitHub

    A latex template for creating Computer Science assignments. The template file automatically tallies the question count and the number of pages. The document displays relevant homework information at the top and bottom of each page (eg, course number, date, page number, and number of questions). A custom listing file was used for syntax markup.

  5. How to TeX your homework

    The TeX template used in the video is included at the bottom of this post. You can paste this into a .tex file locally, or into Overleaf. If you're just starting out, I recommend using Overleaf as your TeX editor. You can use Detexify to hand-draw a symbol to find the LaTeX command for it. There is also a … Continue reading "How to TeX your homework"

  6. templates

    In my opinion the (standard) article document class would work for that. The reason for not suggesting something like book or report is that they are meant for much larger texts (since they include chapters and parts). Additional syntax-highlight can be obtained by means of the listings package - you specify the language (and possibly other formatting) and put the code in a lstlisting ...

  7. Gallery

    Gallery Items tagged Homework Assignment. Show all Gallery Items. 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.

  8. Computer Science Assignment Template

    This template is for Masters' Studemnts - Computer Science An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.

  9. CSE 312: Typesetting Homework

    Homework templates for LaTeX Annotated template: .tex file, PDF; Blank template: .tex file, PDF. CSE 312 Home; Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX. Comments to admin. UW ...

  10. Latex templates and useful links

    A web page for LaTeX users at RWTH Aachen University, with a template, questions, web links, tools and literature. Learn how to typeset units, abbreviations, spacing and more in LaTeX.

  11. Computer Science Homework Template

    CS 405 Analysis of Algorithms homework template. An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.

  12. Doing Your Homework in LaTeX

    Learn how to use LaTeX, a typesetting system for writing documents and formulas, to improve your homework quality and understanding. See examples, benefits, tips and a template for LaTeX homework.

  13. LaTeX template for math/cs homework

    This is a simple template for typesetting homework solutions in LaTeX. It is designed for math and computer science assignments, but would work for any discipline (within reason). It can also be adapted (by the TeX-savvy user) to work for other types of documents (e.g., research papers) by adjusting the formatting as necessary.

  14. LaTeX Templates

    SaarTex - Our Thesis Template. SaarTex is our bilingual template Bachelor and Master thesis as well as other larger works. This template is ideal for students of Computer Science and Mathematics and includes the most important elements (customisable title page, table of contents, sworn declaration, attachment etc.) of a thesis while also incorporating typographical best practices.

  15. Programming assignment template

    This template was originally published on ShareLaTeX and subsequently move... An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.

  16. homework-template · GitHub Topics · GitHub

    A LaTeX template designed for Computer Science homework. computer-science template latex homework mathematics latex-template homework-template Updated Sep 15, 2017; TeX; mesquita / template_listas_exercicios Star 5. Code Issues Pull requests ...

  17. Templates

    Find and download LaTeX templates for homework assignments in various subjects and levels. Browse through a selection of templates tagged Homework Assignment and see examples of how to use them.

  18. Templates

    Browse and download quality LaTeX templates for journals, CVs, presentations, reports and more. Search by tags, popularity or category, or use the featured template for a quick guide to LaTeX commands.

  19. Assignments

    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 subquestion within, and ...

  20. GitHub

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.

  21. Templates

    MSc UoR Computer Science Report Template and Guide 2024 University of Reading Computer Science Report Template and Guide for MSc dissertations. This is a report template as well as has instructions on writing various types of reports: e.g. science and lab, software engineering, and algorithms.

  22. A template for writing CS papers with latex -- includes CI ...

    This repository serves as a template for writing computer science papers in LaTeX. It supports the following features: Automatic paper builds using GitHub Actions; Normal and Draft variants of the same paper