# Box around equation

To have a box around and equation just add:

\boxed{ EQUATION }

# Resize equation to fit width of a page

To fit the size of an equation we need to use \resizebox{factor\hsize}{!}{$theequation$}. See the following example:

\resizebox{.9\hsize}{!}

{$\Pi = \frac{EI}{2} \left[ \int_0^L \left(\frac{d\theta}{ds}\right)^2 ds + \alpha_m \int_0^L \left( \frac{du_s}{ds} \right)^2 ds + \alpha_s \int_0^L \left( \frac{du_n}{ds} - \theta \right)^2 \right] - W$}

# \multirow and \multicolumn commands

To use \multirow we have to:

\usepackage{multirow}

\multirow{number of rows}{width}{text}

The text argument's natural width is used when placing * in the width argument.

To use \multicolumn we have to:

\multicolumn{number of columns}{alignment: l, c, r}{text}

# Beamer template for a thesis presentation

The following is a template that I use to make presentations. Something special about this template is that some colors can be defined (AzulOsc and AzulCla) using \definecolor command. By searching the web, I found a way to include text on the first page to refer to other names that have to be there. It basically inserts a table inside \institute. I guess it is not a good practice, but it works very good. You can copy all from here to the end and paste it on the editor to run and see how it works.

\documentclass{beamer}

### %Color definition

\usepackage{xcolor}

\definecolor{AzulOsc}{cmyk}{0.70,0.22,0,0.25}

\definecolor{AzulCla}{cmyk}{0.1,0,0,0.1}

\mode<presentation>

{

\usetheme{Warsaw}

\setbeamercolor{structure}{fg=AzulOsc!100}

%\usecolortheme{seahorse}

\setbeamercovered{transparent}

\setbeamertemplate{bibliography item}{[\theenumiv]}

}

\usepackage[english]{babel}

%\usepackage[spanish,activeacute]{babel}

\usepackage[utf8]{inputenc}

\usepackage{amsmath}

\usepackage{amsfonts}

\usepackage{amsthm}

\usepackage[uline]{hhtensor}

\usepackage{times}

\usepackage[T1]{fontenc}

\title[Title not seen]

{Title that can be seen\\

and also this}

\subtitle

{The subtitle}

\author[Author (not seen)]

{Author (can be seen)}

\institute[the institute]{

\begin{tabular}[h]{ll}

Director: & Somebody 1 \\

Co-director: & Somebody 2 \\

& \\

Jury: & Jury 1 \\

& Jury 2 \\

& Jury 3\\

& \\

\multicolumn{2}{c}{University} \\

\multicolumn{2}{c}{A date}

\end{tabular}

}

%\date[A date]

%{}

\subject{The subject}

### %Including the university logo.

\pgfdeclareimage[height=0.5cm]{university-logo}{logo}

\logo{\pgfuseimage{university-logo}}

\AtBeginSubsection[]

{

\begin{frame}<beamer>{Outline}

\tableofcontents[currentsection,currentsubsection]

\end{frame}

}

\begin{document}

\begin{frame}

\titlepage

\end{frame}

\begin{frame}{Contents}

\tableofcontents

\end{frame}

\section{The section title}

\subsection{Subsection 1}

%---FRAME---%

\begin{frame}{The frame title}

Some text.

\end{frame}

\subsection{Subsection 2}

%---FRAME---%

\begin{frame}{Another frame}

Some other text.

### %Some image (change fig1 for one of yours)

\begin{figure}[ht]

\begin{center}

\includegraphics[scale=0.6]{fig1}

\end{center}

\caption{The caption}

\label{fig:fig1}

\end{figure}

\end{frame}

\appendix

%\section<presentation>*{\appendixname}

\section<presentation>*{}

\subsection<presentation>*{References}

\begin{frame}[allowframebreaks]

\frametitle<presentation>{References}

\bibliography{bibliographyfiletitle}

\bibliographystyle{ACM}

\end{frame}

\end{document}