Skip to content
Snippets Groups Projects
example-report-doc.ltx 3.55 KiB
Newer Older
\documentclass[12pt]{otsreport}

% Uncomment the following line to disable hyphenation.
%\usepackage[none]{hyphenat}

\usepackage{ots} 
\usepackage{ots-sectioning}
\usepackage{amsmath}
\usepackage{setspace}  % to control TOC spacing

% For coloring individual cells in tables.
\usepackage[table]{xcolor}
% Define colors used in this document here.  latexcolor.com may help.
\definecolor{tableheader}{rgb}{0.6, 0.73, 0.89}
\definecolor{rowheaderleft}{rgb}{0.63, 0.79, 0.95}
\definecolor{plainwhite}{rgb}{1, 1, 1}
% Some good blue-y colors Karl found, FWIW:
%
%   Eton blue             #96C8A2       {0.59, 0.78, 0.64}
%   Carolina blue         #99BADD       {0.6, 0.73, 0.89}
%   Baby blue eyes        #A1CAF1       {0.63, 0.79, 0.95}
%
% Less sure about these green ones, but they might work together:
% 
%   Moss green            #ADDFAD       {0.68, 0.87, 0.68}
%   Olivine               #9AB973       {0.6, 0.73, 0.45}
%   Turquoise green       #A0D6B4       {0.63, 0.84, 0.71}

% Without this, a multiline footnote has its first line (including the
% footnote's identifying number) indented by quite a bit inside the
% margin, but then subsequent lines start at the margin, which just
% looks weird IMHO.  With this, the numbers start at the margin, and
% all the lines of text line up with each other, indented slightly.
% 
% See https://www.ctan.org/pkg/footmisc?lang=en
\usepackage[hang,flushmargin]{footmisc}

\usepackage{ifxetex,ifluatex}
\ifxetex
  \usepackage{fontspec,xltxtra,xunicode}
  \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
  \ifluatex
    \usepackage{fontspec}
    \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
  \else
    \usepackage[utf8]{inputenc}
  \fi
\fi

\newenvironment{absolutelynopagebreak}
  {\par\nobreak\vfil\penalty0\vfilneg
   \vtop\bgroup}
  {\par\xdef\tpd{\the\prevdepth}\egroup
   \prevdepth=\tpd}

% This TOC depth causes the table of contents to provide a high-level
% overview of the document, instead of distracting the reader with
% subsection titles and such.
\setcounter{tocdepth}{1}

\usepackage{enumitem}
\ifxetex
  \usepackage[setpagesize=false, % page size defined by xetex
              unicode=false, % unicode breaks when used with xetex
              xetex]{hyperref}
\else
  \usepackage[unicode=true]{hyperref}
\fi
\hypersetup{breaklinks=true, pdfborder={0 0 0}}

\setlength{\parindent}{0pt}
\setlength{\parskip}{7pt plus 2pt minus 1pt}
\setcounter{secnumdepth}{0}

\usepackage[margin=1in]{geometry}

\usepackage{changepage}

\usepackage{hyperref}
\usepackage{mdframed} % For an inset box of text

% For logo and accompanying contact info.
\usepackage{graphicx}
\usepackage{float}
\usepackage{color}
\definecolor{dkgreen}{RGB}{50, 109, 72}
\definecolor{dkergreen}{RGB}{0, 100, 0}
\DeclareFixedFont{\viiisf}{OT1}{cmss}{m}{n}{8}
\newcommand{\circlesep}{\raisebox{1.7em}{\hspace{1.8em}\includegraphics[clip, trim=0cm 11cm 19.3cm 11cm, scale=0.05]{otslogo.pdf}\hspace{1.8em}}}

% Rename the table of contents label
\renewcommand*\contentsname{\vspace{-1em}}

\begin{document}

\otsheader

\begin{center}
\LARGE{Title of Report: \\
  And a Subtitle}

\vspace{.5em}

\normalsize{A date}
\end{center}

% The grouping with the \addtocontents and \addvspace bits below are
% to reduce the vertical spacing in the TOC.  More information here:
% https://tex.stackexchange.com/questions/111243/lyx-reduce-spacing-in-toc
\begingroup
% \addtocontents{toc}{\protect\setstretch{0.80}}
% \def\addvspace#1{}
\tableofcontents
\endgroup

\newpage

\unnumberedsection{Introduction}\label{overview}
\unnumberedsection{Conclusion}\label{conclusion}


\end{document}