\documentclass{article}
\usepackage[margin=1in]{geometry}

% Define this macro here. Use it later in \title and in header.
% Defining the title here makes it easier to change for future labs too
% --- change one thing at the top of the file once and it gets changed
%  everywhere else automatically.
%
% (note that memoir defines a \thetitle for you)
\newcommand{\thetitle}{Lab 0: Introduction to \LaTeX}

% fancyhdr lets you customize headers and footers
% lastpage gives you a way to find the number of pages
% extramarks gives you a way to find the first section on a page
\usepackage{fancyhdr, lastpage, extramarks}

\usepackage{graphicx}
\usepackage{caption}

% As a bonus feature, we include the ``booktabs'' package that gives us
% \toprule, \midrule, \bottomrule, and \cmidrule for better looking
% tabular environments
\usepackage{booktabs}

\usepackage{mathtools, amssymb, amsfonts}

\numberwithin{table}{section}
\numberwithin{figure}{section}
\numberwithin{equation}{section}

\usepackage{varioref}
\labelformat{equation}{(#1)}

\usepackage[colorlinks]{hyperref}

% This new "environment" will cause everything in it to be centered and
% grouped on the same page (good for figures and tables when you don't
% want to use floats but you do want to have captions). You can use it
% with
%
% \begin{centergroup}
%  ...
% \end{centergorup}
\newenvironment{centergroup}{\trivlist\item\begin{minipage}{\columnwidth}\centering}{\end{minipage}\endtrivlist}

% Use the \thetitle macro from above
\title{\thetitle\\
       ~\\
       \normalsize
       ECE~557~---
       Thursday, 1:30~---
       T.~Pavlic (instructor)\\~\\}
\author{Sally She \and Henry He}
\date{Table 4\\~\\~\\\today}

% Customizes header and footer
\pagestyle{fancy}
% Customize header (section name-empty-report title)
\lhead{\normalfont\bfseries\firstleftmark}
\chead{}
\rhead{\thetitle}       % Use \thetitle macro from above
% Customize footer (empty-empty-page)
\lfoot{}
\cfoot{}
\rfoot{Page\ \thepage\ of\ \protect\pageref*{LastPage}}
% Put a thin line beneath header and above footer
\renewcommand\headrulewidth{0.4pt}
\renewcommand\footrulewidth{0.4pt}

\begin{document}

\maketitle

\thispagestyle{empty}           % Removes page number on this page
\clearpage                      % Moves us to next empty page
\setcounter{page}{1}            % Reset page number to 1

\section{Introduction}

The procedure can be found in section~\ref{sec:proc}. Measurements can
be found in section~\ref{sec:meas} and theory can be found in
section~\ref{sec:thy}.

The procedure can be found in \autoref{sec:proc}. Measurements can be
found in \autoref{sec:meas} and theory can be found in
\autoref{sec:thy}.

\section{Procedure}
\label{sec:proc}

A picture of the circuit can be found in \autoref{fig:picture}.

\begin{centergroup}
        %\includegraphics[width=0.5\columnwidth]{some_figure.png}
        \fbox{A cool graphic would be here. Instead, you get a framed
        box.}
        \captionof{figure}{Some figure.}
        \label{fig:picture}
\end{centergroup}

\section{Measurements}
\label{sec:meas}

Measurements can be found in \autoref{tab:data}.

% The \toprule and \bottomrule commands put nice horizontal rules at the
% top and bottom borders of our table. The \cmidrule acts like a
% \midrule, but it only spans the columns you tell it (e.g., {1-1} means
% it only spans the first column) and it can ``trim'' its edges to put
% some separation between it and the next cmidrule (that's what the (r),
% (rl), and (l) do).
\begin{centergroup}
        \begin{tabular}{ccc}
                \toprule
                Frequency & Gain & Phase Shift \\
                \cmidrule(r){1-1}
                \cmidrule(rl){2-2}
                \cmidrule(l){3-3}
                10 Hz & 5 & 0.01 radians\\
                20 Hz & 5 & 0.1 radians\\
                1000 Hz & 2 & 1.5 radians\\
                \bottomrule
        \end{tabular}
        \captionof{table}{Some data.}
        \label{tab:data}
\end{centergroup}

\section{Theory}
\label{sec:thy}

The average power over period $T$
%
\begin{equation*}
        A_v =
        \frac{1}{T}
        \int_0^T
        v(t)^2
        dt,
\end{equation*}
%
and so
%
\begin{equation}
        P_v = 4.
        \label{eq:average_power}
\end{equation}
%
By \autoref{eq:average_power}, $P_v < 10$.

We can do Greek letters too, like $\alpha$, $\beta$, $\gamma$, $\delta$,
$\varepsilon$, and others. For example,
%
\begin{equation*}
        \pi \approx 3.141592653589793\cdots.
\end{equation*}

\section*{Acknowledgments}

Some acknowledgments would go here if necessary.

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
