Created
March 19, 2017 17:53
-
-
Save diego898/8a5477e0b51d0e1b709c04e7dcea1433 to your computer and use it in GitHub Desktop.
A basic statement with custom title, header, footer and margins
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% DOCUMENT TITLE | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% PREAMBLE | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\documentclass[11pt]{article} | |
\usepackage{amsmath,amssymb,mathrsfs,graphicx,overpic,color} | |
\usepackage{verbatim,stackrel,url,float,enumerate,cleveref} | |
\usepackage{lipsum} | |
% Custom margins - FIRST PAGE | |
\newcommand{\tbmargin}{0.75in} | |
\newcommand{\lrmargin}{0.65in} | |
\usepackage[top=\tbmargin, | |
bottom=\tbmargin, | |
left=\lrmargin, | |
right=\lrmargin, | |
headsep=0.15in, | |
headheight=13.6pt, | |
% heightrounded, | |
% showframe, | |
]{geometry} | |
% Custom section title sizing | |
\usepackage[small]{titlesec} | |
% \titlespacing{command}{left spacing}{before spacing}{after spacing}[right] | |
% spacing: how to read {12pt plus 4pt minus 2pt} | |
% 12pt is what we would like the spacing to be | |
% plus 4pt means that TeX can stretch it by at most 4pt | |
% minus 2pt means that TeX can shrink it by at most 2pt | |
% This is one example of the concept of, 'glue', in TeX | |
\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt} | |
\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt} | |
\titlespacing\subsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt} | |
\setlength{\parindent}{0pt} % get rid of indentation | |
% CUSTOM HEADER/FOOTER | |
\usepackage{fancyhdr} | |
\pagestyle{fancy} % use this style on all pages | |
\lhead{TITLE OF DOCUMENT} | |
\rhead{AUTHOR} | |
\rfoot{DATE} | |
\lfoot{ETC FELLOWSHIP} | |
\cfoot{} | |
\renewcommand{\headrulewidth}{0pt} % remove bar | |
\renewcommand{\footrulewidth}{0pt} | |
% FIRST PAGE style | |
\fancypagestyle{firststyle} | |
{ | |
% \fancyhf{} % clear all h/f on first page | |
\lhead{} | |
\rhead{} | |
} | |
% My custom commands | |
% \input{Macros} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% BEGIN DOCUMENT | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\begin{document} | |
% \maketitle | |
% use custom (no) header/footer on first page | |
\thispagestyle{firststyle} | |
% Custom title/author on first page | |
% Raise the custom title up, since we dont have a header | |
\vspace*{-0.5in} | |
\begingroup | |
\centering | |
\Large Document Title \\ | |
\large My name \\ | |
\texttt{[email protected]}\\[1em] | |
\endgroup | |
\section*{Temp} | |
\lipsum[1-10] | |
\subsection*{temp2} | |
\lipsum[1-5] | |
\section*{Temp3} | |
\lipsum[1-10] | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% BIBLIOGRAPHY | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% \bibliographystyle{IEEEtran} | |
% {\footnotesize \bibliography{research_statement_references}} | |
% END DOCUMENT | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment