Last active
September 1, 2017 07:49
-
-
Save pianomanfrazier/80f84caf395a958d2dfcd1347a19c535 to your computer and use it in GitHub Desktop.
This is a Latex template for Tech Writing USU ENGR-3080
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
\documentclass[12pt]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[english]{babel} | |
\usepackage[a4paper,margin=1in]{geometry} | |
\usepackage[singlespacing]{setspace} | |
\usepackage{hyperref} | |
\usepackage{graphicx} | |
\usepackage{amsmath,amssymb,amsfonts,amsthm} | |
\usepackage{enumitem} | |
\usepackage{fix-cm} | |
\usepackage[autostyle, english=american]{csquotes} | |
\MakeOuterQuote{"} | |
%%%%%%%%% TOC formatting %%%%%%%%% | |
\setcounter{tocdepth}{2} | |
\usepackage{tocloft} | |
\addto\captionsenglish{ | |
\renewcommand{\contentsname}{Table of Contents} | |
\renewcommand\listfigurename{List of Figures and Tables} | |
} | |
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} | |
\renewcommand\cfttoctitlefont{\hfill\Large\bfseries} | |
\renewcommand\cftaftertoctitle{\hfill\mbox{}} | |
\renewcommand\cftloftitlefont{\hfill\Large\bfseries} | |
\renewcommand\cftafterloftitle{\hfill\mbox{}} | |
% removes line numbering for TOC | |
\def\numberline#1{} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% For combined figures and tables list | |
\def\table{\def\figurename{Table}\figure} | |
\let\endtable\endfigure | |
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up,justification=justified,singlelinecheck=false]{caption} | |
% Section formatting | |
\usepackage{titlesec} | |
\newcommand{\sectionbreak}{\clearpage} | |
%uncomment to print section number | |
%\titleformat{\section}[block]{\normalfont\fontsize{14}{15}\bfseries\filcenter}{\thesection}{1em}{} | |
\titleformat{\section}[block]{\normalfont\fontsize{14}{15}\bfseries\filcenter}{}{1em}{} | |
\titleformat{\subsection}[block]{\normalfont\fontsize{12}{15}\bfseries}{}{0px}{} | |
\titleformat{\subsubsection}[runin]{\normalfont\fontsize{12}{15}\bfseries}{}{0px}{} | |
% Document paragraph and indent spacing | |
\setlength\parindent{0pt} | |
\setlength\parskip{1em} | |
%TODO: | |
%citations | |
%used for dummy text to test formatting | |
\usepackage{blindtext} | |
% Fill out these variables for your document | |
\date{} | |
\newcommand{\ProposalTitle}{Example Latex Layout for ENGR 3080} | |
\newcommand{\preparee}{Individual's Name} | |
\newcommand{\prepareeTitle}{Title} | |
\newcommand{\company}{Company Name} | |
\newcommand{\address}{Address line 1\\Address line 2} | |
\begin{document} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Title Page % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\hypersetup{pageanchor=false} | |
\begin{titlepage} | |
\centering | |
%{\fontsize{18pt}{24pt}\bfseries\ProposalTitle}\\ | |
{\Large\bfseries\ProposalTitle}\\ | |
\vspace{2.5cm} | |
\begin{large} | |
Prepared for: | |
\preparee, \prepareeTitle\\ | |
\company\\ | |
\address\\ | |
\end{large} | |
%\vspace{2.5cm} | |
% graphic or figure | |
\vspace{2.5cm} | |
\begin{large} | |
Student Name, Title\\ | |
Student Name, Title\\ | |
Student Name, Title\\ | |
\vspace{2.5cm} | |
\today\\ | |
\vspace{2.5cm} | |
\end{large} | |
This is an example of what your topic overview might look like. The purpose of proposal and the main topics covered are identified in this descriptive abstract. | |
\end{titlepage} | |
\hypersetup{pageanchor=true} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% End of Title Page % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\pagenumbering{roman} | |
\setcounter{page}{2} | |
\tableofcontents | |
\clearpage | |
\addcontentsline{toc}{section}{\listfigurename} | |
\listoffigures | |
\clearpage | |
\pagenumbering{arabic} | |
\setcounter{page}{1} | |
\section{Top Level Section} | |
\blindmathtrue | |
\blindtext | |
See my cool truth table (\ref{tab:truthy}) | |
\begin{table} [h!] | |
\caption[Table \thefigure. Truth Table]{ \textbf{A Truth Table.} } | |
\begin{tabular} {c c c | c} | |
p & q & r & S\\ \hline | |
1 & 1 & 1 & 1\\ | |
1 & 1 & 0 & 1\\ | |
1 & 0 & 1 & 1\\ | |
1 & 0 & 0 & 1\\ | |
0 & 1 & 1 & 1\\ | |
0 & 1 & 0 & 1\\ | |
0 & 0 & 1 & 1\\ | |
0 & 0 & 0 & 1\\ | |
\end{tabular} | |
\label{tab:truthy} | |
\end{table} | |
\blindtext | |
And see my cool Cubehelix Graph (\ref{fig:cubehelix}). | |
\begin{figure}[!ht] | |
\includegraphics[width=0.4\linewidth]{cubehelix_palette} | |
\caption[Figure \thefigure. Cubehelix Graph]{ \textbf{Cubehelix Graph.} \textit{This is some caption text.}} | |
\label{fig:cubehelix} | |
\end{figure} | |
Here is a crazy equation in \LaTeX | |
\begin{equation} \label{eq:crazy} | |
\frac{\sin(2x + \pi)}{\cos(\int_0^\infty{\lambda_1 + \lambda_2})} | |
\end{equation} | |
See crazy equation (\ref{eq:crazy}). | |
\section{Level Section} | |
\blindtext | |
\blinditemize | |
\subsection{Second Level Heading} | |
\blindtext | |
\blindenumerate | |
\subsubsection{Third level inline.} | |
\blindtext | |
\section{Another Section} | |
\blindtext | |
\par | |
\blindtext | |
\subsection{Subsection} | |
\blindtext | |
\section{Another Section} | |
\blindtext | |
\par | |
\blindtext | |
\subsection{Subsection} | |
\blindtext | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment