Skip to content

Instantly share code, notes, and snippets.

@s-newman
Created February 4, 2021 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-newman/c7e2f428fd1eb734cbb47d74c790bba8 to your computer and use it in GitHub Desktop.
Save s-newman/c7e2f428fd1eb734cbb47d74c790bba8 to your computer and use it in GitHub Desktop.
Custom formatting for LaTeX documents, with a focus on class reports.
% This file has been adapted from the Pomona Linguistics Latex Paper template on Overleaf.
% More sane margins
\usepackage[margin=1in]{geometry}
% Gives some extra formatting options, e.g. underlining/strikeout
\usepackage{ulem}
% For putting links into papers, also helps make cross-references in the paper smart references
\usepackage[colorlinks = true,
linkcolor = blue,
urlcolor = blue,
citecolor = blue,
anchorcolor = blue]{hyperref} %smarter cross-references, these options turn links blue
% Don't indent paragraphs, and add spacing in between paragraphs. Also make titles look a bit nicer.
\usepackage[parfill]{parskip}
% Changes the \maketitle command to be smaller and take up less space on a page. Looks much better for most reports.
\makeatletter
\def\@maketitle{ % custom maketitle
\noindent {\Large \bfseries \color{black} \@title} \\ \hrule \noindent \@author \\ \@date
}
@s-newman
Copy link
Author

s-newman commented Feb 4, 2021

This probably doesn't work very well if you have a lab report that has lots of screenshots - it'll work best if your report is mostly or entirely text. I haven't tried tables or figures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment