Last active
October 29, 2017 15:00
-
-
Save weibeld/9a531a02045a79700f82c58871ddfa30 to your computer and use it in GitHub Desktop.
Simple LaTeX class for short uncomplicated notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 <[email protected]> 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