Skip to content

Instantly share code, notes, and snippets.

@kkleidal
Created March 27, 2016 16:43
Show Gist options
  • Save kkleidal/165512485a697ba67da7 to your computer and use it in GitHub Desktop.
Save kkleidal/165512485a697ba67da7 to your computer and use it in GitHub Desktop.
Latex Helper Files
*.pdf
*.log
*.aux
*.out
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Journal Article
% LaTeX Template
% Version 1.3 (9/9/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Frits Wenneker (http://www.howtotex.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[twoside]{article}
\usepackage{lipsum} % Package to generate dummy text throughout this template
\usepackage[sc]{mathpazo} % Use the Palatino font
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\linespread{1.05} % Line spacing - Palatino needs more space between lines
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins
\usepackage{multicol} % Used for the two-column layout of the document
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures
\usepackage{booktabs} % Horizontal rules in tables
\usepackage{float} % Required for tables and figures in the multi-column environment - they need to be placed in specific locations with the [H] (e.g. \begin{table}[H])
\usepackage{hyperref} % For hyperlinks in the PDF
\usepackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text
\usepackage{paralist} % Used for the compactitem environment which makes bullet points with less space between them
\usepackage{abstract} % Allows abstract customization
\renewcommand{\abstractnamefont}{\normalfont\bfseries} % Set the "Abstract" text to bold
\renewcommand{\abstracttextfont}{\normalfont\small\itshape} % Set the abstract itself to small italic text
\usepackage{titlesec} % Allows customization of titles
\renewcommand\thesection{\Roman{section}} % Roman numerals for the sections
\renewcommand\thesubsection{\Roman{subsection}} % Roman numerals for subsections
\titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{} % Change the look of the section titles
\titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{} % Change the look of the section titles
\usepackage{fancyhdr} % Headers and footers
\pagestyle{fancy} % All pages have headers and footers
\fancyhead{} % Blank out the default header
\fancyfoot{} % Blank out the default footer
\fancyhead[C]{Running title $\bullet$ November 2012 $\bullet$ Vol. XXI, No. 1} % Custom header text
\fancyfoot[RO,LE]{\thepage} % Custom footer text
%----------------------------------------------------------------------------------------
% TITLE SECTION
%----------------------------------------------------------------------------------------
\title{\vspace{-15mm}\fontsize{24pt}{10pt}\selectfont\textbf{Article Title}} % Article title
\author{
\large
\textsc{John Smith}\thanks{A thank you or further information}\\[2mm] % Your name
\normalsize University of California \\ % Your institution
\normalsize \href{mailto:john@smith.com}{john@smith.com} % Your email address
\vspace{-5mm}
}
\date{}
%----------------------------------------------------------------------------------------
\begin{document}
\maketitle % Insert title
\thispagestyle{fancy} % All pages have headers and footers
%----------------------------------------------------------------------------------------
% ABSTRACT
%----------------------------------------------------------------------------------------
\begin{abstract}
\noindent \lipsum[1] % Dummy abstract text
\end{abstract}
%----------------------------------------------------------------------------------------
% ARTICLE CONTENTS
%----------------------------------------------------------------------------------------
\begin{multicols}{2} % Two-column layout throughout the main article text
\section{Introduction}
\lettrine[nindent=0em,lines=3]{L} orem ipsum dolor sit amet, consectetur adipiscing elit.
\lipsum[2-3] % Dummy text
%------------------------------------------------
\section{Methods}
Maecenas sed ultricies felis. Sed imperdiet dictum arcu a egestas.
\begin{compactitem}
\item Donec dolor arcu, rutrum id molestie in, viverra sed diam
\item Curabitur feugiat
\item turpis sed auctor facilisis
\item arcu eros accumsan lorem, at posuere mi diam sit amet tortor
\item Fusce fermentum, mi sit amet euismod rutrum
\item sem lorem molestie diam, iaculis aliquet sapien tortor non nisi
\item Pellentesque bibendum pretium aliquet
\end{compactitem}
\lipsum[4] % Dummy text
%------------------------------------------------
\section{Results}
\begin{table}[H]
\caption{Example table}
\centering
\begin{tabular}{llr}
\toprule
\multicolumn{2}{c}{Name} \\
\cmidrule(r){1-2}
First name & Last Name & Grade \\
\midrule
John & Doe & $7.5$ \\
Richard & Miles & $2$ \\
\bottomrule
\end{tabular}
\end{table}
\lipsum[5] % Dummy text
\begin{equation}
\label{eq:emc}
e = mc^2
\end{equation}
\lipsum[6] % Dummy text
%------------------------------------------------
\section{Discussion}
\subsection{Subsection One}
\lipsum[7] % Dummy text
\subsection{Subsection Two}
\lipsum[8] % Dummy text
%----------------------------------------------------------------------------------------
% REFERENCE LIST
%----------------------------------------------------------------------------------------
\begin{thebibliography}{99} % Bibliography - this is intentionally simple in this template
\bibitem[Figueredo and Wolf, 2009]{Figueredo:2009dg}
Figueredo, A.~J. and Wolf, P. S.~A. (2009).
\newblock Assortative pairing and life history strategy - a cross-cultural
study.
\newblock {\em Human Nature}, 20:317--330.
\end{thebibliography}
%----------------------------------------------------------------------------------------
\end{multicols}
\end{document}
INPUTS=$(wildcard *.tex)
all: *.pdf
*.pdf: $(INPUTS)
pdflatex $^
clean:
$(RM) -r *.pdf *.log *.aux *.out
\documentclass[12pt]{article}
% Emulate MS Word
\usepackage{wordlike}
% One inch margins
\PassOptionsToPackage{margin=1in}{geometry}
% Remove footnote indentation
\usepackage[hang,flushmargin]{footmisc}
% 0.5 inch indent
\setlength\parindent{0.5in}
% Double spacing
\usepackage{setspace}
\setstretch{2}
% MIT ID
\newcommand{\id}{910275916}
% Header
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\setlength{\headheight}{57pt}
\rhead{MIT ID \id, \thepage}
% Add space between text and footnotes section
\setlength{\skip\footins}{0.5in}
% Add a space before the footnote mark
\let\myfootnote\footnote
\renewcommand{\footnote}[1]{\myfootnote{~#1}}
% Generate placeholder text
\usepackage{lipsum}
\begin{document}
{\setlength\parindent{0pt}
MIT ID: \id
March 30, 2016
}
\vspace{-12pt}
\begin{center}
Laptops in Schools
\end{center}
\vspace{-12pt}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnote{Curabitur
molestie nisl at turpis pretium facilisis.} Nunc ullamcorper turpis sit amet
ipsum elementum ultricies. Nam venenatis leo id nunc consequat elementum.
Donec consectetur velit vel felis aliquet et iaculis nunc euismod. Etiam sed
nibh nulla. Fusce tortor elit, laoreet vitae pellentesque
consectetur.\footnote{Feugiat in nulla.}
\lipsum[2-5]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment