Skip to content

Instantly share code, notes, and snippets.

@weibeld
Last active October 29, 2017 15:00
Show Gist options
  • Save weibeld/9a531a02045a79700f82c58871ddfa30 to your computer and use it in GitHub Desktop.
Save weibeld/9a531a02045a79700f82c58871ddfa30 to your computer and use it in GitHub Desktop.
Simple LaTeX class for short uncomplicated notes
% LaTeX class for simple short (or long) notes.
%
% Usage: place .cls file in same directory as .tex file and reference class
% in .tex file with: \documentclass{note}
%
% Daniel Weibel <danielmweibel@gmail.com> 7 May 2016
%------------------------------------------------------------------------------%
\LoadClass[a4paper]{article}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{note}[2016/05/07 My custom class for short notes]
\RequirePackage[margin=1in]{geometry}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage[colorlinks=true,allcolors=blue]{hyperref}
\RequirePackage{titling}
\RequirePackage{enumitem}
\RequirePackage{parskip}
\RequirePackage{graphicx}
\setlist{nosep}
\urlstyle{same}
\renewcommand{\familydefault}{\sfdefault}
% Title formatting (affected by package "parskip")
\setlength{\droptitle}{-50pt}
\pretitle{\begin{center}\huge}
\posttitle{\par\end{center}}
\preauthor{\begin{center}\vspace{0pt}\large\it}
\postauthor{\par\end{center}}
\predate{\begin{center}\vspace{-5pt}\large\it}
\postdate{\par\end{center}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment