Created
May 7, 2016 15:17
-
-
Save weibeld/54e988b7d3decb33744ad0055003e8d8 to your computer and use it in GitHub Desktop.
LaTeX class for simple short (or long) notes
This file contains 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]> 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 formating (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