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}

Frequently asked questions

Is the CS Assignment Template template free?

Yes. The CS Assignment Template LaTeX template is free to use on LetX. Open it in your browser, edit online, and compile to PDF in seconds, no installation or download required.

How do I edit the CS Assignment Template template online?

Click "Open as Template" to load CS Assignment Template into the LetX editor. You can edit the LaTeX source, invite collaborators to work in real time, and download the compiled PDF when finished.

Can I collaborate on the CS Assignment Template template?

Yes. LetX supports real-time collaboration with unlimited collaborators. Multiple people can edit the CS Assignment Template template at the same time, with changes synced instantly.

More Assignments templates

\begin{now}

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