CS Assignment Template

LetXUpdated MIT
Open full PDF

 

About this template

A CS assignment in Source Sans and Source Code Pro with theorem-style solutions, algorithm2e pseudocode for divide and conquer, a recurrence, and a Dijkstra walkthrough.

Tags

assignmentslatex
Preview

What is in this template

Read from the source files of this template.

Document class
article [11pt, a4paper]
Compiles with
pdfLaTeX
Pages in the compiled PDF
4
Bibliography
None
Files
1 file: 1 .tex
Packages
  • sourcesanspro
  • sourcecodepro
  • geometry
  • xcolor
  • titlesec
  • booktabs
  • tabularx
  • array
  • listings
  • amsmath
  • amssymb
  • amsthm
  • algorithm2e
  • fancyhdr
  • tikz
  • hyperref
The start of the preamble of main.tex, from its \documentclass line.
\documentclass[11pt,a4paper]{article}

% --- Fonts ---
\usepackage{sourcesanspro}
\usepackage[scale=0.9]{sourcecodepro}
\renewcommand{\familydefault}{\sfdefault}

% --- Layout ---
\usepackage[margin=1in,headsep=14pt,footskip=24pt]{geometry}
\setlength{\parindent}{0pt}
\setlength{\parskip}{4pt plus 2pt minus 1pt}

% --- Colors ---
\usepackage[table]{xcolor}
\definecolor{accent}{HTML}{2563EB}
\definecolor{dark}{HTML}{1F2937}
\definecolor{lightgray}{HTML}{F3F4F6}
\definecolor{codebg}{HTML}{F8FAFC}
\definecolor{bordergray}{HTML}{D1D5DB}

% --- Headers ---
\usepackage{titlesec}
\titleformat{\section}
  {\Large\bfseries\color{accent}}
  {}{0pt}
  {}
  [\vspace{-4pt}\titlerule\vspace{6pt}]
\titlespacing{\section}{0pt}{16pt}{8pt}

\titleformat{\subsection}
  {\large\bfseries\color{dark}}
  {}{0pt}
  {}
\titlespacing{\subsection}{0pt}{12pt}{4pt}

% --- Tables ---
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{array}

Put this template on your own page

Open in LetX

Paste this badge on a thesis guide, a course page or a README. One click opens the template as a new project in the reader's own LetX account.

Markdown
[![Open in LetX](https://letx.app/badges/open-in-letx.svg)](https://letx.app/open?template=cs-assignment-template)
HTML
<a href="https://letx.app/open?template=cs-assignment-template"><img src="https://letx.app/badges/open-in-letx.svg" alt="Open in LetX"></a>
About the Open in LetX badge

Frequently asked questions

What does the CS Assignment template load?

It uses the article class (options: 11pt, a4paper), builds with pdfLaTeX, and loads 16 packages, including sourcesanspro, sourcecodepro, geometry, xcolor, titlesec, booktabs, tabularx and array.

How long is the CS Assignment Template sample?

The compiled sample is 4 pages, from a single file. Replace the sample text with yours and the layout stays.

Is the CS Assignment template free to use online?

Yes. "Open as Template" makes it your own LetX project: edit the LaTeX in the browser, invite collaborators to edit with you in real time, and download the compiled PDF. There is nothing to install.

More Assignments templates

\begin{now}

Start writing with CS Assignment Template, free, in your browser, with real-time collaboration.