Okay, this was compiling just fine yesterday. I've since been making some changes, and now get the following error:
! Argument of \align has an extra }.
<inserted text>
\par
l.85 f(t) = ((x_t - x_{t-1})} + (x_{t-1} - x_{t-2})) \times \frac{1}{2}
?
The section it's complaining about is the following:
\begin{center}
\begin{align}
\label{avggrad}
f(t) = ((x_t - x_{t-1})} + (x_{t-1} - x_{t-2})) \times \frac{1}{2}
\end{align}
\begin{align}
\label{avggradsum}
\frac{ \sum\limits_{i=0}^{n-1} (x_{t-i}-x_{t-(i+1)}) }{n}
\end{align}
\end{center}
And the top of my main .tex file has this:
\documentclass[abbrevs,bsc,logo]{styles/infthesis}
\usepackage{hyperref}
\usepackage[pdftex]{graphicx}
\usepackage{minted}
\usepackage{amsmath, amsthm, amssymb}
\begin{document}
\include{a/bunch/of/sections}
\end{document}
It's driving me crazy. I've looked at this page: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=extrabrace, but can't for the life of me work out how to fix the error. Most of the methods listed on that page I can't get to work out...
If I take out that specific equation, all works fine. Even leaving in the \begin{align} etc works, as long as that one line isn't in the document.
Do I need to put something like \protect or \ensuremath in there somewhere?

centeris useless in this contents. – Marco Daniel Apr 2 '12 at 14:28alignhas a curly brace instead of a round one, thus producing the error:f(t) = ((x_t - x_{t-1})}should bef(t) = ((x_t - x_{t-1))}. – diabonas Apr 2 '12 at 14:29Emacs, e.g., hasM-x check-parens. It's helped me out a few times! – jon Apr 2 '12 at 14:29centerfor this and put both equations in agatherenvironment. – egreg Apr 2 '12 at 14:29